Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2239281rwl; Thu, 30 Mar 2023 07:48:57 -0700 (PDT) X-Google-Smtp-Source: AKy350aI1L2jviWe1vx1f8XpGfKTVCJTmkdVcQoGxlJcBhfphcKzpLIvTeP3ovgMYjYMtVbNwGN8 X-Received: by 2002:a05:6a21:3381:b0:e3:e236:bbd4 with SMTP id yy1-20020a056a21338100b000e3e236bbd4mr2782287pzb.2.1680187737332; Thu, 30 Mar 2023 07:48:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680187737; cv=none; d=google.com; s=arc-20160816; b=w8towTRSa1QcxgzubX3OCLyHi0a8xUk/HezaNN9kIPHSIJ5NBQs12Op/2WIumefUeS EZrUuBZq/feSp3Z6vEiFYM/RrofeBVUbIHtjMwWNhwdmrDYhuvNQPENdarmTC9rA2hZV yY845VUz9FND83zfbpJfYspYRJueSxy6pCdwZalMhue46zjiLiy8J6WA+zxNSo1PqYz5 jsVR6ZthO1kByawVoamTHdK+6YnpfEnim2ukbY2+4Vfjkbxdyk3d7vefmvIbTCdXadEv 7iTZiMcze/mLIS5b43PpVYfMYAnbG4aDMidNknOtVbIQHUtwueOonkPhuQVkyZ8jFXcg QItQ== 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=eEEZ+8AfxYs0SGGK+yrFh1itzbAaHrsVMFsUFFMshlo=; b=SWcGg18zDuFVVTMMCybIaB5ApTeXg/KNYjPlouPZwxuDnGC7EOplvWVcje+ZN24Ujr H5BOTDF8+icmklbE+buX9bJ+iwhy0v3kN7y2DExQaCXaKaYfUdiCkDOndA7UUA+24D1u P+ESU7fPVvozxB1/n7ajemngnbORDzgaPVLw6YWhUeu4tbhQPr6JY6bhHOsMcXOF0fHl Zomu7uD3J3aANRMKSTJBSaYCtushsKD7cyKSzRRFYFc/YULvwGRqxsV08PhyXYZFs7JT Sf+puqu4GvsbSx4O1JweDLkoIodGpGN1DKl08wAE0cBY6K+DnZIDrCYTIysxPBYNul2y qnCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ryhl.io header.s=fm2 header.b=pfxN3IQj; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=Dd1oKzSk; 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 r17-20020a056a00217100b0060102d22785si32837970pff.283.2023.03.30.07.48.44; Thu, 30 Mar 2023 07:48:57 -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=pfxN3IQj; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=Dd1oKzSk; 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 S231837AbjC3OpH (ORCPT + 99 others); Thu, 30 Mar 2023 10:45:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52440 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231367AbjC3OpG (ORCPT ); Thu, 30 Mar 2023 10:45:06 -0400 Received: from wout5-smtp.messagingengine.com (wout5-smtp.messagingengine.com [64.147.123.21]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB8A86A42; Thu, 30 Mar 2023 07:45:04 -0700 (PDT) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 879B1320093E; Thu, 30 Mar 2023 10:45:03 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Thu, 30 Mar 2023 10:45:04 -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= 1680187503; x=1680273903; bh=eEEZ+8AfxYs0SGGK+yrFh1itzbAaHrsVMFs UFFMshlo=; b=pfxN3IQjKzzMo0Ixa0+GXvS7zmYXHkbJBNrNDYsCCs30dB1EIv2 vzO/B6wa06tdi8ZFO70TBX/8CpP8a66//bO3CF316ALp6O+gQyOOnHS2wETx4xlP DUNa+Rlx+JOEUBeatPX8Jb9jcKg1+toPj6PXFEHmSHn1JIbwnIAvHeF4u/u/nkaf x70N1rBGhYuGH0TWiwnAeTtFS2QD82qmUnWKviC2+iiJoUor/HFUNQaSr71tTAul KkGnDPjEUkH+vif4yn7Bz9vOFFUwEmiQMG/LRUUPOJ4Nlwi/czrOTxwzHwkz/Gpy RqdHs2+oyf5y6arkAIG884+pT7siHbDUoFQ== 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= 1680187503; x=1680273903; bh=eEEZ+8AfxYs0SGGK+yrFh1itzbAaHrsVMFs UFFMshlo=; b=Dd1oKzSkUlSptfN3q8E81cbrplV2+wGgYzYTmsa+KYKJlu3AfJ6 3tISYeksof/Ekt7lNAnOSGIjhnZvvsjzyZYWBS0ToQgq2qUqZ6Cq0YmGbSMOqGaw V37TDr4psdRb6aYJnQSRW2LCjQGdwzDFnWLV8JsC6K0X/Ce2sgbWOMoqyAyWzZAj Rep3y5UVerTAVHABpBlRY1c5ZHW9F7JPXMdgqo1zuDol0lbemLF4d/xykcQKhg4L h5koENzeteiz+7/DWuNBbiPSUGf9kJQ2mztBBwX0tdAMMHwcVJgmsk32SxRl1gYj 6GJw4sY0qdVmd5me352RBlTQcEn/ii5VZwQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvdehkedgjeekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpeetlhhi tggvucfthihhlhcuoegrlhhitggvsehrhihhlhdrihhoqeenucggtffrrghtthgvrhhnpe ehudduvdetkedvkedtudeludfgfffhudegjeeguedvvedtteevjeehheeiffefgeenucev lhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhitggvse hrhihhlhdrihho X-ME-Proxy: Feedback-ID: i56684263:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 30 Mar 2023 10:45:01 -0400 (EDT) Message-ID: Date: Thu, 30 Mar 2023 16:45:14 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH v3 07/13] rust: init: add `PinnedDrop` trait and macros Content-Language: en-US To: y86-dev@protonmail.com 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: <20230329223239.138757-1-y86-dev@protonmail.com> <20230329223239.138757-8-y86-dev@protonmail.com> From: Alice Ryhl In-Reply-To: <20230329223239.138757-8-y86-dev@protonmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.9 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 3/30/23 00:33, y86-dev@protonmail.com wrote: > From: Benno Lossin > > The `PinnedDrop` trait that facilitates destruction of pinned types. > It has to be implemented via the `#[pinned_drop]` macro, since the > `drop` function should not be called by normal code, only by other > destructors. It also only works on structs that are annotated with > `#[pin_data(PinnedDrop)]`. > > Co-developed-by: Gary Guo > Signed-off-by: Gary Guo > Signed-off-by: Benno Lossin Reviewed-by: Alice Ryhl I noticed the same thing as Gary with the name `create`, but otherwise LGTM.