Skip to content

Commit 8c33745

Browse files
committed
Auto merge of rust-lang#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](rust-lang#120363).
2 parents ce71137 + 2639101 commit 8c33745

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/source_file.rs

+1
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)