Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 2e63026

Browse files
committedJul 29, 2024
Auto merge of #125443 - nnethercote:rustfmt-use-decls, r=lcnr,cuviper,GuillaumeGomez
rustfmt `use` declarations This PR implements rust-lang/compiler-team#750, which changes how `use` declarations are formatted by adding these options to `rustfmt.toml`: ``` group_imports = "StdExternalCrate" imports_granularity = "Module" ``` r? `@ghost`
2 parents 2cbbe8b + 84ac80f commit 2e63026

File tree

1,867 files changed

+8167
-8995
lines changed

Some content is hidden

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

1,867 files changed

+8167
-8995
lines changed
 

‎compiler/rustc_ast/src/util/comments.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
use crate::token::CommentKind;
21
use rustc_span::{BytePos, Symbol};
32

3+
use crate::token::CommentKind;
4+
45
#[cfg(test)]
56
mod tests;
67

‎compiler/rustc_ast/src/util/comments/tests.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
use super::*;
21
use rustc_span::create_default_session_globals_then;
32

3+
use super::*;
4+
45
#[test]
56
fn test_block_doc_comment_1() {
67
create_default_session_globals_then(|| {
There was a problem loading the remainder of the diff.

0 commit comments

Comments
 (0)
Failed to load comments.