diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-06-20 05:04:30 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-06-20 09:23:20 +1000 |
| commit | 665821cb606076bcf159c47e3e8e72a14fa512e3 (patch) | |
| tree | db964362cf069b4524672435bc689844377ff0c8 /compiler/rustc_mir_transform/src/lint.rs | |
| parent | 09006d6a88019b80f7158f1a5f754a358751d7f1 (diff) | |
| download | rust-665821cb606076bcf159c47e3e8e72a14fa512e3.tar.gz rust-665821cb606076bcf159c47e3e8e72a14fa512e3.zip | |
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.
Diffstat (limited to 'compiler/rustc_mir_transform/src/lint.rs')
| -rw-r--r-- | compiler/rustc_mir_transform/src/lint.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_mir_transform/src/lint.rs b/compiler/rustc_mir_transform/src/lint.rs index 5b269185e87..3d1e1e48175 100644 --- a/compiler/rustc_mir_transform/src/lint.rs +++ b/compiler/rustc_mir_transform/src/lint.rs @@ -1,6 +1,7 @@ //! This pass statically detects code which has undefined behaviour or is likely to be erroneous. //! It can be used to locate problems in MIR building or optimizations. It assumes that all code //! can be executed, so it has false positives. + use rustc_data_structures::fx::FxHashSet; use rustc_index::bit_set::BitSet; use rustc_middle::mir::visit::{PlaceContext, Visitor}; |
