Skip to content

Commit

Permalink
Auto merge of rust-lang#120393 - Urgau:rfc3373-non-local-defs, r=Waff…
Browse files Browse the repository at this point in the history
…leLapkin

Implement RFC 3373: Avoid non-local definitions in functions

This PR implements [RFC 3373: Avoid non-local definitions in functions](rust-lang#120363).
  • Loading branch information
bors committed Feb 25, 2024
2 parents ce71137 + 2639101 commit 8c33745
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/source_file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 8c33745

Please sign in to comment.