Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp426139rdh; Sat, 23 Sep 2023 17:37:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGleWcfujIfD4ap1gL1Zm4Jb13rkbkLLpg0evCLv1Tzo/IqWUyj5CByQBo9hwOh7DIIrtX7 X-Received: by 2002:a9d:7f83:0:b0:6b9:ba85:a5fa with SMTP id t3-20020a9d7f83000000b006b9ba85a5famr4276545otp.5.1695515826506; Sat, 23 Sep 2023 17:37:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695515826; cv=none; d=google.com; s=arc-20160816; b=eWWhc7XOCg479k9kRLKf8bwdxMFYqVGFa+/UuPYR0sKUlDA5kpxrYzcx/LursgAksf h/pXJCFX9wZ5YsV9iYbZFectIxaoor76NOFq2clIdW2f0UWxGDnswpJO3qYah70RzNso RaYpUTb9sraOeTjP4s8aHZGDNbLnowC1FF/mYITVCCz0BFHsovAvvqyOT3M7LKiw4G7K H24swQdUvDZu/d6U8I4+s7h3YawLRHH8Fx+UK4R2/9cCaB6OxNkjmIrFYnFfKc8SzGLz uWUfmzgC3Tx4KiypRvEf0+WxftjHbgyifSxU346TUlq+CGCPuVM+Cuuu8rH0mghaPuUU tXZw== 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:dkim-signature; bh=LOtuPFxlpOJnlPD5je6/bnBdPybRwVi7VM0GipzcDdc=; fh=Ev716JPGK6gWw1fzoYZTON6umtd5jPtx06ow8+6BlOA=; b=i6iyyXTcTWVZbLM8BLVlSNh/H6UDVHZdSOzIzcOtG+I+aoVA4rrt0g7QnnIFsrFnHU HXcebdFzUkG946Qs7ybRuaCqAPnfNuvqAP/AZFPUH3/2ftws01Bt7Pl3x3/FMsrNQK2e ZuMRuaS0DLv+WuOsdMmSwuAA3GV9/KJm6MmB471AizET7qCNh7R+elbUFuQB/6T9O9Yy v4plc65BctaxWZbVn+cuE6LPSRVbcA+1ZrhWhnrba+Bu55EMAN9FXIzo2NOpdPhMWZ7S /oLYlPycsPuq3DYD/F+33fb5Ik3FHIGjlLz/XC9WoZO48P8x3EDBd2XmRE2wL2WH3pkZ baPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=DOQYnZ42; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id jx2-20020a17090b46c200b002773294d636si1547325pjb.103.2023.09.23.17.37.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Sep 2023 17:37:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=DOQYnZ42; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 13179801B73C; Sat, 23 Sep 2023 12:33:51 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229540AbjIWTdq (ORCPT + 99 others); Sat, 23 Sep 2023 15:33:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229643AbjIWTdp (ORCPT ); Sat, 23 Sep 2023 15:33:45 -0400 Received: from mail-pf1-x430.google.com (mail-pf1-x430.google.com [IPv6:2607:f8b0:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6ECE119A; Sat, 23 Sep 2023 12:33:38 -0700 (PDT) Received: by mail-pf1-x430.google.com with SMTP id d2e1a72fcca58-690d2e13074so3308616b3a.1; Sat, 23 Sep 2023 12:33:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695497618; x=1696102418; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=LOtuPFxlpOJnlPD5je6/bnBdPybRwVi7VM0GipzcDdc=; b=DOQYnZ42H59KrQGYue6thfs1UTe1VuW8UeqkdqHSNrUN4MFWsGwNZKK9j38HJ/75oK mYTV6XaYxSiFdQRZdDmVwqJukwYRaAgqw3OhwaJgtDKJVttbCExFh5CQXSTHW04McvC7 sFbmYoHy413fp5mH7TxwQ0MYllgSnmlNH3S6Siq/ZbtqoL6eklgNMe3GH6qs9Z0NBn+k d8ywd1eoou9IKbDLLH41ueTnofmoxZxD59tYiFd2O9eMGEEudDaLyJHawxWNF/eo1lCX GhF84tOWg8MPlDgye9FiGuZGBvyw/chwwuj7HZcITBJwrL9z5JPHRhPr40T4Fdh1sdEW fbsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695497618; x=1696102418; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=LOtuPFxlpOJnlPD5je6/bnBdPybRwVi7VM0GipzcDdc=; b=GCsa7YUcSP4yReugQmnzXR9GxHUCdk6V4mK9JT+ZGi4WA63c+OIx39HaIIfRYVuYxs 9NJ4e051QaCJWxqE1FzmfW5ykSMLIqAyVQ8brwwGethmKMO9YWFmTryAwKit5w+2hWdP f3e8cIg0lFiVfjFZR/84k+DIodL1oQQRJF/mMAKhTRxP+UzByVHEJnBrTdEQaVDvTz6c MdggJdY0wvV76PD/scCdXdDs0yqeclqKZFtbw9op19K7E31VPIkbwWM4SChrRnC1MIrN VKowhaZHC+0eruUU+57ii4/6rwPzCNZ5XmcCnqKy78E415oTt1WWaJrNkZrPc2IWYNE0 9EiQ== X-Gm-Message-State: AOJu0YxEepAI2luucp0uc7QU+fRFd4b7/1kr8rzwq3+UEcVWzMc1hRDt bE4Y00ImxT+IOUtOSAiRBws= X-Received: by 2002:a05:6a21:328e:b0:12e:98a3:77b7 with SMTP id yt14-20020a056a21328e00b0012e98a377b7mr2289038pzb.59.1695497617879; Sat, 23 Sep 2023 12:33:37 -0700 (PDT) Received: from [192.168.54.90] (static.220.238.itcsa.net. [190.15.220.238]) by smtp.gmail.com with ESMTPSA id n11-20020a170902d2cb00b001c06dcd453csm5685740plc.236.2023.09.23.12.33.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 23 Sep 2023 12:33:37 -0700 (PDT) Message-ID: <3eb24e38-710a-48cd-b9bb-3e258d914fc2@gmail.com> Date: Sat, 23 Sep 2023 16:32:03 -0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 2/2] rust: arc: remove `ArcBorrow` in favour of `WithRef` Content-Language: en-US To: Wedson Almeida Filho , rust-for-linux@vger.kernel.org Cc: Miguel Ojeda , Alex Gaynor , Boqun Feng , Gary Guo , =?UTF-8?Q?Bj=C3=B6rn_Roy_Baron?= , Benno Lossin , Andreas Hindborg , Alice Ryhl , linux-kernel@vger.kernel.org, Wedson Almeida Filho References: <20230923144938.219517-1-wedsonaf@gmail.com> <20230923144938.219517-3-wedsonaf@gmail.com> From: Martin Rodriguez Reboredo In-Reply-To: <20230923144938.219517-3-wedsonaf@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Sat, 23 Sep 2023 12:33:51 -0700 (PDT) On 9/23/23 11:49, Wedson Almeida Filho wrote: > From: Wedson Almeida Filho > > With GATs, we don't need a separate type to represent a borrowed object > with a refcount, we can just use Rust's regular shared borrowing. In > this case, we use `&WithRef` instead of `ArcBorrow<'_, T>`. > > Co-developed-by: Boqun Feng > Signed-off-by: Boqun Feng > Signed-off-by: Wedson Almeida Filho > --- > [...] Reviewed-by: Martin Rodriguez Reboredo