Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4883285rwl; Mon, 3 Apr 2023 10:57:45 -0700 (PDT) X-Google-Smtp-Source: AKy350agryKShwguLhWzgP/KOKHKk51THr2AM6E4WoozfUX7tbr9mLWRJ1yql5pr8zHhpbrS8HOL X-Received: by 2002:a05:6402:514d:b0:4bd:94b9:b8a8 with SMTP id n13-20020a056402514d00b004bd94b9b8a8mr51047edd.26.1680544664799; Mon, 03 Apr 2023 10:57:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680544664; cv=none; d=google.com; s=arc-20160816; b=Sefx67PeOXT8xP5X7O1YNqOf+RiqcxPZP5zQR9kMSa0HJ4poI9H+kifHUorFaAPmrH T2UFqOD6yRygNIJr00f2yqBtR3lmvV/6NIYlw/q8OTg9Op7wvK0t1T0J8edRYQL8zhrx Z7Gj+QSOIhaRXuAG00DggT0nn13ijtBmRZl5ohKQcARaYeMpSOJy4azIdeDb5uS9KJTy ziH8yeeeW0P3XHGelj7kBDqaNgsIcsfnbKMOQ0gv8iDGeOKKUKyFXKegs69RzFEsCC8Q Qt9NFfqA6Rgv8QUYB1C4D238tcdcZRoRcE7YrLeOLpOiDcToVqZ6nWNljUJL/dRPi8zE d8nQ== 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 :content-language:references:cc:to:subject:from:user-agent :mime-version:date:message-id:feedback-id:dkim-signature :dkim-signature; bh=d1S59PhxnSj4AeYVzX+B9aGqvJsridFhmS7IXjbfIZo=; b=fKA2UIYsFC75lbWJ7fZV2HroTWGi05naEGlNC8/o8PV1AjVfwckUfZ7XpJQ05DGabi fXhuWnj+sqyyKDi3qZBzw0B8fT5g7XGy/TGyVwqVa0hAQStDPHPLJ7EXl2I/vh/r4XEW dEsWnYsHOXKAyWnOghGCbpLhrYLHaVpTqjlULvsnBKwR1PuiYIMScIsEzKeDJt6jE5DX C6e4FN2O+4syMi/tM8OtNcmV0edg8/KFYOzYTXEdwXCXrN7XhvmHxNFu+NJR9SsHHljH rPzFNfTM1NTXV6sfx114cgqJp8w+lo8yoNTSSCRJLH+Mzkl23ib6M3i/7Wp971cYSbw7 yR5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ryhl.io header.s=fm2 header.b=KZykcpbB; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=FeneOD92; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ryhl.io Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r11-20020a056402034b00b004abcb9e6563si3045079edw.80.2023.04.03.10.57.20; Mon, 03 Apr 2023 10:57:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ryhl.io header.s=fm2 header.b=KZykcpbB; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=FeneOD92; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ryhl.io Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232697AbjDCR5D (ORCPT + 99 others); Mon, 3 Apr 2023 13:57:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45564 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232585AbjDCR47 (ORCPT ); Mon, 3 Apr 2023 13:56:59 -0400 Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5E3B359C; Mon, 3 Apr 2023 10:56:53 -0700 (PDT) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 165E95C0130; Mon, 3 Apr 2023 13:56:53 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Mon, 03 Apr 2023 13:56:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ryhl.io; h=cc:cc :content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm2; t= 1680544613; x=1680631013; bh=d1S59PhxnSj4AeYVzX+B9aGqvJsridFhmS7 IXjbfIZo=; b=KZykcpbBuIJLw9Uo/KL7sPShQgMgLCvpu3Z+NwWljc66P4xKOv4 BBfOzuXasuB+7U7COdKKTDN8wnG4E5A8o6zKh0OLDEt5ZALAk7nsN1U+r/z7bzDC cNNuicBQe+EfMr2wgxOjgQlGWk5Uu1Y9JIsmvvkUszmQn63xuoadF7v5VjYw0B4b D3xemzxPYSW16eLAmzT4+Oelsuex72THHpPhZ8aiMlNhJdycC51SnWqDd14S29tu iaa+DZyL9h/ZLwbhb1TauM5KU2mVTzZ4PaDL2NJ50oGBwitYqqpRDrwbi8vFIsKW +6RGE6fu9NHxLO47ZDkylcQ7vhKKBdZBaLg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1680544613; x=1680631013; bh=d1S59PhxnSj4AeYVzX+B9aGqvJsridFhmS7 IXjbfIZo=; b=FeneOD923NqNa8Oc5AB/Uo5uVwnHd2eynK+6giVE3gOpMXt9YdL fK+E6TMjjOi0ktaeNthWLMlo/C0k745F5iwrZD/gUJKSdUaayTxFSbsHWnJ2u0rq vl5L9CYKEdlLKuVijGBFj3/X6yr5peA3VwNmvxn9gTo5gb5ZIjUftoBJF9Ba154m +gG6+l5NY0JKepTyqTllFqY+9b4CqjPugpJLPZsDLQNbs0E98hoGIvAzJllyKKYp 7eG7azKvQ6f4KAVC+/v+DQx+PNh5PIdti8uyRTVKME49nhf5tJH9EmipVXdVqFNC /0JyBs9xSAyT4uDCkKlwLy2sDhnL8/0cE6w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvdeijedguddvtdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefkffggfgfhuffvvehfjggtgfesthejredttdefjeenucfhrhhomheptehl ihgtvgcutfihhhhluceorghlihgtvgesrhihhhhlrdhioheqnecuggftrfgrthhtvghrnh ephfehueeileevjeefkeetvdffveffudeuhffgtedvuefgiefgiedvjeegvdejleejnecu vehluhhsthgvrhfuihiivgepudenucfrrghrrghmpehmrghilhhfrhhomheprghlihgtvg esrhihhhhlrdhioh X-ME-Proxy: Feedback-ID: i56684263:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 3 Apr 2023 13:56:50 -0400 (EDT) Message-ID: <40ca0d4a-a46f-787f-d227-1d64cdb3adc3@ryhl.io> Date: Mon, 3 Apr 2023 19:56:11 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 From: Alice Ryhl Subject: Re: [PATCH v5 02/15] rust: macros: add `quote!` macro To: Benno Lossin Cc: rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, patches@lists.linux.dev, Andreas Hindborg , Alice Ryhl , Miguel Ojeda , Alex Gaynor , Wedson Almeida Filho , Boqun Feng , Gary Guo , =?UTF-8?Q?Bj=c3=b6rn_Roy_Baron?= References: <20230403154422.168633-1-y86-dev@protonmail.com> <20230403154422.168633-3-y86-dev@protonmail.com> Content-Language: en-US In-Reply-To: <20230403154422.168633-3-y86-dev@protonmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/3/23 17:44, Benno Lossin wrote: > From: Gary Guo > > Add the `quote!` macro for creating `TokenStream`s directly via the > given Rust tokens. It also supports repetitions using iterators. > > It will be used by the pin-init API proc-macros to generate code. > > Signed-off-by: Gary Guo > Signed-off-by: Benno Lossin > Reviewed-by: Andreas Hindborg > Cc: Alice Ryhl Reviewed-by: Alice Ryhl