about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-02-25 19:11:06 +0000
committerbors <bors@rust-lang.org>2024-02-25 19:11:06 +0000
commit8c337451c16fcd27dfae39848091c0e41bf41c57 (patch)
treebae4167f65bf8d45e79f60bf6af0759e28eedc77
parentce71137b96e32ad7d198d3a073aff722917c4fd0 (diff)
parent263910118cb0f2d890a74c62a8e51dda47e13cbc (diff)
downloadrust-8c337451c16fcd27dfae39848091c0e41bf41c57.tar.gz
rust-8c337451c16fcd27dfae39848091c0e41bf41c57.zip
Auto merge of #120393 - Urgau:rfc3373-non-local-defs, r=WaffleLapkin
Implement RFC 3373: Avoid non-local definitions in functions

This PR implements [RFC 3373: Avoid non-local definitions in functions](https://github.com/rust-lang/rust/issues/120363).
-rw-r--r--src/source_file.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/source_file.rs b/src/source_file.rs
index 958f9b0154f..512a8593c27 100644
--- a/src/source_file.rs
+++ b/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 {