Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp1807859rdb; Mon, 9 Oct 2023 03:49:59 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH0qb9Ky39o2GP2r9WArWxMmv8VorY/aREzF1/YE/OXnnnr0CxTJDWha0Dl4EPjiHvNrwLl X-Received: by 2002:a05:6808:1823:b0:3ad:9540:5475 with SMTP id bh35-20020a056808182300b003ad95405475mr19771950oib.45.1696848598867; Mon, 09 Oct 2023 03:49:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696848598; cv=none; d=google.com; s=arc-20160816; b=T4RSFU608kWBOV4Ace3m3t2Tl/jVSPLLj1N4j7xvVlZItf4vKVxD38yWVGmDaxkV9X jmR8axuEAHoY6fQ4MvtNze03ZpqfUSktgyVXceAvfdHh6n5+0QXOr19Fq2C/wLSsew4h eZIEBsKEVfSjn45DoHhp8Ws3FXF4sJvc6kQiQxO57Pts4FF62sfPI0PpXk/0nOUn/aDA Kw8z2ateql7BgwX5n3liV2uH534RHluVxaY9SQ0IS/WMMHeMm6CYQOJvj1E5C5Rd/mPE 0gtymASvh3rIOTVYf73c/XILrj4H2oa+KefM893ywCoDqJMKx12jflOIVya7JSXRAl6j TspA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=zio3enSGUI5YkwLUuED6dkFSvm7p0OMulAz5jTbba1w=; fh=e5Cet3evxT5+jxfCtf2eZ/yvJKxknOA6zV0WXVEOhCk=; b=wC0qahHSEfi2Gsw03BMxmgJOuqHu65KuPY+spgbjWTlw44a6M/srTLwkj6lOC9VuDz e8EXpOz6H+59PqGuiwGm3BzihqzNaIbQ5WtFTVbXYdpAtmRZLDV/GFLyJ1jIB2LOA4bG k3lBfQINuwd10E8ISrL2bQt9rsGn+WTFoHUQdqVX0lz/shGX9Ry47CEMfDMyHl6ih2z7 EzWWxApwAh15ZVepJycw9xqOwXrKgYw7B8fqLaFgxTFcEt6WJMS4eGBFCYxvyazxfZxm +nQne7OvXLI9/9Xzj2VA4/lAb7prTpvWxjD0UBM9zn1H3kpBAdiEjuBAy7Yr/uBFGQ/6 QJ3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=S5kWWUpe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id m123-20020a632681000000b00573fe48c908si9655028pgm.128.2023.10.09.03.49.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 03:49:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=S5kWWUpe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id E0520804239F; Mon, 9 Oct 2023 03:49:55 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345993AbjJIKtk (ORCPT + 99 others); Mon, 9 Oct 2023 06:49:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345793AbjJIKtj (ORCPT ); Mon, 9 Oct 2023 06:49:39 -0400 Received: from mail-yw1-x1133.google.com (mail-yw1-x1133.google.com [IPv6:2607:f8b0:4864:20::1133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 33EBDEA; Mon, 9 Oct 2023 03:49:34 -0700 (PDT) Received: by mail-yw1-x1133.google.com with SMTP id 00721157ae682-5a2536adaf3so52930027b3.2; Mon, 09 Oct 2023 03:49:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696848573; x=1697453373; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=zio3enSGUI5YkwLUuED6dkFSvm7p0OMulAz5jTbba1w=; b=S5kWWUpe71ydcBL3PF6eCFwTFe3pCooytWoRrhqs+OVwmyJN4bY6PFVQ66VdWcM9Ta xBRsCBjwuppkgLwuRYfBAn9c2v9FGm4/bLzCDqpsSlWcQZZI2yQ/1iW5bzaM7E8ibnsO +CbIbpAsWhL+KPMXMgZYaywbPyIsO9ShNgLnHdDLBiaEpODnK5wHN3PekCKE40fdLa36 iwxnnxHogSMpkOcTyM9+N/jto1ounro7cMNBNNZDYStJ0y7fp9SH/QQ/iKE4q0R13wZF zC0knuKOac8GGOr9khPVewr3/8FfijG0kKmFObl9GUtJQuxPKYcXqP3iBGPkz0c8FlJD mX7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696848573; x=1697453373; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=zio3enSGUI5YkwLUuED6dkFSvm7p0OMulAz5jTbba1w=; b=j9rANtXKlk+9CF28LciNWkJ9V05pM7H7VQM8zNVrpfwnrZcCA1qKQwv+1YTp1iLmXP ppLQubnt3QcyTKAbz2lowYzLDPwhVerQARzaNFQAoutbcnCyGaQCqGKxWi1WPN3/u6Jy n4iSuifoFgPPTABxAFXrx1ZiJUsWxkWmMJz3JOL3cUp9/3YjjsTbR9vtVA0541AbHpUZ 62fNTTGfBtkiy2zpZblM7ofLqGjt7ecsXi4CYGStIGSdNAYmKLAuiwB0EhcjeyI4AWSv 3247D3Y79sWBOEWoYAir2kuDMtEyq9stWW65NtWSkGzaCq6JXAxP8B+BSJnD2/sNPF4i TFEA== X-Gm-Message-State: AOJu0Yx/7022pIe3G2Kd+44jRWRlup+1wwph0NuNgLRyg08FKAduYbDT GscJbOxx0SUwYhXtbcmLc13t3VJMzMt4XYjeTD4= X-Received: by 2002:a0d:d9d6:0:b0:589:fc81:952e with SMTP id b205-20020a0dd9d6000000b00589fc81952emr14981515ywe.7.1696848572990; Mon, 09 Oct 2023 03:49:32 -0700 (PDT) MIME-Version: 1.0 References: <20231008094816.320424-1-tmgross@umich.edu> <8a6a2133-92a0-4478-8f3a-e1c7ba38ff18@gmail.com> In-Reply-To: From: Miguel Ojeda Date: Mon, 9 Oct 2023 12:49:21 +0200 Message-ID: Subject: Re: [PATCH] rust: macros: update 'paste!' macro to accept string literals To: Trevor Gross Cc: Martin Rodriguez Reboredo , Miguel Ojeda , Alex Gaynor , Wedson Almeida Filho , Boqun Feng , Gary Guo , =?UTF-8?Q?Bj=C3=B6rn_Roy_Baron?= , Benno Lossin , Andreas Hindborg , Alice Ryhl , rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, FUJITA Tomonori Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=3.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_SBL_CSS, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Mon, 09 Oct 2023 03:49:56 -0700 (PDT) X-Spam-Level: ** On Mon, Oct 9, 2023 at 5:04=E2=80=AFAM Trevor Gross wro= te: > > Good point, thanks! I'll add that if there is a v2 (or Miguel can > probably add it if not) Yes, I add them myself when I notice they are missing (e.g. most recently 2 of the ones in `rust-fixes`), but patches should definitely come with the `Fixes: ` tag themselves, i.e. it should be the exceptional case. However, is this actually a fix? The title and commit message make it sound like it is a new feature rather than a fix. And the docs of the macro says literals are not supported, right? So this probably needs to update those docs too (and ideally add an example with the newly supported construct too). Or am I misunderstanding? Cheers, Miguel