From 263910118cb0f2d890a74c62a8e51dda47e13cbc Mon Sep 17 00:00:00 2001 From: Urgau Date: Sat, 27 Jan 2024 17:39:16 +0100 Subject: [PATCH] Allow newly added non_local_definitions in rustfmt --- src/source_file.rs | 1 + 1 file changed, 1 insertion(+) 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 @@ fn ensure_real_path(filename: &FileName) -> &Path { } } + #[cfg_attr(not(bootstrap), allow(non_local_definitions))] impl From<&FileName> for rustc_span::FileName { fn from(filename: &FileName) -> rustc_span::FileName { match filename {