Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2143167rwl; Thu, 30 Mar 2023 06:38:32 -0700 (PDT) X-Google-Smtp-Source: AKy350a6bHjkSvf+MnAQu4E1GdgA1CU2Bbf5MCK2QCpaxrPXOiQUG7zHHX6ITLmCCwMi+qJ42Ht1 X-Received: by 2002:a05:6402:4413:b0:502:92d:4f51 with SMTP id y19-20020a056402441300b00502092d4f51mr3043268eda.1.1680183512417; Thu, 30 Mar 2023 06:38:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680183512; cv=none; d=google.com; s=arc-20160816; b=D3rDGk+dm90BMTx0FdeE0vcJQrvLtvRwtOZYBDXFVWHgzfXq6WNm6abR5SmOkK2ZyF IU/uYGv7gpAWxog7N/e4xLv7Js4Ku05H2WXAkdm4YTKGA21HG1Mo1rkYdA2uBcW+PVkI plB0cjm0fXZwvOrqNu/EoezpJmzbo88VIIVdlhKwsmxZFXN9GhGt6ENrvs6DPrAFYY9A BG3q4HSBmiD93zr3PRwAwZSMA0HkdbbODlOyM9fVfNvkXtleo0MeJa9pPD8nU0U+ltPV RoUMvGD1pG83uKYQK6DjaAmsSU2m8MKVG4GQVv0KSa1Nl3bUaBxgNwt0dFWzJMu3AKA5 yrkg== 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=8hK5O/2ZsARKmnZz4VEMmRHLiu7nMyGL3+TuIN4XVgQ=; b=cA+PPsAIVaovW0p6FSO0Vk3vY8WSWdS7oH3m2PtjW6CyblOfycZ/ldVIyVk+fgLY7T eKYx5awmBh5gJ/GkJOI7OgXst7fIsB9ACeuv2H98Wqjdya6LIK0wOZA4TMmiq1867FY0 hnlRdUZ+YFJPRMqtcdbnp/KEYbOX1Kz1j6yVPaO9W94m3lvAGAk3bY9wLdRp/N1LwUfz 80a7SEvBOxDq9526YmTOey58IYuW2Mh4yH8btMIsiJb9OcOw8ic1OW8KFk/nnGa1PJIF D1C0xn68PWwOezTVAudl6jdpg1ko0Q/bFapoIEoY2XKuZiUYsbDhtODnTzwdIsTKGfoG 9rkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ryhl.io header.s=fm2 header.b=jkcd9H00; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=nRt5WBj6; 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 dy24-20020a05640231f800b004acb4f52ecesi30582065edb.156.2023.03.30.06.38.07; Thu, 30 Mar 2023 06:38: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=fm2 header.b=jkcd9H00; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=nRt5WBj6; 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 S232007AbjC3Nde (ORCPT + 99 others); Thu, 30 Mar 2023 09:33:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232003AbjC3Nda (ORCPT ); Thu, 30 Mar 2023 09:33:30 -0400 Received: from wout1-smtp.messagingengine.com (wout1-smtp.messagingengine.com [64.147.123.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71AB0A5FE; Thu, 30 Mar 2023 06:33:24 -0700 (PDT) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id A9B2D3200940; Thu, 30 Mar 2023 09:33:23 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Thu, 30 Mar 2023 09:33:24 -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= 1680183203; x=1680269603; bh=8hK5O/2ZsARKmnZz4VEMmRHLiu7nMyGL3+T uIN4XVgQ=; b=jkcd9H00JGWhv/pd59Iu685SIJlwV7PUYONt+BWzN5jVDU4qiGG Ih66IhJZL/hEwJj+RhygbubQ9M6fdjOw7mHFZ+QHyZCe2iA36rNyojWNW0QpFjK6 3CPoo3Ldo7vo94k+sCMtFkamYI0DApM030PMe93IceLsAukRMMuPdkCGBBoq+GxW WW9aPhkKbMEcM4oz+AdXGSIgkEBFxfw6md9XcdhKBewSTg3bGcq/02WppBWRVLaZ uh80aM4PnkwVh9eZ2Jn93BKry2qN2Eo3R89mu8yE+BjJypMbhBj0m6vguBz522Zj 2U35ek8OmchECtvLojlKiei/tC0vbnLnxXg== 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= 1680183203; x=1680269603; bh=8hK5O/2ZsARKmnZz4VEMmRHLiu7nMyGL3+T uIN4XVgQ=; b=nRt5WBj6zh2NVesK4wfJXrHeustij60o4CQM1Z8ap0WbhxoBR9p X6Qib0PAB/kghz9C6bLv7dBGddMr1FtFjVMT/QDUz/Y8Wq8EIecp5RxU9DItivBC HF7rZS0PXRwcI4bB0G1sFzu7TEUFIise0eZ+3kmut5Ct/MN0I4CojB1xkWSOk7K3 Uvvf+/UqoJIP8XbfY53WF9YF2eME73ZY4oUj3Mw7dPDVuQje6VZixuhbJ/OT+P/G ZTw2lj+/hvoe008mycs83U6XLMsH+BOHUYKeILgMjONkxkHxGi4H0IzDxTfFIwwy XBPXTJWzrJUK/Sq9q0D2kVO9Z6Jok1dMQ/Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvdehkedgieegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfhuffvvehfjggtgfesth ejredttdefjeenucfhrhhomheptehlihgtvgcutfihhhhluceorghlihgtvgesrhihhhhl rdhioheqnecuggftrfgrthhtvghrnhephfehueeileevjeefkeetvdffveffudeuhffgte dvuefgiefgiedvjeegvdejleejnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghm pehmrghilhhfrhhomheprghlihgtvgesrhihhhhlrdhioh X-ME-Proxy: Feedback-ID: i56684263:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 30 Mar 2023 09:33:22 -0400 (EDT) Message-ID: <8df770e5-5493-b43b-6245-a5701f50c64f@ryhl.io> Date: Thu, 30 Mar 2023 15:33:35 +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 v3 02/13] rust: sync: add `assume_init` to `UniqueArc` To: y86-dev@protonmail.com Cc: rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, patches@lists.linux.dev References: <20230329223239.138757-1-y86-dev@protonmail.com> <20230329223239.138757-3-y86-dev@protonmail.com> Content-Language: en-US In-Reply-To: <20230329223239.138757-3-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, RCVD_IN_MSPIKE_H2,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:32, y86-dev@protonmail.com wrote: > From: Benno Lossin > > Adds the `assume_init` function to `UniqueArc>` that > unsafely assumes the value to be initialized and yields a value of type > `UniqueArc`. This function is used when manually initializing the > pointee of an `UniqueArc`. > > Signed-off-by: Benno Lossin Reviewed-by: Alice Ryhl