Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp5384095rwj; Wed, 21 Dec 2022 01:45:13 -0800 (PST) X-Google-Smtp-Source: AMrXdXtcxx9BfLYQhEocMYNzQkVCsgYZqG5E0OJeK29I6OBE6eEER1RE35xmoxtQqVYeBQ5SacfW X-Received: by 2002:a17:907:c786:b0:7ad:a797:5bb9 with SMTP id tz6-20020a170907c78600b007ada7975bb9mr1273308ejc.29.1671615913146; Wed, 21 Dec 2022 01:45:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671615913; cv=none; d=google.com; s=arc-20160816; b=WPdnuOMseEbr8bSOwGXHQ8Jq5JBnPFeN3j4VRF+9ZIxdzV2iaKhpk7AoTF7ecFLrpc 6R0/kQ8WSXOjW44OMgcXb8cm8cbvksWLxZFVfrzantKaf5deaoQpxmITP0D2Fz24YAW9 yXY83mnFuQJbGs69qurdhfR8CZDlLlgHVZ3QqOZZbyuXjBBfJhjWZ/SGkfZQxLo3BzCy KnHyTjCOKlriTiBCneqInuWkYr07fb7gPN0mLQMeMiKVom1ZSzgqnp2g+dK2ncpigyOa rn9FNIuke4juhxp+cVkvpiuVsY1SgU40k30CHfvmpv60BZiAQ/69xNJieuFYoD1rwHrB hYPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:references:to:from:subject:cc :message-id:date:content-transfer-encoding:mime-version :dkim-signature; bh=p2wTCoyTJaDCRjunrGuPfOkSYxMJiO9N+F5ytEjxjC0=; b=TVijv2XNo/nqn8QDqzrV3c0KIhb1uJ42n7C96myfrJJrSWLZNLCUHs0H1roVHfqMF+ Q82Q2U3d34V0/F/4LPBEJm7Sfi+BfKQdIaGFDHbe7OFeLs7hNgbHmlLe6Rhd/9t88Hkq tolDp2Jc3Y97k5PwMhqbMw0sfwz2gSRwT18Vf5VgucNila9rAnKbANNRPULWlMl2SJUq SQOIBUMoOI9aTX2fvBUChjPJfj/1xO2/983UelSILB9nfQWgJeo9xLDSa3UekkqtXWNy xwhH1itbJWA0n14cHqGwaCAi/6nUrTE9Z/GpT7Uab/YCxILj2AEdWRyOEwyS7UtjjIgK XKaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=AVymxci6; 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 qb17-20020a1709077e9100b0080a15fe49bcsi8963399ejc.569.2022.12.21.01.44.55; Wed, 21 Dec 2022 01:45:13 -0800 (PST) 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=20210112 header.b=AVymxci6; 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 S234505AbiLUJdy (ORCPT + 69 others); Wed, 21 Dec 2022 04:33:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46914 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231876AbiLUJde (ORCPT ); Wed, 21 Dec 2022 04:33:34 -0500 Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 543CC205F5; Wed, 21 Dec 2022 01:33:33 -0800 (PST) Received: by mail-ej1-x62d.google.com with SMTP id bj12so35314912ejb.13; Wed, 21 Dec 2022 01:33:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=p2wTCoyTJaDCRjunrGuPfOkSYxMJiO9N+F5ytEjxjC0=; b=AVymxci6DMlmWcqzSA/HySpUActoeJdazdUJs2ylU7trPnJOpLtZiN7qw/JAUggDIv RIFz0q+9QlvSukHOte/86rI2YZXSwL3pf11vXp0dc+ODoIGAqVfRlTzJvcOPVrnZnDF4 dRQ0VXABvqEF8Evwt+E+Ljz376UkdSI4yI/crxzrH/XpR3/Qf9W32kvBvVw8AYO6n6BN Q7TFLiQSYvARG/vGq8uMyymxMH0rW7hR/Mxl6vEBOOJCD/Vi7nzPFggoRn8gQxvTgkQi HJM/Z8api0d63MOvo3l1xgnrByKLFmHLYzLmLj6+g67FxVYt9tKpMx7x4jzbTZERvVGw FkKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=p2wTCoyTJaDCRjunrGuPfOkSYxMJiO9N+F5ytEjxjC0=; b=m40mSeJ2ABqPkKkDeVpy8mUeaxL9jLb3KVSTCwb2b3sKcuMsDcWwo6IDLwVNos/67y VQCmPzFGBXNdctrcpEyRmpB1exXiBp3cJYtmy1aLfk+F/vK8x6nIP4n0c6ocDZV36cio WhRSyH0pakytFIKDH0EIUgtzDolJivEn8Y4oIrrHQwS/MlGJAtF6ML+aCtgL7yP6OUyJ ITtzX27BbP2yzY1p794cyXp30k89FYxBxdQ45hcFmhclB/UVUwlCF5j0O+EPgzOPfRG5 ng8kgVHFni2BKEyyVkd7fc+qPeFEqpqYYj6V0Zprc1GxULxLm8f2WcZJSg+OCPPdkKR0 4Ayw== X-Gm-Message-State: AFqh2krNR/EPp1PM6zYiHV+7WjxwWZDWkLjJCpg5f69E4Nyu7kHjJ9t8 A1MMPGXs3QPjuX05HIXpRa8= X-Received: by 2002:a17:907:d109:b0:818:3f54:8df7 with SMTP id uy9-20020a170907d10900b008183f548df7mr983561ejc.2.1671615211783; Wed, 21 Dec 2022 01:33:31 -0800 (PST) Received: from localhost (host-80-180-197-38.pool80180.interbusiness.it. [80.180.197.38]) by smtp.gmail.com with ESMTPSA id b9-20020a1709063ca900b0081d2d9a0b45sm4124964ejh.186.2022.12.21.01.33.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 21 Dec 2022 01:33:31 -0800 (PST) Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Wed, 21 Dec 2022 10:33:29 +0100 Message-Id: Cc: , , Subject: Re: [PATCH] rust: prelude: prevent doc inline of external imports From: "Vincenzo" To: "Finn Behrens" , "Miguel Ojeda" , "Wedson Almeida Filho" , "Alex Gaynor" , "Boqun Feng" , "Gary Guo" , =?utf-8?q?Bj=C3=B6rn_Roy_Baron?= X-Mailer: aerc 0.8.2 References: <20221214093451.zdyhmdyxwz73n6pe@imap.mailbox.org> In-Reply-To: <20221214093451.zdyhmdyxwz73n6pe@imap.mailbox.org> 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 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 IMOHO this make sense. Reviewed-by: Vincenzo Palazzo =20 On Wed Dec 14, 2022 at 10:34 AM CET, Finn Behrens wrote: > This shows exactly where the items are from, previously the items from > macros, alloc and core where shown as a decleration from the kernel crate= , > this shows the correct path. > > Signed-off-by: Finn Behrens > --- > rust/kernel/prelude.rs | 8 +++++++- > 1 file changed, 7 insertions(+), 1 deletion(-) > > diff --git a/rust/kernel/prelude.rs b/rust/kernel/prelude.rs > index 7a90249ee9b9..917721e791b6 100644 > --- a/rust/kernel/prelude.rs > +++ b/rust/kernel/prelude.rs > @@ -11,15 +11,21 @@ > //! use kernel::prelude::*; > //! ``` > =20 > +#[doc(no_inline)] > pub use core::pin::Pin; > =20 > +#[doc(no_inline)] > pub use alloc::{boxed::Box, vec::Vec}; > =20 > +#[doc(no_inline)] > pub use macros::{module, vtable}; > =20 > pub use super::build_assert; > =20 > -pub use super::{dbg, pr_alert, pr_crit, pr_debug, pr_emerg, pr_err, pr_i= nfo, pr_notice, pr_warn}; > +// super::std_vendor is hidden, which makes the macro inline for some re= ason > +#[doc(no_inline)] > +pub use super::dbg; > +pub use super::{pr_alert, pr_crit, pr_debug, pr_emerg, pr_err, pr_info, = pr_notice, pr_warn}; > =20 > pub use super::static_assert; > =20 > --=20 > 2.31.1