Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4884129rwl; Mon, 3 Apr 2023 10:58:35 -0700 (PDT) X-Google-Smtp-Source: AKy350aODnaYZumfPQ3vL7IbBb4+l5HL9wG4J6fCW3joCiPDbb+AS+8tkSflpH1FZH3mhs4hxRhY X-Received: by 2002:a05:6402:709:b0:4c0:1120:a15d with SMTP id w9-20020a056402070900b004c01120a15dmr102060edx.5.1680544715384; Mon, 03 Apr 2023 10:58:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680544715; cv=none; d=google.com; s=arc-20160816; b=bAQauUgxpbyFm5b7Xpxr63szrU7HZ66KCMqfUq+Kr/ZAPoHDcXVbQg1Lsn0JLtGKY/ W2IiMxAi9pZG+wG/KucxxLVJC+mHPED4yJpl0boKTyr76poR/ZX8IlS4wz4VcnEiTV61 7G8jIgvLkMoL4RmKBwJXNILaUXUmoZkpdA9MZkJohu22AcGmsU0UUvbcu5htO++N7h8/ atLQNmJ7NWq2nk1eACnN/8S7nI/1LSDh9p3fW7XXllkvKtydYQfpl7Mdqn8L7zMGei1j v8sHaUHheasJ31yHhbbeZi/xhAu3QHM2DFUNoWkKTAvtcBhcqIfBOaqG8Qmo7WKwgRXo y9yg== 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=ll8gpUVGJA6NPP08LtOOvFlPRy6vgkHj5Yp9xxOsn9c=; b=AP+C/bNc9CBaJvzxTsEJjw6KcdMImTqzxyj71oj4+u7Oy5++Hadgfsa2Q8Y2fTLD0D QmbVFvDIa0uQDMav+hJxsbPx3TXv6Hqpw3Kha/Nn/v4UCzqHlZv3K19xBu/i1W+h4w0t WTWyZjcZzwPd5EhfSvXr4MWnWUQR9A5yhHeaYTUE8+FWNTyLuadJokTxc7zGfhOqnjUz xOcmKVR6rqi8ib/926+q9CLlNYpwEDdVhCo7EiROlcH3eWGQpJtx4G6ap8vW+XDpVFgQ Ts5XQD1LaFJXmCMcE9JhmHiOse5q15H5CDHDfkfzbNHfUmmLTz1155r35Rhbmi7Q8pd+ f2kw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ryhl.io header.s=fm2 header.b="ljG/i0SM"; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=eF8eorsq; 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 u6-20020aa7db86000000b004fd1f069ba6si5572696edt.560.2023.04.03.10.58.10; Mon, 03 Apr 2023 10:58:35 -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="ljG/i0SM"; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=eF8eorsq; 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 S232935AbjDCR5d (ORCPT + 99 others); Mon, 3 Apr 2023 13:57:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232925AbjDCR5T (ORCPT ); Mon, 3 Apr 2023 13:57:19 -0400 Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A71203C11; Mon, 3 Apr 2023 10:57:11 -0700 (PDT) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id E6FDF5C00EB; Mon, 3 Apr 2023 13:57:10 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Mon, 03 Apr 2023 13:57:10 -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= 1680544630; x=1680631030; bh=ll8gpUVGJA6NPP08LtOOvFlPRy6vgkHj5Yp 9xxOsn9c=; b=ljG/i0SMURxeCtZ2Potc5lsV2L0IkYo+ckhiwGpVI5J4rdxfb8n YGVLoSkx0YDtmKUP5lp6H6fsLGRZkm+lQCIwVI/rB4/2oNcX7J3NHSzkFrnTBvPU 9b65xV81IsZxpwM+HJsVfQjZ+Rhz9RmUj0HiA/8oOzOnB00pDJIi3WaI4PoL0ME8 Ysk2e13W8n2FhHu+olSW5eXxe8z5W2V8zmSjyHpF1bTh/ZyECvKsDWxOjcEUorla QC+ijOjiXdA7imuck33AHBxdlS0Wg/XVGbBlARSCGVGnDQNSEY5TVWcJ5Tm96ojn bxGkO9M2ChnKK+EX6/sZh/2O5Ia5kAj0Gkg== 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= 1680544630; x=1680631030; bh=ll8gpUVGJA6NPP08LtOOvFlPRy6vgkHj5Yp 9xxOsn9c=; b=eF8eorsqN0qYb8zhUUKysikZP9NKClZJk/XZUWA54XZEeKonR6k EqMYI+1LKaCMrB/SNibNGf3DRbgwlR4FFiDuCLZ489SNQliemfW2smmfsp+wd2jI GSsqKQQeC4FcPaoPLWxc55u8SdOHC87DUeLvrIp/2oZ7BbHRTbRBN+H4KTg7hYYP i49eYTMkZlE3S4kN78qB8urHHgztHRkBIrjuNiaOVybCxyUnXKwuDGBaLChkz1IF ks1/ETof8I93qHklR3cstXUziv3Tz/321zpihyp1M3GGMf1MfYx6uGJOFA4vMKx3 DJyrm4lN5XjNJLOw+Wehr+shkdh27MuIFSw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvdeijedguddvudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefkffggfgfhuffvvehfjggtgfesthejredttdefjeenucfhrhhomheptehl ihgtvgcutfihhhhluceorghlihgtvgesrhihhhhlrdhioheqnecuggftrfgrthhtvghrnh ephfehueeileevjeefkeetvdffveffudeuhffgtedvuefgiefgiedvjeegvdejleejnecu vehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghlihgtvg esrhihhhhlrdhioh X-ME-Proxy: Feedback-ID: i56684263:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 3 Apr 2023 13:57:08 -0400 (EDT) Message-ID: Date: Mon, 3 Apr 2023 19:56:22 +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 08/15] rust: init/sync: add `InPlaceInit` trait to pin-initialize smart pointers 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> <20230403160511.174894-1-y86-dev@protonmail.com> Content-Language: en-US In-Reply-To: <20230403160511.174894-1-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 18:05, Benno Lossin wrote: > The `InPlaceInit` trait that provides two functions, for initializing > using `PinInit` and `Init`. It is implemented by `Arc`, > `UniqueArc` and `Box`. > > Signed-off-by: Benno Lossin > Cc: Andreas Hindborg > Cc: Alice Ryhl > Cc: Gary Guo Reviewed-by: Alice Ryhl