1
Fork 0
rust/tests/ui/diagnostic_namespace
Chris Denton aad59a30de
Rollup merge of #139091 - mejrs:format, r=compiler-errors
Rewrite on_unimplemented format string parser.

This PR rewrites the format string parser for `rustc_on_unimplemented` and `diagnostic::on_unimplemented`. I plan on moving this code (and more) into the new attribute parsing system soon and wanted to PR it separately.

This PR introduces some minor differences though:
- `rustc_on_unimplemented` on trait *implementations* is no longer checked/used - this is actually never used (outside of some tests) so I plan on removing it in the future.
- for `rustc_on_unimplemented`, it introduces the `{This}` argument in favor of `{ThisTraitname}` (to be removed later). It'll be easier to parse.
- for `rustc_on_unimplemented`, `Self` can now consistently be used as a filter, rather than just `_Self`. It used to not match correctly on for example `Self = "[{integer}]"`
- Some error messages now have better spans.

Fixes https://github.com/rust-lang/rust/issues/130627
2025-04-19 15:09:33 +00:00
..
auxiliary Update tests to use new proc-macro header 2024-11-27 07:18:25 -08:00
do_not_recommend Deeply normalize obligations in BestObligation 2025-04-10 18:58:04 +00:00
on_unimplemented Write the format string parserand split it from conditions parser 2025-04-10 17:28:23 +02:00
can_use_the_diagnostic_name_in_other_places.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
deny_malformed_attribute.rs Add reference annotations for diagnostic attributes 2024-11-18 10:45:26 -08:00
deny_malformed_attribute.stderr Add reference annotations for diagnostic attributes 2024-11-18 10:45:26 -08:00
existing_proc_macros.rs Update tests to use new proc-macro header 2024-11-27 07:18:25 -08:00
malformed_foreign_on_unimplemented.rs Add reference annotations for diagnostic attributes 2024-11-18 10:45:26 -08:00
malformed_foreign_on_unimplemented.stderr Add reference annotations for diagnostic attributes 2024-11-18 10:45:26 -08:00
non_existing_attributes_accepted.rs Add reference annotations for diagnostic attributes 2024-11-18 10:45:26 -08:00
non_existing_attributes_accepted.stderr Add reference annotations for diagnostic attributes 2024-11-18 10:45:26 -08:00
on_impl_trait.rs Disable usage on trait impls and aliases 2025-04-14 00:12:37 +02:00
on_impl_trait.stderr Disable usage on trait impls and aliases 2025-04-14 00:12:37 +02:00
requires_path.rs Stabilize the #[diagnostic] namespace and #[diagnostic::on_unimplemented] attribute 2024-02-27 08:50:56 +01:00
requires_path.stderr Stabilize the #[diagnostic] namespace and #[diagnostic::on_unimplemented] attribute 2024-02-27 08:50:56 +01:00
suggest_typos.rs Add do_not_recommend typo help 2025-03-24 01:02:07 +01:00
suggest_typos.stderr Add do_not_recommend typo help 2025-03-24 01:02:07 +01:00