Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp1382838rdb; Sun, 8 Oct 2023 05:32:23 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEYu58C8JZoDUSYD7yIWCHJxYDmsWxAttuZedSRQ0v+2T6+KslIXgwf9mbW3b4TzKwckVHQ X-Received: by 2002:a05:6a21:a108:b0:16c:b8bd:d0f4 with SMTP id aq8-20020a056a21a10800b0016cb8bdd0f4mr4771637pzc.54.1696768343250; Sun, 08 Oct 2023 05:32:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696768343; cv=none; d=google.com; s=arc-20160816; b=0LpBEyIX0Wq+RnTWfigGpdYGNHvjncz9doX4NsrhmoVHd/GVl2sjD31a/M4I39lVHT +aX+45zF0ykgKktC98+d1MjCIR+xZUuk/3TmP5CHlvo54gloxQEhRTjZsiWVPBzH6eBz /13kbScEYB1TkQhGDmfhztfaL9BNbPbbRYbyW/gQFxJdpfCOmJmqxhCkF+3ddhLCf3Xc 3QsNXyPjgTlQNm2GdxSAEf8Tq5tlKX0WbAXHIYEcgS+9JMbwCze2oHJVRN5RaYUT7B3/ bMUFVFA5objhy4urVPyLTYN4+bXYZhHk5sge87/p54vawmCa1JKTKN73Ks3lPpCY//YD sRTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=qIJCmRFAc3w52ZBlV03fWhzbvsCteyyI9dHEKk2inD4=; fh=e2HqGJHlvv43SObZgzlPRNqhhgyXYOQhRM+oN5/chB8=; b=FvJy3mMosskw8Ibb2xz+3PyYhCuLIovS/ZMxmw/6HA9yZDfprZRQbXBJJTbfAThkNt V4LHZldztmT02Omd5kU2FU+UOz8yZLEtHibfNESZZrjoN5sv0DQTRgdDzhQNbtreEMQ3 iEWgWnYt1k1RvXfuy37wbi8ULoraQzxZmFSCaXsUBtW1OZ5df0eLfRZALwDcHwE+8VZu 8qaCtrTR3yifBgu4afYrfZDmjjRGYRQr4eY8TPUAtRg5eN70vMxyVV3Dlu+0P5Ibjsop kGYJguZhx8Vi1K9rQo18fdPUZ4b8yiSg9RhM1T517ZoZPntwC+MoHT4201fsQ7OJLGih u5nQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=emYBxCYZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id ju1-20020a170903428100b001b02e8d8976si7128380plb.300.2023.10.08.05.32.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Oct 2023 05:32:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=emYBxCYZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (Postfix) with ESMTP id E8192806533B; Sun, 8 Oct 2023 05:32:20 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344745AbjJHM1K (ORCPT + 99 others); Sun, 8 Oct 2023 08:27:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230303AbjJHM1J (ORCPT ); Sun, 8 Oct 2023 08:27:09 -0400 Received: from mail-pf1-x435.google.com (mail-pf1-x435.google.com [IPv6:2607:f8b0:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 527AAB6; Sun, 8 Oct 2023 05:27:08 -0700 (PDT) Received: by mail-pf1-x435.google.com with SMTP id d2e1a72fcca58-6934202b8bdso3026019b3a.1; Sun, 08 Oct 2023 05:27:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696768028; x=1697372828; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=qIJCmRFAc3w52ZBlV03fWhzbvsCteyyI9dHEKk2inD4=; b=emYBxCYZAREFj1XOPnf6WleuWesVaGzk89plTL6O8cxA3iSHXu39+hT5Sx1NT+yFtR Xb3fkUWbZyQmAI30rg3viAJKLD0dLge1LYfXZhcO/cs6L+FxKysq2tozxdrdCjvWGXh0 B/Zssk+33lYy86L0tZNkZBOy4uFlR5qF0MMEy7PftL0g4ifcR5RD3a55vHluFrmGM1x/ 1blSD/21SSHFXR4qVJrHekqoU77Y8rmpWj0+5XophDq5R7k6/BmjObs4vXLRyBfVpDGI lHuoHy79pemYuSdzRcDNJ8rcU+xnBzvcM0AybNjYVh+UMnyXxj29E0EBlLd8vFvNObn3 vrnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696768028; x=1697372828; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=qIJCmRFAc3w52ZBlV03fWhzbvsCteyyI9dHEKk2inD4=; b=AoRax0SiW6PbRRLe7aQ1y3h1JINLNOme7cFA0V03hiu4sBusErNTAnl03BKO4KoPCi oFpOEIynEwLQ3Rw+nFbrpPtShqG/MmFyzDVDAV82XmdgeLfSruo/mK8MP3nOaiKBrUK7 CzILMyvpM0No37Rynbov0e4qhOs3N2RcoPlOqFMg9e7t/RDrExfTfPncS20MwKnzGbgN gkC3gs9a9ygnI1Qgr8LyVpWgZC1Z9MufbTwbl4b1tE1vwIbfBvBo/BDGMXdcNHDqSoS/ pPqn3mmyKZT20lELfMULuegY9TaT72fAJxmWv4G/UgR6Fm8bvR9yNq6GnNZbJ5oQLI2Y 2jzg== X-Gm-Message-State: AOJu0YxbwIeOjX9tQJ0ZHkbyl+WJdR49k1ZpPGjnn91Cvijxusz5ioJH c4Vba4TbwYqL19C/NzKYSA4= X-Received: by 2002:a05:6a00:1390:b0:693:3d55:2ba6 with SMTP id t16-20020a056a00139000b006933d552ba6mr16537033pfg.9.1696768027731; Sun, 08 Oct 2023 05:27:07 -0700 (PDT) Received: from [192.168.54.90] (static.220.238.itcsa.net. [190.15.220.238]) by smtp.gmail.com with ESMTPSA id e24-20020a62aa18000000b006979f70fdd5sm4456798pff.219.2023.10.08.05.27.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 08 Oct 2023 05:27:07 -0700 (PDT) Message-ID: <8a6a2133-92a0-4478-8f3a-e1c7ba38ff18@gmail.com> Date: Sun, 8 Oct 2023 09:27:01 -0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] rust: macros: update 'paste!' macro to accept string literals To: Trevor Gross , Miguel Ojeda , Alex Gaynor , Wedson Almeida Filho Cc: 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 References: <20231008094816.320424-1-tmgross@umich.edu> Content-Language: en-US From: Martin Rodriguez Reboredo In-Reply-To: <20231008094816.320424-1-tmgross@umich.edu> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Sun, 08 Oct 2023 05:32:21 -0700 (PDT) X-Spam-Level: ** On 10/8/23 06: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. > > This sample code: > > macro_rules! m { > ($name:lit) => { > paste!(struct [<_some_ $name _struct_>];) > } > } > > m!("foo_bar"); > > Would previously cause a compilation error. It will now generate: > > struct _some_foo_bar_struct_; > > Reported-by: FUJITA Tomonori > Signed-off-by: Trevor Gross > --- > > Original mention of this problem in [1] > > [1]: https://lore.kernel.org/rust-for-linux/20231008.164906.1151622782836568538.fujita.tomonori@gmail.com/ Next time I think you should put this in `Fixes:`. > [...] Reviewed-by: Martin Rodriguez Reboredo