rust/tests/ui/rfcs
León Orell Valerian Liehr 5eb76fac7c
Rollup merge of #117205 - weiznich:multiple_notes_for_on_unimplemented, r=compiler-errors
Allows `#[diagnostic::on_unimplemented]` attributes to have multiple

notes

This commit extends the `#[diagnostic::on_unimplemented]` (and `#[rustc_on_unimplemented]`) attributes to allow multiple `note` options. This enables emitting multiple notes for custom error messages. For now I've opted to not change any of the existing usages of `#[rustc_on_unimplemented]` and just updated the relevant compile tests.

r? `@compiler-errors`

I'm happy to adjust any of the existing changed location to emit the old error message if that's desired.
2023-10-30 10:48:18 +01:00
..
rfc-0107-bind-by-move-pattern-guards
rfc-1014-stdout-existential-crisis
rfc-1445-restrict-constants-in-patterns
rfc-1623-static
rfc-1717-dllimport
rfc-1789-as-cell
rfc-1857-stabilize-drop-order
rfc-1937-termination-trait Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
rfc-2005-default-binding-mode
rfc-2008-non-exhaustive Fix #117033 2023-10-21 23:04:17 +02:00
rfc-2027-object-safe-for-dispatch
rfc-2091-track-caller s/generator/coroutine/ 2023-10-20 21:14:01 +00:00
rfc-2093-infer-outlives remove trailing dots 2023-10-08 10:06:17 +00:00
rfc-2126-crate-paths
rfc-2126-extern-absolute-paths
rfc-2151-raw-identifiers
rfc-2175-or-if-while-let
rfc-2294-if-let-guard Use PlaceMention for match scrutinees. 2023-10-24 15:30:17 +00:00
rfc-2302-self-struct-ctor
rfc-2306-convert-id
rfc-2361-dbg-macro Use PlaceMention for match scrutinees. 2023-10-24 15:30:17 +00:00
rfc-2396-target_feature-11 Allows #[diagnostic::on_unimplemented] attributes to have multiple 2023-10-27 12:42:42 +02:00
rfc-2397-do-not-recommend
rfc-2421-unreserve-pure-offsetof-sizeof-alignof
rfc-2457-non-ascii-idents Mention the syntax for use on mod foo; if foo doesn't exist 2023-10-21 15:56:01 +00:00
rfc-2497-if-let-chains
rfc-2528-type-changing-struct-update
rfc-2565-param-attrs
rfc-2627-raw-dylib
rfc-2632-const-trait-impl Deny providing explicit effect params 2023-10-26 08:24:25 +00:00
rfc-3348-c-string-literals