Skip to content

Commit

Permalink
Allow newly added non_local_definitions in rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Urgau committed Feb 17, 2024
1 parent 1b73355 commit 7b6057d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/tools/rustfmt/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 7b6057d

Please sign in to comment.