Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp1945686rdb; Mon, 9 Oct 2023 07:52:02 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFkbQYXcuTn60PzDJ4u6ItSfxFeSXfVysciZ93SDd7zGRqYFvcbcXRRwwPCFoxFJJuS7SE5 X-Received: by 2002:a17:903:1210:b0:1c5:9f52:6a5b with SMTP id l16-20020a170903121000b001c59f526a5bmr15621768plh.42.1696863122349; Mon, 09 Oct 2023 07:52:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696863122; cv=none; d=google.com; s=arc-20160816; b=LGuKyWiOXMSwLnsz4OpUi1oj7KpZGrS+KrmhxUrnDyJV41nP0xF6+mLE57xenD7X9i CxiErGcaJpwgwyr0PP9gDQCMyvadRKFxc9h24G/0tdCKCVzQwEH/1+x93PRPTQt+V3ab B5ivZGFfaxUpVJAKDuwJ2szbLPV6FDcCJrASO7IMroSViEzbeAfH2+xnvYnjjET8Jk7R 79Ti47aJAwdb+A183nqa01qZ8q/7N1O/nw8/Zh8HEYdd7MveT4zm3ZTL4kKwKMONUWKF h9sBM6o5+tZC+YGkk8kGGOVDc/Ebs7mBcB067QXr8/GODkHG0A7n+Y03DTvUyKVNG9Uz tmbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :feedback-id:references:in-reply-to:message-id:subject:cc:from:to :date:dkim-signature; bh=6sKASihZm9I/toAswxlIwK+AAwIK2Fz8cJLnFLKHAas=; fh=9HLiVqXApA0rNZGNzU6aafwh1nCuVe6NIbw+07zHE6E=; b=kNiSMqLm6ZAM+PQZHM82Y2q3+Zf2qZ+es1ULxgUMgHbjXmxgdwOZPRsjKQPlxCJ8v8 tI82jEIzdlzIKmPPbLaz0NmhTvqK9nf2Fj6KlgZr36y6BO9bNy9MGRJjjnbny6VNcP2z d/aj4oRT78sK5MAuJC9/VJAzkQSgG9YFK2PCP/C73vH4/AeilsWPeJRWtrKvoW3+ZJmv e4I0UvgR4/hrljFflvFxEhHSXE9j++nXaF3fOxF0TVuYCzBGL7nKrgKwzvO3xGg8LFXF VmCmVJhereTe4apOxgjSmeHzTFjlNgBVIbeWdayDUmZ7L+KIVj/tK7dIWPJsh2ZWSf5v SPPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@proton.me header.s=protonmail header.b="C7x/rMsk"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=proton.me Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id b2-20020a170902b60200b001c746b986e2si9172155pls.346.2023.10.09.07.52.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 07:52:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@proton.me header.s=protonmail header.b="C7x/rMsk"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=proton.me Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 0BFF780475D0; Mon, 9 Oct 2023 07:52:00 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344571AbjJIOvp (ORCPT + 99 others); Mon, 9 Oct 2023 10:51:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34186 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230326AbjJIOvo (ORCPT ); Mon, 9 Oct 2023 10:51:44 -0400 Received: from mail-4322.protonmail.ch (mail-4322.protonmail.ch [185.70.43.22]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B38DA3; Mon, 9 Oct 2023 07:51:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proton.me; s=protonmail; t=1696863098; x=1697122298; bh=6sKASihZm9I/toAswxlIwK+AAwIK2Fz8cJLnFLKHAas=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=C7x/rMsk2bCe3th6KW2UmrTnFHKpuIP0EvK7pPEmUOh9B+17B5nucfHHvuou/NCwf YFoM/5ItEpq8axKW8TZfhNC2iGOd2Rf5M0o3CJ9BoOCqwFwtIGZC07rGIaqDMO+yqk kYvVvJcN9bneqQ1z14PVlnUDkTVrEmh1XrzN4pMsXtIysuobgXIcnQ/Z8kQEc19TOx z4cl7A8yaZ7khENkgHqTUeGRei1dS5iQj0tJ0u1xRR9zY2xk8RDWlQyn/XSTxePCrR odkWPdSzwHQYIxaOsbGPEVu8j9vptTYS1Zg8t+m5k+AVRnEFa38KXofmBhLrUeY5Ld GHAfl0ohUeyhw== Date: Mon, 09 Oct 2023 14:51:33 +0000 To: Trevor Gross , Miguel Ojeda , Alex Gaynor , Wedson Almeida Filho From: Benno Lossin Cc: Boqun Feng , Gary Guo , =?utf-8?Q?Bj=C3=B6rn_Roy_Baron?= , Andreas Hindborg , Alice Ryhl , Martin Rodriguez Reboredo , rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, FUJITA Tomonori Subject: Re: [PATCH] rust: macros: update 'paste!' macro to accept string literals Message-ID: In-Reply-To: <20231008094816.320424-1-tmgross@umich.edu> References: <20231008094816.320424-1-tmgross@umich.edu> Feedback-ID: 71780778:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=2.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,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 groat.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 (groat.vger.email [0.0.0.0]); Mon, 09 Oct 2023 07:52:00 -0700 (PDT) X-Spam-Level: ** On 08.10.23 11:48, Trevor Gross wrote: > Enable combining identifiers with string literals in the 'paste!' macro. > This allows combining user-specified strings with affixes to create > namespaced identifiers. >=20 > This sample code: >=20 > macro_rules! m { > ($name:lit) =3D> { > paste!(struct [<_some_ $name _struct_>];) > } > } >=20 > m!("foo_bar"); >=20 > Would previously cause a compilation error. It will now generate: >=20 > struct _some_foo_bar_struct_; >=20 > Reported-by: FUJITA Tomonori > Signed-off-by: Trevor Gross Reviewed-by: Benno Lossin