From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E5707CE7A86 for ; Fri, 22 Sep 2023 22:55:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230223AbjIVWz7 (ORCPT ); Fri, 22 Sep 2023 18:55:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47368 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230142AbjIVWz4 (ORCPT ); Fri, 22 Sep 2023 18:55:56 -0400 Received: from mail-pf1-x433.google.com (mail-pf1-x433.google.com [IPv6:2607:f8b0:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7203E8; Fri, 22 Sep 2023 15:55:50 -0700 (PDT) Received: by mail-pf1-x433.google.com with SMTP id d2e1a72fcca58-68fdcc37827so3197009b3a.0; Fri, 22 Sep 2023 15:55:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695423350; x=1696028150; 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=idHM+ax9na/6V3/udEI+eC6dcKX8oMAtby8bCjW6dp0=; b=aVW+otOS5yuZRYXOJAAVd62XrsihPjd+GcUGG3an6fHVCUSMxBbApZP9WVIMIrfOgw XxJKalinnfbEb2z2FPVEhBtqYuyl3VTa5TlUDiJC8Ht6bqvOXWuH6QLkhNLKl10T3NAg k0WNWKp1I8oH65QNukr6zsOFgcShW1vbMssdGma4fp8OhF3yl1pPkFi/dlt6rp9QUVD2 8hdK00llHWApoopFXRLqMLeX/NuPf67uxQTsG3Rh2MjdpDtp5KgXkjvtylHocE0NV4T4 7srlHSx1YMMO4pu7qaRWLhYihxQZS+Cun9ByX92JX5pBHRG7SCYgs3JihkztI7IKOkQa 634w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695423350; x=1696028150; 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=idHM+ax9na/6V3/udEI+eC6dcKX8oMAtby8bCjW6dp0=; b=ltOcMELC4Z/I6ngyE7Ae1n5PHCjCn4XwTeT2VFKydA5EPEGffb+Wj4I1dukcxEBOk8 0P66BRYdSIca2c4q+6++3KzpconcucYGtmTDzH8Lu92H7GnpYoRGARY9AD2s7K290zmG AfvHyG0lxB9Va6GiqRPUHIVTSd7HUP8JGOeVXVWloP7tM9XbC6OkbygWAQEup0y9fZDu KaHFxwFvuOa2URy7MXYFbPeqAEJqT9nrQ63lDgRyL4iuGs6aftmpcL+9L3qBg42Y/yZC JSNWBzuKanmZ38xjg5BLJHi5eUJGcR3kMd7vqOGaw03AknS4xjiJCKdBy0dSjxjfwHV2 OYkg== X-Gm-Message-State: AOJu0Yz/uhFSzvfHGlkLWgWRnr9kBCjIGVA0oWgbk1CZhxnL2WbfxUYg KhcciMWZyL6ZjQC7wayNXEs= X-Google-Smtp-Source: AGHT+IEGi3mIoiz5nTPSGH06O6IIFR5zqa6EJ1KkXzC+4hY5UmXLJjdzGWXM7M/ptL3bktN7sWvJew== X-Received: by 2002:a05:6a20:7d96:b0:137:c971:6a0c with SMTP id v22-20020a056a207d9600b00137c9716a0cmr1136315pzj.31.1695423350176; Fri, 22 Sep 2023 15:55: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 j17-20020aa78dd1000000b0068c1ac1784csm3728921pfr.59.2023.09.22.15.55.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 22 Sep 2023 15:55:49 -0700 (PDT) Message-ID: Date: Fri, 22 Sep 2023 19:55:46 -0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/2] rust: arc: remove `ArcBorrow` in favour of `WithRef` Content-Language: en-US To: Alice Ryhl , Wedson Almeida Filho Cc: rust-for-linux@vger.kernel.org, Miguel Ojeda , Alex Gaynor , Boqun Feng , Gary Guo , =?UTF-8?Q?Bj=C3=B6rn_Roy_Baron?= , Benno Lossin , Andreas Hindborg , linux-kernel@vger.kernel.org, Wedson Almeida Filho References: <20230921213440.202017-1-wedsonaf@gmail.com> <20230921213440.202017-3-wedsonaf@gmail.com> From: Martin Rodriguez Reboredo In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/22/23 12:29, Alice Ryhl wrote: > On Thu, Sep 21, 2023 at 11:35 PM 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 > > I wonder whether "WithArc" is a better name? After all, arc is short > for "atomic refcount". > I also think it's nice to include Arc in the name of the type. > > Reviewed-by: Alice Ryhl > It can be read as `arc::WithRef`, which makes sense.