diff options
| author | bors <bors@rust-lang.org> | 2024-02-25 19:11:06 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-02-25 19:11:06 +0000 |
| commit | 8c337451c16fcd27dfae39848091c0e41bf41c57 (patch) | |
| tree | bae4167f65bf8d45e79f60bf6af0759e28eedc77 | |
| parent | ce71137b96e32ad7d198d3a073aff722917c4fd0 (diff) | |
| parent | 263910118cb0f2d890a74c62a8e51dda47e13cbc (diff) | |
| download | rust-8c337451c16fcd27dfae39848091c0e41bf41c57.tar.gz rust-8c337451c16fcd27dfae39848091c0e41bf41c57.zip | |
Auto merge of #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](https://github.com/rust-lang/rust/issues/120363).
| -rw-r--r-- | src/source_file.rs | 1 |
1 files changed, 1 insertions, 0 deletions
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 @@ 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 { |
