Allow newly added non_local_definitions in rustfmt
This commit is contained in:
parent
6674be9657
commit
263910118c
@ -66,6 +66,7 @@ fn ensure_real_path(filename: &FileName) -> &Path {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg_attr(not(bootstrap), allow(non_local_definitions))]
|
||||||
impl From<&FileName> for rustc_span::FileName {
|
impl From<&FileName> for rustc_span::FileName {
|
||||||
fn from(filename: &FileName) -> rustc_span::FileName {
|
fn from(filename: &FileName) -> rustc_span::FileName {
|
||||||
match filename {
|
match filename {
|
||||||
|
Loading…
Reference in New Issue
Block a user