rust/tests/ui/attributes/z-crate-attr
jyn d50a8d5fb3 Improve -Z crate-attr diagnostics
- Show the `#![ ... ]` in the span (to make it clear that it should not
  be included in the CLI argument)
- Show more detailed errors when the crate has valid token trees but
  invalid syntax.
  Previously, `crate-attr=feature(foo),feature(bar)` would just say
  "invalid crate attribute" and point at the comma. Now, it explicitly
  says that the comma was unexpected, which is useful when using
  `--error-format=short`. It also fixes the column to show the correct
  span.
- Recover from parse errors. Previously we would abort immediately on
  syntax errors; now we go on to try and type-check the rest of the
  crate.

The new diagnostic code also happens to be slightly shorter.
2025-04-13 16:46:02 -04:00
..
basic.rs
cfg-false.rs
comments.rs
crate-name.rs
crate-type.rs
garbage.rs
garbage.stderr Improve -Z crate-attr diagnostics 2025-04-13 16:46:02 -04:00
injection.rs Improve -Z crate-attr diagnostics 2025-04-13 16:46:02 -04:00
injection.stderr Improve -Z crate-attr diagnostics 2025-04-13 16:46:02 -04:00
injection2.rs Improve -Z crate-attr diagnostics 2025-04-13 16:46:02 -04:00
injection2.stderr Improve -Z crate-attr diagnostics 2025-04-13 16:46:02 -04:00
inner-attr.rs
inner-attr.stderr Improve -Z crate-attr diagnostics 2025-04-13 16:46:02 -04:00
multiple.rs Improve -Z crate-attr diagnostics 2025-04-13 16:46:02 -04:00
multiple.stderr Improve -Z crate-attr diagnostics 2025-04-13 16:46:02 -04:00
respect-existing-attrs.rs
shebang.rs
unbalanced-paren.rs Improve -Z crate-attr diagnostics 2025-04-13 16:46:02 -04:00
unbalanced-paren.stderr Improve -Z crate-attr diagnostics 2025-04-13 16:46:02 -04:00