rust/tests/ui/specialization
Zalathar 7b73e4fd44 Allow restricted trait impls in macros with min_specialization
Implementing traits marked with `#[rustc_specialization_trait]` normally
requires (min-)specialization to be enabled for the enclosing crate.

With this change, that permission can also be granted by an
`allow_internal_unstable` attribute on the macro that generates the impl.
2024-02-10 18:14:02 +11:00
..
auxiliary
ctfe Always use RevealAll for const eval queries 2024-01-19 11:32:34 +00:00
defaultimpl Update tests 2024-02-07 10:42:01 +08:00
min_specialization Allow restricted trait impls in macros with min_specialization 2024-02-10 18:14:02 +11:00
soundness
assoc-ty-graph-cycle.rs Update tests 2024-02-07 10:42:01 +08:00
assoc-ty-graph-cycle.stderr
const_trait_impl.rs fix library and rustdoc tests 2023-04-16 11:38:52 +00:00
const_trait_impl.stderr Continue to borrowck even if there were previous errors 2024-02-08 08:10:43 +00:00
cross-crate-defaults.rs
cross-crate-defaults.stderr
default-associated-type-bound-1.rs
default-associated-type-bound-1.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
default-associated-type-bound-2.rs
default-associated-type-bound-2.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
default-generic-associated-type-bound.rs
default-generic-associated-type-bound.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-33017.rs
issue-33017.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-35376.rs
issue-35376.stderr
issue-36804.rs
issue-36804.stderr
issue-38091-2.rs
issue-38091-2.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-38091.rs
issue-38091.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-39448.rs
issue-39448.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-39618.rs
issue-39618.stderr
issue-40582.rs add known-bug test for unsound issue 40582 2023-04-26 22:34:29 -04:00
issue-43037.current.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-43037.negative.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-43037.rs
issue-44861.rs
issue-44861.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-45814.current.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-45814.negative.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-45814.rs
issue-50452-fail.rs
issue-50452-fail.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-50452.rs
issue-50452.stderr
issue-51892.rs
issue-51892.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-52050.rs
issue-52050.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-59435.rs
issue-59435.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-63716-parse-async.rs
issue-63716-parse-async.stderr
issue-68830-spurious-diagnostics.rs
issue-68830-spurious-diagnostics.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-70442.rs
issue-70442.stderr
issue-111232.rs remove unnecessary attribute from a diagnostic 2023-05-05 17:28:52 +09:00
issue-111232.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
non-defaulted-item-fail.rs
non-defaulted-item-fail.stderr Fetch less HIR in signature check. 2023-02-14 20:26:03 +00:00
README-rpass.md
README.md
specialization-allowed-cross-crate.rs
specialization-allowed-cross-crate.stderr
specialization-assoc-fns.rs
specialization-assoc-fns.stderr
specialization-basics.rs
specialization-basics.stderr
specialization-cross-crate-no-gate.rs
specialization-cross-crate.rs Adjust compiler tests for unused_tuple_struct_fields -> dead_code 2024-01-02 15:34:37 -05:00
specialization-cross-crate.stderr
specialization-default-items-drop-coherence.coherence.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
specialization-default-items-drop-coherence.next.stderr Stop bailing out from compilation just because there were incoherent traits 2024-02-05 10:17:31 +00:00
specialization-default-items-drop-coherence.rs Stop bailing out from compilation just because there were incoherent traits 2024-02-05 10:17:31 +00:00
specialization-default-methods.rs
specialization-default-methods.stderr
specialization-default-projection.rs
specialization-default-projection.stderr
specialization-default-types.rs
specialization-default-types.stderr Tweak expected message to explain what it's actually signifying 2023-09-23 00:57:17 +00:00
specialization-feature-gate-default.rs
specialization-feature-gate-default.stderr Bless tests 2024-01-13 12:46:58 -05:00
specialization-feature-gate-overlap.rs
specialization-feature-gate-overlap.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
specialization-no-default.rs
specialization-no-default.stderr Fetch less HIR in signature check. 2023-02-14 20:26:03 +00:00
specialization-on-projection.rs
specialization-on-projection.stderr
specialization-out-of-order.rs Update tests 2024-02-07 10:42:01 +08:00
specialization-out-of-order.stderr
specialization-overlap-hygiene.rs
specialization-overlap-hygiene.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
specialization-overlap-negative.rs
specialization-overlap-negative.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
specialization-overlap-projection.rs Update tests 2024-02-07 10:42:01 +08:00
specialization-overlap-projection.stderr
specialization-overlap.rs
specialization-overlap.stderr
specialization-polarity.rs
specialization-polarity.stderr
specialization-projection-alias.rs
specialization-projection-alias.stderr
specialization-projection.rs
specialization-projection.stderr
specialization-supertraits.rs Update tests 2024-02-07 10:42:01 +08:00
specialization-supertraits.stderr
specialization-translate-projections-with-lifetimes.rs Adjust compiler tests for unused_tuple_struct_fields -> dead_code 2024-01-02 15:34:37 -05:00
specialization-translate-projections-with-lifetimes.stderr
specialization-translate-projections-with-params.rs
specialization-translate-projections-with-params.stderr
specialization-translate-projections.rs remove redundant imports 2023-12-10 10:56:22 +08:00
specialization-translate-projections.stderr
transmute-specialization.rs
transmute-specialization.stderr

This directory contains the test for incorrect usage of specialization that should lead to compile failure. Those tests break down into a few categories: