Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp27325rwd; Wed, 17 May 2023 14:06:32 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7zMh7fx+vS7hp+DvOByYejIlrXp18Z2m7rzLsVAa8MtxBT/T9C7EPaTgP0Nf6N1TDeBdS8 X-Received: by 2002:a05:6a21:6d84:b0:103:fcd7:544d with SMTP id wl4-20020a056a216d8400b00103fcd7544dmr30325768pzb.47.1684357592493; Wed, 17 May 2023 14:06:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684357592; cv=none; d=google.com; s=arc-20160816; b=uBzj+8kUdldnncRwrfiz0zEPxsLl2f0mb+Sb06pEXI1ETVjUgwLIsrgT1Ebt3+nnFA zEyK17bDPajesVne8z9iJlfiLR799c8bVhDqEAz1zHnvqitdOP7lwpTnnAMmg9WBCtqT hHqPqZPb0qg7+lLY3R1mlF0bPK0a95DQDtSmTGK6/Tu6iP72DOuABDnJRfLEq2BhyDcT pfrS+4Ac0seBrGKdsxGUiPkkvmukMxg3EEJnLj1QNlCX+gF2lE5XTpzDXHC1sgaqNajp tjo0SCMMWbAKyrF+lSe7yQTrRJI9SCLxoiu19jcmdSDjFCnuZz1K0aYqOKS+U3/rBPLD J9GA== 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 :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:feedback-id:dkim-signature:dkim-signature; bh=ghk7mGsvuQGuVrjeRiTDYinTiiFkqaw9VUeQsZ2qew8=; b=k09RSt0UL+G4WIlmLEc1CdCpG+z45BlxuFFI6PDw9n1JOl4Ru1imdAlCUD+os7xlnz zxKKVXJmGIHM1+8JCFfS384891VrSXxysJhuLap31FsHjOmblvU5BFjopMaeERaUa24w 6enJnfzdfnUqdkDhv6Y1h4WwYqmm7fzZ3pzZ7tGhnG8m/pcDdmPTXPXWIdqNq8V2nIC6 4epeeSFGpLqjbUR5u//YAC6AVvClJZQ5DB9Bqn7FADuCexD5menu+4yYtt5K4XRf/au9 qcqOIsWBopojpzWh8j/XbU5ELblm1LvNLaQtnQotaPjHUX3uAAQEo01XrJwsDYDhl4bh wd3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ryhl.io header.s=fm1 header.b=rkqF1pWb; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=tv1dhMRY; 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 v22-20020a637a16000000b0052c44389455si22962484pgc.781.2023.05.17.14.06.18; Wed, 17 May 2023 14:06:32 -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=fm1 header.b=rkqF1pWb; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=tv1dhMRY; 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 S229572AbjEQUks (ORCPT + 99 others); Wed, 17 May 2023 16:40:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229483AbjEQUkr (ORCPT ); Wed, 17 May 2023 16:40:47 -0400 Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1CA4483; Wed, 17 May 2023 13:40:44 -0700 (PDT) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 8BF705C01B9; Wed, 17 May 2023 16:40:42 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Wed, 17 May 2023 16:40:42 -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=fm1; t= 1684356042; x=1684442442; bh=ghk7mGsvuQGuVrjeRiTDYinTiiFkqaw9VUe QsZ2qew8=; b=rkqF1pWbMBTeBx4H44JeGXZ4V4sev7qMDienTltUrQ/wbVIpMx5 lpyR8VEPGxcs6yizyn1BE5lXEjUIFjImSzP41ATpqCwz38owd5hZ/87LCXz9FgLG /qEUnd5eMa9FUmtoDONmqgYJgEuUxyrp8xMYLeNNivKA2lptKAAKEtxaHFqnLNXS qoSjN8CYLZ5crbZDulVL/ZHqCeeSc9Q0bIXeXzuBiYWt/R1wnGWvXAry669vdeRB UPrf6VSTKKKDKegDWx0uDzipS3E7/h3hZNQ+EznVljoGyXTuvuXZLRkZ9ZkJQX6S YxNdUzZskIKM29C7JfYUx1Gd9e/MIfax/VA== 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=fm1; t= 1684356042; x=1684442442; bh=ghk7mGsvuQGuVrjeRiTDYinTiiFkqaw9VUe QsZ2qew8=; b=tv1dhMRYaY4wvGP3WdQW34d9yLhX6PzGXpvJaD3qjha0RL3Ew6R fBmuYbesXTH1LCRh3JJim/saMJzYGWStsZeQTzIzMIsw5J+zCmtUlzfITOHYnFav ucOb6mxNbGQuPcWXxPhzXNiLN4kPM1KOafRFWGjrpN034/ZgWegGG4HEGFnsvAFd swP3qrviYiNgVUHegCMV/4xZ5WKNHDYC00RTxKpAIdanIpsKRvly1VhNtH5bT4eI s6MYaczfXmw5Z8hJbAcV/p8+Ggg6SwFyBMO2aVNo5sDNH+xUCfxqz6pQjhKlDgef CdoP/vLgsTG+f927I9sXXixWUoewOR8AhIw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeeiuddgudehvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefkffggfgfuvfevfhfhjggtgfesthejredttdefjeenucfhrhhomheptehl ihgtvgcutfihhhhluceorghlihgtvgesrhihhhhlrdhioheqnecuggftrfgrthhtvghrnh epheduuddvteekvdektdduledugfffhfdugeejgeeuvdevtdetveejheehiefffeegnecu vehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghlihgtvg esrhihhhhlrdhioh X-ME-Proxy: Feedback-ID: i56684263:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 17 May 2023 16:40:40 -0400 (EDT) Message-ID: <83744422-a332-5b3e-8269-73b2f2ce281e@ryhl.io> Date: Wed, 17 May 2023 22:41:10 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.1 Subject: Re: [PATCH 1/4] rust: macros: fix usage of `#[allow]` in `quote!` Content-Language: en-US To: Benno Lossin Cc: rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, patches@lists.linux.dev, Miguel Ojeda , Alex Gaynor , Wedson Almeida Filho , Boqun Feng , Gary Guo , =?UTF-8?Q?Bj=c3=b6rn_Roy_Baron?= References: <20230424081112.99890-1-benno.lossin@proton.me> From: Alice Ryhl In-Reply-To: <20230424081112.99890-1-benno.lossin@proton.me> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham 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/24/23 10:11, Benno Lossin wrote: > When using `quote!` as part of an expression that was not the last one > in a function, the `#[allow(clippy::vec_init_then_push)]` attribute > would be present on an expression, which is not allowed. > This patch refactors that part of the macro to use a statement instead. > > Signed-off-by: Benno Lossin Reviewed-by: Alice Ryhl