rust/compiler/rustc_parse/src
Matthias Krüger 75c186bf43
Rollup merge of #142261 - folkertdev:unstable-attr-correct-edition, r=compiler-errors
use correct edition when warning for unsafe attributes

fixes https://github.com/rust-lang/rust/issues/142182

If an attribute is re-emitted by a macro, the incorrect edition was used to emit warnings for unsafe attributes.

This logic was introduced in https://github.com/rust-lang/rust/pull/139718

cc `@compiler-errors` `@ehuss`
2025-06-12 03:14:52 +02:00
..
lexer Report text_direction_codepoint_in_literal when parsing 2025-05-27 15:57:41 +00:00
parser Add expectation for { when parsing lone coroutine qualifiers 2025-06-11 17:11:58 +02:00
errors.rs move asm parsing code into rustc_parse 2025-05-27 09:44:10 +02:00
lib.rs Remove all unused feature gates from the compiler 2025-06-08 14:50:42 +00:00
validate_attr.rs use correct edition when warning for unsafe attributes 2025-06-09 21:55:22 +02:00