about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUrgau <urgau@numericable.fr>2024-01-27 17:39:16 +0100
committerUrgau <urgau@numericable.fr>2024-02-17 13:59:46 +0100
commit7b6057dea42c0aaec0735b155a2bc1aeaa0c0a93 (patch)
tree22fed59dfd720cbea90709d2823b1b5c14641cee
parent1b733558bf7ac425a2b56726e7229cc298982536 (diff)
downloadrust-7b6057dea42c0aaec0735b155a2bc1aeaa0c0a93.tar.gz
rust-7b6057dea42c0aaec0735b155a2bc1aeaa0c0a93.zip
Allow newly added non_local_definitions in rustfmt
-rw-r--r--src/tools/rustfmt/src/source_file.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tools/rustfmt/src/source_file.rs b/src/tools/rustfmt/src/source_file.rs
index 958f9b0154f..512a8593c27 100644
--- a/src/tools/rustfmt/src/source_file.rs
+++ b/src/tools/rustfmt/src/source_file.rs
@@ -66,6 +66,7 @@ where
         }
     }
 
+    #[cfg_attr(not(bootstrap), allow(non_local_definitions))]
     impl From<&FileName> for rustc_span::FileName {
         fn from(filename: &FileName) -> rustc_span::FileName {
             match filename {