From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6581DC6FD1F for ; Thu, 16 Mar 2023 09:34:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231175AbjCPJeh (ORCPT ); Thu, 16 Mar 2023 05:34:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57700 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229950AbjCPJee (ORCPT ); Thu, 16 Mar 2023 05:34:34 -0400 Received: from mail-0201.mail-europe.com (mail-0201.mail-europe.com [51.77.79.158]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 43C2C6EA9; Thu, 16 Mar 2023 02:34:13 -0700 (PDT) Date: Thu, 16 Mar 2023 09:33:59 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1678959248; x=1679218448; bh=ySIfXFt6Xi6R7YaroHVL2o7033EHtToARDDqQVRsMyQ=; 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=f/Jy8j02JZSc3nrQHu0gMVGP50bKj7qWX4p9h0keACRF+b/nzKFFG5Xc02OaZK4sa ZQ/5cX7hBWB48YyrEZJjIvIOIRkqGexRDzdRwRdtZ2UDRcCvQpso11yFX815A8Fs80 eJGc3bKGZm+XwIErvHOg+3ieANnU1hVnJCUYPwvbb6lIzGF+Nqwgf8meG49fydhSO/ CWGCYxYy9DVS3z+VT0wxhm4sP3YEqA81hbtKiFSp6b6J+agibtsGMcvPavtCWBSdo5 otNY4QQK9OayXfLaeQv2MJ7aOF0BwPh1pYqzJfIQjnixvyRzPQ1RhVTNrkAfmh+VKZ ROUsjF4hLS8ZA== To: Boqun Feng From: y86-dev Cc: "ojeda@kernel.org" , "alex.gaynor@gmail.com" , "wedsonaf@gmail.com" , Gary Guo , "bjorn3_gh@protonmail.com" , "rust-for-linux@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "patches@lists.linux.dev" Subject: Re: [PATCH v1 1/3] rust: macros: add `quote!` macro Message-ID: In-Reply-To: References: Feedback-ID: 40624463:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: rust-for-linux@vger.kernel.org On Monday, March 13th, 2023 at 16:30, Boqun Feng wro= te: > On Mon, Mar 13, 2023 at 01:23:18AM +0000, y86-dev wrote: > > > From: Gary Guo gary@garyguo.net > > > > 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 gary@garyguo.net > > Signed-off-by: Benno Lossin y86-dev@protonmail.com > > > Not sure whether I missed any sutble details, but the macros look > straight-forward. One thing could be improved is having a doc describing > what `quote!` does, a link to the quote crate will do the trick. > > Anyway, the code looks good to me. > > Acked-by: Boqun Feng boqun.feng@gmail.com > > > Regards, > Boqun Sure, will put it in v2! Regards, Benno