Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp840621rwd; Thu, 15 Jun 2023 02:50:40 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4Jl3h9uJeMFfezHTYabxQ4ypLO+4UzjYU9ORLiMKKo7Sc4oiEy/jifJJ33z4r1+9yNaZ5T X-Received: by 2002:a17:90a:d081:b0:25d:d224:9fb9 with SMTP id k1-20020a17090ad08100b0025dd2249fb9mr4854973pju.24.1686822640008; Thu, 15 Jun 2023 02:50:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686822639; cv=none; d=google.com; s=arc-20160816; b=BG7hn7dWHDbJNRxNdHkpMELM8Dbc8rLL/UCcX8odHP7/7yZzYt6K6DTQYQ3GDdQhY+ atFuxyg5u/yZyCuF/TI2RzGt9k5mB+ohRRAU71rJTP4Z9E0RHptq09d/bhHQF8vv7flw /wqhSUwHSQADcJoyrpXFS8rLoKHQ9NPVBCpsAdqGFENdKFBoySnS6jvf6qq9usnClWrF tXGTp+Hm8zCvo4+Q9Wngxo9WwWvXsWn7NaQZRhkGs1J5EHeB8jLUSH1+gmAs8d/3rtA9 creFrOfVCxrE0tgxLNoeTKqsu2L79/ARZSxV6LvECcX4ypA6mdPU4yOe70qY5TgfceYB F37w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=di66cKm4TSNTvyJIxIEt8peXod16WLfPyBmGUqyjx8A=; b=Duv1Ag1+EA2WRmrqN5yrKgP8iYC47fnXqor3xZdrAIzKQjwcB0RJOa2khjdVcJELW3 0rlmIyaqYhqHeBF1QJMrGvgv9SaVANnY5fESZJNu2Ixz1JQ+iDNfbTco6cO0o4kRG3CB phcJ+2G0hD84hbFL0sIV++f9kAQKfeclddr890i7Iv/lKcVrCePCBQ/JrXpY+CZAZfqA ulT93YaWbOmcRcwzAt6q2om5chIxJkzY6v2IKbktkm4Z52QPaYrbtta2EA4voFPloxgK bWTRtuHuOm1+oIQEATqHIDZGcE4ABTeYf2DPWjkcD2XZCSHEVSK6VQgyeLOvKbblBmJI Ob4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=e02FzfAA; 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 g13-20020a17090a67cd00b0025c21b941dcsi4447431pjm.123.2023.06.15.02.50.27; Thu, 15 Jun 2023 02:50:39 -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=e02FzfAA; 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 S244015AbjFOJbx (ORCPT + 99 others); Thu, 15 Jun 2023 05:31:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240097AbjFOJbv (ORCPT ); Thu, 15 Jun 2023 05:31:51 -0400 Received: from mail-yb1-xb2b.google.com (mail-yb1-xb2b.google.com [IPv6:2607:f8b0:4864:20::b2b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 716801FE4; Thu, 15 Jun 2023 02:31:50 -0700 (PDT) Received: by mail-yb1-xb2b.google.com with SMTP id 3f1490d57ef6-bc43a73ab22so935970276.0; Thu, 15 Jun 2023 02:31:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686821509; x=1689413509; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=di66cKm4TSNTvyJIxIEt8peXod16WLfPyBmGUqyjx8A=; b=e02FzfAAe7TAzqPFI1NcUDpyeWS8RO+q/51tmwLU9bP2Ro8bCXmKckt2kbm2ZjdxCy fm3Pq8acrGSYhTJgQHto02XStVs4+X5cV9PGaXc5+msESCBYpbGe15S9IQI/7XBPHVwD Et5+5hXyrvQPTLNccgcN3v0KHj6OJrr6m910qVknvd6M1PsQ+viNQr5lzG39v3MJhpV+ Jk5Is0s1GXsPATCc/FDmcNqhY6QK+J+ADjZ39RCzK4j9Fzi3I6gdP8DKLx6Hawkw6Voo 7D+tt1yiS0+fP1ivNHykUxMZEcYv9lcgG8NSDc/OBAluZG/NvPPUlVzz58O3TgCAw9pE +BZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686821509; x=1689413509; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=di66cKm4TSNTvyJIxIEt8peXod16WLfPyBmGUqyjx8A=; b=hLXr9lYrFf949tDJry5TGLoN3b7PKL2eXXUde6th7gJtO00G7E5bClJB1RBI3DkIND 3iGkWzBYuVrkKr2hpcrmwr0FGnfo7SEXb87KxJ7zePyjx4LfcL6PyGsk0phcCO3pWWwR H2DHF1Hdd8yLoweqxCzIOFNpqzmQxzEj8112OLgWwLpvVprjUqTQSRDI6aclztquGw9k OOC/4Y0JgEGU1UW36nH+Wcl+GsjrcOadCiHFaEjIj6Yt8kscyuvlmuFiv+h/xCo11XnZ vDUaWNCNwwujXwE1BEw5eSKBQjWpC5lXgwB2rwyb59EO7utiG3YQ3geOJTjztq6/ykCf Jokw== X-Gm-Message-State: AC+VfDwpXhdUORt4naWuPgnJRZiDjaIOVr6t6rRa9lEgC6yiEuY9ceBp AYGnlovje28JL3bPFhq7Hi1LIkwef57GKOZcOlGiZRzIYmQ= X-Received: by 2002:a25:7316:0:b0:bc4:f2e5:5343 with SMTP id o22-20020a257316000000b00bc4f2e55343mr4915969ybc.28.1686821509582; Thu, 15 Jun 2023 02:31:49 -0700 (PDT) MIME-Version: 1.0 References: <20230614180837.630180-1-ojeda@kernel.org> <20230614180837.630180-2-ojeda@kernel.org> <2b4b23ce-316e-b998-7faf-e529b121a8b4@gmail.com> In-Reply-To: <2b4b23ce-316e-b998-7faf-e529b121a8b4@gmail.com> From: Miguel Ojeda Date: Thu, 15 Jun 2023 11:31:38 +0200 Message-ID: Subject: Re: [PATCH 1/6] rust: init: make doctests compilable/testable To: Martin Rodriguez Reboredo Cc: Miguel Ojeda , David Gow , Brendan Higgins , Wedson Almeida Filho , Alex Gaynor , Boqun Feng , Gary Guo , =?UTF-8?Q?Bj=C3=B6rn_Roy_Baron?= , Benno Lossin , Alice Ryhl , Andreas Hindborg , Philip Li , kunit-dev@googlegroups.com, linux-kselftest@vger.kernel.org, rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, patches@lists.linux.dev Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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_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 Thu, Jun 15, 2023 at 5:52=E2=80=AFAM Martin Rodriguez Reboredo wrote: > > Little question, what's the purpose of `FromErrno` here? It was because `Error::from_errno` is `pub(crate)` in the `kernel` crate. I should have added a comment -- my bad! :) If we decided to make it `pub` eventually, then this `FromErrno` hack can be removed. Cheers, Miguel