Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4883539rwl; Mon, 3 Apr 2023 10:58:00 -0700 (PDT) X-Google-Smtp-Source: AKy350ZMnnCv3H0uBjuTtEgpTjn4YdMFtOa2a4ROQSw+A0HRlEJAj/4PgzbYeipZY8lk2Y1Y65my X-Received: by 2002:a17:906:4796:b0:93f:3084:d6f with SMTP id cw22-20020a170906479600b0093f30840d6fmr36925738ejc.18.1680544680498; Mon, 03 Apr 2023 10:58:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680544680; cv=none; d=google.com; s=arc-20160816; b=YR0XtVUFB+ifJOe92EvuXKzEy8+3V0kFE/wVBC1eO5aPk/J8cs9aTXG/TiHlEQNYhe cWrDmjGxyOTnqbBZMc43J5WG3q7YAe25TTAdWm0GLa9oXf8TETfqQVYlGz2CmFo4A3gK Jx8+VUTy8CWVeRneeVLn3Gv3JUq0rB8V+ZZs9xBuCcxaDwUvHLoBAN/m5SaGMDnZtAny 6Qk5w4stjSvUnv8oPKo4emxIVC7hdDApw4ORx0L6vhiYwphHVgleEw/O3plGNKx3Jyuj XreHyEj8POMH8jfNK8FOIfHbM/zQMFBqtj6vS65o6xyQ1RJoC94fZeSOcqsLlo2X0dOi bsbA== 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=8RIO0uCEvz64g3NovXvBT0P64254DQg2kzJW/e/1H9A=; b=ylvQvOAvDFuCudDxeDGXMMxJwW62pgdDk5S31bOAvGEJNwa5st3IzAL46juXTm4yCC J/V6rAs98gDywiG7RidCVALiEM7ar/+kFZzBuNRwOxGYXMf2T0BTMsQRKiPaYFAqmFIF +TIfi+vyY016qsJYKdO+mzXPzBcekB8roYbTAWlGVpSXsoUf1Uujntonia0kKLOX92an 7TLziMvtaBDWdzVSgNEfEACw7smdlqnuL8XYQpisPwL0Wa5KAKrbq3mN6qns9WORHb4L ne3fIC2kHfIqkltVFPwHRviXke1FCsYNcJDljguKpiCYWEePoEsUHoRcAQi6sGk2cJfP DreA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ryhl.io header.s=fm2 header.b=jSKHpUw6; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=UYj9CGd0; 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 u11-20020a17090626cb00b009332bb8b1fcsi7880834ejc.842.2023.04.03.10.57.35; Mon, 03 Apr 2023 10:58:00 -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=jSKHpUw6; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=UYj9CGd0; 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 S232564AbjDCR5K (ORCPT + 99 others); Mon, 3 Apr 2023 13:57:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45604 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232705AbjDCR5D (ORCPT ); Mon, 3 Apr 2023 13:57:03 -0400 Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6CAC72134; Mon, 3 Apr 2023 10:56:58 -0700 (PDT) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 994395C0050; Mon, 3 Apr 2023 13:56:57 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Mon, 03 Apr 2023 13:56:57 -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= 1680544617; x=1680631017; bh=8RIO0uCEvz64g3NovXvBT0P64254DQg2kzJ W/e/1H9A=; b=jSKHpUw6brenmYW3Gb7aIeWXZkuijj4LRomLcC71oncTnIcL1FD N1Nwf8iX4RPNNxcZ7t1VWwCMLdVDUDIELi441qJIXwf9WkjbeVGtFmcigqC9YMGT cFdogfR8YYARUEwFgUW02SHwIzEXTPn8Y1Q+G/+yBXLURzp5ckdSE54CWrNQfOdW MNhJwJiqy95Th1xgPdgzC6hPUBhT/evth83okCu+DoMOPVOy+otJXkv60fyICJzx yQW7nTxMHPXqiEGz8+rAwEvVLVi1DGINJkr+tcyN1XcKzOhSm4zIOr6QU58NtlZE /weEv6+klXcXvQg+up/phQJyzzsTneW8+Ug== 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= 1680544617; x=1680631017; bh=8RIO0uCEvz64g3NovXvBT0P64254DQg2kzJ W/e/1H9A=; b=UYj9CGd0OnGazN/2vnUvxW+90loTPEZwp+b06GWOmSKdD+E7ZIl A4rea3i9vbpPYmW2q4dhdgerVe8af1ZXPMPHY9/BSSKr7/535EPFKTDGJdesvCkP Ho1SZlYsqr8l9T9k7rU3Q8cX1gIR0CydKja3xnteUBgpzMqKIoQ11/sC0OZPug1m o6IddIlSN/vMzvSVmidHbG7Th3/k9sWs4gvK3p18Pt9clheZk57LToXvHNhyE9ts upmPk2KaHx2aFJ+nUofZ9vZqNiKClA1Mk8pPGdOnRYgzvVNTrKZy6I7l07Gxhxw0 KqXsXhhbgFbQw7EzcXFqEYHu3O6xqFfCvDg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvdeijedguddvtdcutefuodetggdotefrod 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:56:54 -0400 (EDT) Message-ID: Date: Mon, 3 Apr 2023 19:56:15 +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 03/15] rust: sync: change error type of constructor functions 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> <20230403154422.168633-4-y86-dev@protonmail.com> Content-Language: en-US In-Reply-To: <20230403154422.168633-4-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 17:44, Benno Lossin wrote: > Change the error type of the constructors of `Arc` and `UniqueArc` to be > `AllocError` instead of `Error`. This makes the API more clear as to > what can go wrong when calling `try_new` or its variants. > > Signed-off-by: Benno Lossin > Reviewed-by: Andreas Hindborg > Cc: Gary Guo > Cc: Alice Ryhl Reviewed-by: Alice Ryhl