Skip to content

Commit 665821c

Browse files
committed
Add blank lines after module-level //! comments.
Most modules have such a blank line, but some don't. Inserting the blank line makes it clearer that the `//!` comments are describing the entire module, rather than the `use` declaration(s) that immediately follows.
1 parent 09006d6 commit 665821c

File tree

58 files changed

+60
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+60
-2
lines changed

compiler/rustc_codegen_gcc/tests/lang_tests_common.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//! The common code for `tests/lang_tests_*.rs`
2+
23
use std::{
34
env::{self, current_dir},
45
path::{Path, PathBuf},

compiler/rustc_codegen_ssa/src/mir/locals.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
//! Locals are in a private module as updating `LocalRef::Operand` has to
22
//! be careful wrt to subtyping. To deal with this we only allow updates by using
33
//! `FunctionCx::overwrite_local` which handles it automatically.
4+
45
use crate::mir::{FunctionCx, LocalRef};
56
use crate::traits::BuilderMethods;
67
use rustc_index::IndexVec;

compiler/rustc_errors/src/markdown/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
//! A simple markdown parser that can write formatted text to the terminal
22
//!
33
//! Entrypoint is `MdStream::parse_str(...)`
4+
45
use std::io;
56

67
use termcolor::{Buffer, BufferWriter, ColorChoice};

compiler/rustc_expand/src/mbe/macro_check.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@
104104
//! Kleene operators under which a meta-variable is repeating is the concatenation of the stacks
105105
//! stored when entering a macro definition starting from the state in which the meta-variable is
106106
//! bound.
107+
107108
use crate::errors;
108109
use crate::mbe::{KleeneToken, TokenTree};
109110

compiler/rustc_hir_typeck/src/autoderef.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
//! Some helper functions for `AutoDeref`
1+
//! Some helper functions for `AutoDeref`.
2+
23
use super::method::MethodCallee;
34
use super::{FnCtxt, PlaceOp};
45

compiler/rustc_hir_typeck/src/errors.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//! Errors emitted by `rustc_hir_typeck`.
2+
23
use std::borrow::Cow;
34

45
use crate::fluent_generated as fluent;

compiler/rustc_hir_typeck/src/fn_ctxt/inspect_obligations.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//! A utility module to inspect currently ambiguous obligations in the current context.
2+
23
use crate::FnCtxt;
34
use rustc_infer::traits::{self, ObligationCause};
45
use rustc_middle::traits::solve::Goal;

compiler/rustc_infer/src/infer/error_reporting/nice_region_error/named_anon_conflict.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
//! Error Reporting for Anonymous Region Lifetime Errors
22
//! where one region is named and the other is anonymous.
3+
34
use crate::infer::error_reporting::nice_region_error::NiceRegionError;
45
use crate::{
56
errors::ExplicitLifetimeRequired,

compiler/rustc_infer/src/infer/freshen.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
//! solving a set of constraints. In contrast, the type inferencer assigns a value to each type
3131
//! variable only once, and it does so as soon as it can, so it is reasonable to ask what the type
3232
//! inferencer knows "so far".
33+
3334
use super::InferCtxt;
3435
use rustc_data_structures::fx::FxHashMap;
3536
use rustc_middle::bug;

compiler/rustc_infer/src/infer/outlives/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//! Various code related to computing outlives relations.
2+
23
use self::env::OutlivesEnvironment;
34
use super::region_constraints::RegionConstraintData;
45
use super::{InferCtxt, RegionResolutionError, SubregionOrigin};

compiler/rustc_middle/src/middle/privacy.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
//! A pass that checks to make sure private fields and methods aren't used
22
//! outside their scopes. This pass will also generate a set of exported items
33
//! which are available for use externally when compiled as a library.
4+
45
use crate::ty::{TyCtxt, Visibility};
56
use rustc_data_structures::fx::{FxIndexMap, IndexEntry};
67
use rustc_data_structures::stable_hasher::{HashStable, StableHasher};

compiler/rustc_middle/src/ty/abstract_const.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//! A subset of a mir body used for const evaluability checking.
2+
23
use crate::ty::{
34
self, Const, EarlyBinder, Ty, TyCtxt, TypeFoldable, TypeFolder, TypeSuperFoldable,
45
TypeVisitableExt,

compiler/rustc_mir_transform/src/ctfe_limit.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
//! A pass that inserts the `ConstEvalCounter` instruction into any blocks that have a back edge
22
//! (thus indicating there is a loop in the CFG), or whose terminator is a function call.
3+
34
use crate::MirPass;
45

56
use rustc_data_structures::graph::dominators::Dominators;

compiler/rustc_mir_transform/src/inline.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
//! Inlining pass for MIR functions
1+
//! Inlining pass for MIR functions.
2+
23
use crate::deref_separator::deref_finder;
34
use rustc_attr::InlineAttr;
45
use rustc_hir::def::DefKind;

compiler/rustc_mir_transform/src/lint.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
//! This pass statically detects code which has undefined behaviour or is likely to be erroneous.
22
//! It can be used to locate problems in MIR building or optimizations. It assumes that all code
33
//! can be executed, so it has false positives.
4+
45
use rustc_data_structures::fx::FxHashSet;
56
use rustc_index::bit_set::BitSet;
67
use rustc_middle::mir::visit::{PlaceContext, Visitor};

compiler/rustc_pattern_analysis/src/pat.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
//! As explained in [`crate::usefulness`], values and patterns are made from constructors applied to
22
//! fields. This file defines types that represent patterns in this way.
3+
34
use std::fmt;
45

56
use smallvec::{smallvec, SmallVec};

compiler/rustc_pattern_analysis/tests/complexity.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//! Test the pattern complexity limit.
2+
23
use common::*;
34
use rustc_pattern_analysis::{pat::DeconstructedPat, usefulness::PlaceValidity, MatchArm};
45

compiler/rustc_pattern_analysis/tests/exhaustiveness.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//! Test exhaustiveness checking.
2+
23
use common::*;
34
use rustc_pattern_analysis::{
45
pat::{DeconstructedPat, WitnessPat},

compiler/rustc_pattern_analysis/tests/intersection.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//! Test the computation of arm intersections.
2+
23
use common::*;
34
use rustc_pattern_analysis::{pat::DeconstructedPat, usefulness::PlaceValidity, MatchArm};
45

compiler/rustc_sanitizers/src/cfi/typeid/itanium_cxx_abi/encode.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
//!
55
//! For more information about LLVM CFI and cross-language LLVM CFI support for the Rust compiler,
66
//! see design document in the tracking issue #89653.
7+
78
use rustc_data_structures::base_n::ToBaseN;
89
use rustc_data_structures::base_n::ALPHANUMERIC_ONLY;
910
use rustc_data_structures::base_n::CASE_INSENSITIVE;

compiler/rustc_sanitizers/src/cfi/typeid/itanium_cxx_abi/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
//!
44
//! For more information about LLVM CFI and cross-language LLVM CFI support for the Rust compiler,
55
//! see design document in the tracking issue #89653.
6+
67
use rustc_data_structures::fx::FxHashMap;
78
use rustc_middle::bug;
89
use rustc_middle::ty::{self, Instance, Ty, TyCtxt, TypeFoldable};

compiler/rustc_sanitizers/src/cfi/typeid/itanium_cxx_abi/transform.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
//!
44
//! For more information about LLVM CFI and cross-language LLVM CFI support for the Rust compiler,
55
//! see design document in the tracking issue #89653.
6+
67
use rustc_hir as hir;
78
use rustc_hir::LangItem;
89
use rustc_middle::bug;

compiler/rustc_sanitizers/src/cfi/typeid/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
//!
44
//! For more information about LLVM CFI and cross-language LLVM CFI support for the Rust compiler,
55
//! see design document in the tracking issue #89653.
6+
67
use bitflags::bitflags;
78
use rustc_middle::ty::{Instance, Ty, TyCtxt};
89
use rustc_target::abi::call::FnAbi;

compiler/rustc_sanitizers/src/kcfi/typeid/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
//!
44
//! For more information about LLVM KCFI and cross-language LLVM KCFI support for the Rust compiler,
55
//! see the tracking issue #123479.
6+
67
use rustc_middle::ty::{Instance, InstanceKind, ReifyReason, Ty, TyCtxt};
78
use rustc_target::abi::call::FnAbi;
89
use std::hash::Hasher;

compiler/rustc_session/src/output.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//! Related to out filenames of compilation (e.g. binaries).
2+
23
use crate::config::{self, CrateType, Input, OutFileName, OutputFilenames, OutputType};
34
use crate::errors::{
45
self, CrateNameDoesNotMatch, CrateNameEmpty, CrateNameInvalid, FileIsNotWriteable,

compiler/rustc_smir/src/rustc_smir/builder.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
//! We first retrieve and monomorphize the rustc body representation, i.e., we generate a
44
//! monomorphic body using internal representation.
55
//! After that, we convert the internal representation into a stable one.
6+
67
use crate::rustc_smir::{Stable, Tables};
78
use rustc_hir::def::DefKind;
89
use rustc_middle::mir;

compiler/rustc_smir/src/rustc_smir/convert/error.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
//! Handle the conversion of different internal errors into a stable version.
22
//!
33
//! Currently we encode everything as [stable_mir::Error], which is represented as a string.
4+
45
use crate::rustc_smir::{Stable, Tables};
56
use rustc_middle::mir::interpret::AllocError;
67
use rustc_middle::ty::layout::LayoutError;

compiler/rustc_trait_selection/src/traits/normalize.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//! Deeply normalize types using the old trait solver.
2+
23
use super::error_reporting::OverflowCause;
34
use super::error_reporting::TypeErrCtxtExt;
45
use super::SelectionContext;

compiler/rustc_trait_selection/src/traits/select/confirmation.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
//!
77
//! [rustc dev guide]:
88
//! https://rustc-dev-guide.rust-lang.org/traits/resolution.html#confirmation
9+
910
use rustc_ast::Mutability;
1011
use rustc_data_structures::stack::ensure_sufficient_stack;
1112
use rustc_hir::lang_items::LangItem;

compiler/stable_mir/src/mir/alloc.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//! This module provides methods to retrieve allocation information, such as static variables.
2+
23
use crate::mir::mono::{Instance, StaticDef};
34
use crate::target::{Endian, MachineInfo};
45
use crate::ty::{Allocation, Binder, ExistentialTraitRef, IndexedVal, Ty};

library/alloc/src/vec/in_place_collect.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@
154154
//! }
155155
//! vec.truncate(write_idx);
156156
//! ```
157+
157158
use crate::alloc::{handle_alloc_error, Global};
158159
use core::alloc::Allocator;
159160
use core::alloc::Layout;

library/core/src/str/count.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
//! Note: Because the term "leading byte" can sometimes be ambiguous (for
1818
//! example, it could also refer to the first byte of a slice), we'll often use
1919
//! the term "non-continuation byte" to refer to these bytes in the code.
20+
2021
use core::intrinsics::unlikely;
2122

2223
const USIZE_SIZE: usize = core::mem::size_of::<usize>();

library/core/tests/iter/adapters/map_windows.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ use std::sync::atomic::{AtomicUsize, Ordering::SeqCst};
33
#[cfg(not(panic = "abort"))]
44
mod drop_checks {
55
//! These tests mainly make sure the elements are correctly dropped.
6+
67
use std::sync::atomic::{AtomicBool, AtomicUsize, Ordering::SeqCst};
78

89
#[derive(Debug)]

library/core/tests/num/ieee754.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
//! standard. That is why they accept wildly diverse inputs or may seem to duplicate other tests.
2828
//! Please consider this carefully when adding, removing, or reorganizing these tests. They are
2929
//! here so that it is clear what tests are required by the standard and what can be changed.
30+
3031
use ::core::str::FromStr;
3132

3233
// IEEE 754 for many tests is applied to specific bit patterns.

library/panic_unwind/src/miri.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//! Unwinding panics for Miri.
2+
23
use alloc::boxed::Box;
34
use core::any::Any;
45

library/portable-simd/crates/core_simd/src/ops/assign.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//! Assignment operators
2+
23
use super::*;
34
use core::ops::{AddAssign, MulAssign}; // commutative binary op-assignment
45
use core::ops::{BitAndAssign, BitOrAssign, BitXorAssign}; // commutative bit binary op-assignment

library/portable-simd/crates/core_simd/src/ops/deref.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
//! Ideally, Rust would take care of this itself,
33
//! and method calls usually handle the LHS implicitly.
44
//! But this is not the case with arithmetic ops.
5+
56
use super::*;
67

78
macro_rules! deref_lhs {

library/std/src/hash/random.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
//! outside this crate.
77
//!
88
//! [`collections`]: crate::collections
9+
910
#[allow(deprecated)]
1011
use super::{BuildHasher, Hasher, SipHasher13};
1112
use crate::cell::Cell;

library/std/src/sys/pal/itron/thread.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
//! Thread implementation backed by μITRON tasks. Assumes `acre_tsk` and
22
//! `exd_tsk` are available.
3+
34
use super::{
45
abi,
56
error::{expect_success, expect_success_aborting, ItronError},

library/std/src/sys/pal/solid/abi/fs.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//! `solid_fs.h`
2+
23
use crate::os::raw::{c_char, c_int, c_uchar};
34
pub use libc::{
45
ino_t, off_t, stat, time_t, O_APPEND, O_CREAT, O_EXCL, O_RDONLY, O_RDWR, O_TRUNC, O_WRONLY,

library/std/src/sys/pal/unix/process/process_unsupported/wait_status.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
//! Emulated wait status for non-Unix #[cfg(unix) platforms
22
//!
33
//! Separate module to facilitate testing against a real Unix implementation.
4+
45
use crate::ffi::c_int;
56
use crate::fmt;
67
use crate::num::NonZero;

library/std/src/sys/pal/unix/thread.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -475,6 +475,7 @@ mod cgroups {
475475
//! * cgroup v2 in non-standard mountpoints
476476
//! * paths containing control characters or spaces, since those would be escaped in procfs
477477
//! output and we don't unescape
478+
478479
use crate::borrow::Cow;
479480
use crate::ffi::OsString;
480481
use crate::fs::{try_exists, File};

library/std/src/sys/sync/condvar/itron.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//! POSIX conditional variable implementation based on user-space wait queues.
2+
23
use crate::sys::pal::itron::{
34
abi, error::expect_success_aborting, spin::SpinMutex, task, time::with_tmos_strong,
45
};

library/std/src/sys/sync/mutex/itron.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
//! Mutex implementation backed by μITRON mutexes. Assumes `acre_mtx` and
22
//! `TA_INHERIT` are available.
3+
34
use crate::sys::pal::itron::{
45
abi,
56
error::{expect_success, expect_success_aborting, fail, ItronError},

library/std/src/sys/sync/rwlock/solid.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//! A readers-writer lock implementation backed by the SOLID kernel extension.
2+
23
use crate::sys::pal::{
34
abi,
45
itron::{

library/std/tests/create_dir_all_bare.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
//! Note that this test changes the current directory so
44
//! should not be in the same process as other tests.
5+
56
use std::env;
67
use std::fs;
78
use std::path::{Path, PathBuf};

library/test/src/bench.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//! Benchmarking module.
2+
23
use super::{
34
event::CompletedTest,
45
options::BenchMode,

library/test/src/helpers/concurrency.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
//! Helper module which helps to determine amount of threads to be used
22
//! during tests execution.
3+
34
use std::{env, num::NonZero, thread};
45

56
pub fn get_concurrency() -> usize {

library/test/src/helpers/metrics.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//! Benchmark metrics.
2+
23
use std::collections::BTreeMap;
34

45
#[derive(Clone, PartialEq, Debug, Copy)]

src/librustdoc/passes/calculate_doc_coverage.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//! Calculates information used for the --show-coverage flag.
2+
23
use crate::clean;
34
use crate::core::DocContext;
45
use crate::html::markdown::{find_testable_code, ErrorCodes};

src/librustdoc/passes/collect_trait_impls.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
//! Collects trait impls for each item in the crate. For example, if a crate
22
//! defines a struct that implements a trait, this pass will note that the
33
//! struct implements that trait.
4+
45
use super::Pass;
56
use crate::clean::*;
67
use crate::core::DocContext;

src/librustdoc/passes/lint/check_code_block_syntax.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//! Validates syntax inside Rust code blocks (\`\`\`rust).
2+
23
use rustc_data_structures::sync::{Lock, Lrc};
34
use rustc_errors::{
45
emitter::Emitter,

src/librustdoc/passes/lint/html_tags.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//! Detects invalid HTML (like an unclosed `<span>`) in doc comments.
2+
23
use crate::clean::*;
34
use crate::core::DocContext;
45
use crate::html::markdown::main_body_opts;

src/librustdoc/passes/propagate_doc_cfg.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//! Propagates [`#[doc(cfg(...))]`](https://github.com/rust-lang/rust/issues/43781) to child items.
2+
23
use std::sync::Arc;
34

45
use crate::clean::cfg::Cfg;

src/librustdoc/passes/strip_priv_imports.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
//! Strips all private import statements (use, extern crate) from a
22
//! crate.
3+
34
use crate::clean;
45
use crate::core::DocContext;
56
use crate::fold::DocFolder;

src/librustdoc/passes/strip_private.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
//! Strip all private items from the output. Additionally implies strip_priv_imports.
22
//! Basically, the goal is to remove items that are not relevant for public documentation.
3+
34
use crate::clean::{self, ItemIdSet};
45
use crate::core::DocContext;
56
use crate::fold::DocFolder;

src/librustdoc/passes/stripper.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//! A collection of utility functions for the `strip_*` passes.
2+
23
use rustc_hir::def_id::DefId;
34
use rustc_middle::ty::{TyCtxt, Visibility};
45
use std::mem;

0 commit comments

Comments
 (0)