Skip to content

Commit 7b6057d

Browse files
committed
Allow newly added non_local_definitions in rustfmt
1 parent 1b73355 commit 7b6057d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/tools/rustfmt/src/source_file.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ where
6666
}
6767
}
6868

69+
#[cfg_attr(not(bootstrap), allow(non_local_definitions))]
6970
impl From<&FileName> for rustc_span::FileName {
7071
fn from(filename: &FileName) -> rustc_span::FileName {
7172
match filename {

0 commit comments

Comments
 (0)