diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-06-20 15:44:13 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-07-17 08:02:46 +1000 |
| commit | 75b6ec980059292faa9cdf538b552faf6b70fb29 (patch) | |
| tree | 6c240deb73e49cdf8bf1558673b1e875d22845e1 /compiler/rustc_smir/src/rustc_internal/internal.rs | |
| parent | d9fde2504a1e77765e9505d2346a15867ad5a4b8 (diff) | |
| download | rust-75b6ec980059292faa9cdf538b552faf6b70fb29.tar.gz rust-75b6ec980059292faa9cdf538b552faf6b70fb29.zip | |
Avoid comments that describe multiple `use` items.
There are some comments describing multiple subsequent `use` items. When the big `use` reformatting happens some of these `use` items will be reordered, possibly moving them away from the comment. With this additional level of formatting it's not really feasible to have comments of this type. This commit removes them in various ways: - merging separate `use` items when appropriate; - inserting blank lines between the comment and the first `use` item; - outright deletion (for comments that are relatively low-value); - adding a separate "top-level" comment. We also entirely skip formatting for four library files that contain nothing but `pub use` re-exports, where reordering would be painful.
Diffstat (limited to 'compiler/rustc_smir/src/rustc_internal/internal.rs')
| -rw-r--r-- | compiler/rustc_smir/src/rustc_internal/internal.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_smir/src/rustc_internal/internal.rs b/compiler/rustc_smir/src/rustc_internal/internal.rs index 7c3553b60fd..854295dc048 100644 --- a/compiler/rustc_smir/src/rustc_internal/internal.rs +++ b/compiler/rustc_smir/src/rustc_internal/internal.rs @@ -4,6 +4,7 @@ //! due to incomplete stable coverage. // Prefer importing stable_mir over internal rustc constructs to make this file more readable. + use crate::rustc_smir::Tables; use rustc_middle::ty::{self as rustc_ty, Const as InternalConst, Ty as InternalTy, TyCtxt}; use rustc_span::Symbol; |
