Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1765844rwd; Thu, 18 May 2023 17:33:03 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4SVuaVC6H16fGP2bgEL9O6bTjpllMCuKZEFLMBUJzf13Ea9zEAiVjtMKezCAsKe9uLeQ8V X-Received: by 2002:a17:90b:1050:b0:252:f7b1:943f with SMTP id gq16-20020a17090b105000b00252f7b1943fmr307856pjb.24.1684456383483; Thu, 18 May 2023 17:33:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684456383; cv=none; d=google.com; s=arc-20160816; b=XA3vHPN+RXPHyedwyzfkZyJWAWrt9hZAWp/ea0dCw/s5uZzh5R7mTvKJMdQdpYspgA 3Z7CCaXec6HaJjwblh1wsSMXH8kJhEzl6estpEbwPYw30sO9m9O/fFzLvEQF7tZQwVoR eBs+V99braB9jn0wwpjoihzkHNtEdxDM0zXk5dJImCdgUlSU5F83JgAAGh0icpTa9IWI W9kKwmh5qjkTbhMS7eEK1hsWclasDkD0W0o2HW59KWy+HAxpukUyeoq8JFR5b2sjNb2t nHlZRGoSyv3tdagzYdVCQ8HhdxaiAOT/Wut0UgcwU439kkObrcg9JbSGFxyhl+Z3nFjd kCgA== 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:dkim-signature; bh=OSFENBt/zyLmxBAw3RVTXpbG4Rk4EEr4uJ7eZEA1Bvk=; b=h6dnX2xTCOiAXwheiIsHIw75WYWegAgZmMZWIfY5mEX464o9K1aGvWwMl+0oPperKB O+UBR0MWd7L1BHa5Il+DtPsrhp6VzmVjnZ2fBv0RxJI5dAJyG+DuDOVVK5LFyxtVRBMo ckcfbCev0Z9GfjkluIAbBsLoplG4AcQWRNxLtsUUPqALL0SCnN1dmT8hklXuxVI+3D35 Hm7OZPI7wD99UDDMYYFC1Ehe0YohgasOYKFXc9G6PVOMh2W7mvoWUyH7KMWpDmiTFuEZ w8O6MxM67SI/0rvkSKEqyaYsXq/Siy0LafKD5xr9ILJDyCXOCBBMkYHocc6l+pRr3GFI j4VA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=NsA92l2N; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h23-20020a17090acf1700b002527f171401si580612pju.182.2023.05.18.17.32.51; Thu, 18 May 2023 17:33:03 -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=@gmail.com header.s=20221208 header.b=NsA92l2N; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231301AbjESA3C (ORCPT + 99 others); Thu, 18 May 2023 20:29:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35606 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231268AbjESA27 (ORCPT ); Thu, 18 May 2023 20:28:59 -0400 Received: from mail-ot1-x333.google.com (mail-ot1-x333.google.com [IPv6:2607:f8b0:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6803310E3; Thu, 18 May 2023 17:28:51 -0700 (PDT) Received: by mail-ot1-x333.google.com with SMTP id 46e09a7af769-6ac8ede63ccso1991435a34.2; Thu, 18 May 2023 17:28:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684456130; x=1687048130; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:from:user-agent:mime-version:date:message-id:from:to :cc:subject:date:message-id:reply-to; bh=OSFENBt/zyLmxBAw3RVTXpbG4Rk4EEr4uJ7eZEA1Bvk=; b=NsA92l2NeEZt3bLIWlShHKqkIN6z/yTqVBwk4rcmWb/bIkdk0QTF9J2NjYr7Mf02Vx IcmZY24N1xJa099XLoMMlaEDrv4lWsTJ4gyqfumkU6TeCAm71JQDZQ25JgzOxwH+9dR2 a0XSJ55P7rqCroaDSbk78vkTRqXl4LCGV0rtyrnF+R6Pz1IfI2lhg7o36f6R9wowRo1d 1AwxYXagUtb0Mzz2hvUNEBycdWuNf/JmG1zNxPjdpoSwm55t4SvKJUsBVeKVwVexZ4d9 4P0bA0irm1dMcABjxdhokgThO4zdh6VJiLf7JXyJoZ2Zx5Z2u0SmiimrLx2/2Yu1SmOK ghLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684456130; x=1687048130; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:from:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=OSFENBt/zyLmxBAw3RVTXpbG4Rk4EEr4uJ7eZEA1Bvk=; b=ZB1BetkyZZdwDCteH5IPDggQffhFkfa/m5rAk5eXI/yrrgLeg2U6Fpxqxy0pqzb0+M RCbVtxrX2zfjLx0bD/D9OgvlohrpS0qrjjTJ9hgLHDigbLo0ZGdsNXma3kPMkJO6a1Eo gwz9jw3yEXQeoDc3h5E0A52NrfKYQlwydz1sr+ZaC8gF9j1XIz2IU9qMLx+yTgO6F36H 7VLRBi9UNpaSMGl/0BCo5t/ndwV1tdRjWvyQbv67CDKA1sC2ohs3vkNQX5Lq0rvFszl0 RB9M6wNSLC5K0BuJG3DlUJNWvFKWgozuP4JGWblfxUSt8M3wjEFFDmKpm5pvMxk1EjD5 OF5w== X-Gm-Message-State: AC+VfDy8buPiW7kBjQPNdaM7PWJT8SMQ67t180+qwi8tYC/bjTSGVvSV +NkSYT3rq5bHbmFzd4Lf4wY= X-Received: by 2002:a9d:7ad1:0:b0:6a4:2e3a:6e29 with SMTP id m17-20020a9d7ad1000000b006a42e3a6e29mr162554otn.24.1684456130654; Thu, 18 May 2023 17:28:50 -0700 (PDT) Received: from [192.168.54.90] (static.220.238.itcsa.net. [190.15.220.238]) by smtp.gmail.com with ESMTPSA id r4-20020a056830134400b006ab36a64f6bsm1173608otq.51.2023.05.18.17.28.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 18 May 2023 17:28:50 -0700 (PDT) Message-ID: Date: Thu, 18 May 2023 11:51:42 -0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 From: Martin Rodriguez Reboredo Subject: Re: [PATCH v1 3/7] rust: sync: add `Arc::{from_raw, into_raw}` To: Alice Ryhl , rust-for-linux@vger.kernel.org Cc: Miguel Ojeda , Wedson Almeida Filho , Tejun Heo , Lai Jiangshan , Alex Gaynor , Boqun Feng , Gary Guo , =?UTF-8?Q?Bj=c3=b6rn_Roy_Baron?= , Benno Lossin , linux-kernel@vger.kernel.org, patches@lists.linux.dev References: <20230517203119.3160435-1-aliceryhl@google.com> <20230517203119.3160435-4-aliceryhl@google.com> Content-Language: en-US In-Reply-To: <20230517203119.3160435-4-aliceryhl@google.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DATE_IN_PAST_06_12, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 5/17/23 17:31, Alice Ryhl wrote: > From: Wedson Almeida Filho > > These methods can be used to turn an `Arc` into a raw pointer and back, > in a way that preserves the metadata for fat pointers. > > This is done using the unstable ptr_metadata feature [1]. However, it > could also be done using the unstable pointer_byte_offsets feature [2], > which is likely to have a shorter path to stabilization than > ptr_metadata. > > Link: https://github.com/rust-lang/rust/issues/81513 [1] > Link: https://github.com/rust-lang/rust/issues/96283 [2] > Signed-off-by: Wedson Almeida Filho > Co-developed-by: Alice Ryhl > Signed-off-by: Alice Ryhl > --- > [...] Reviewed-by: Martin Rodriguez Reboredo