1
Fork 0
rust/compiler/rustc_hir_analysis/src
Matthias Krüger 55913368c5
Rollup merge of #120870 - Zalathar:allow-min-spec, r=oli-obk
Allow restricted trait impls under `#[allow_internal_unstable(min_specialization)]`

This is a follow-up to #119963 and a companion to #120866, though it can land independently from the latter.

---

We have several compiler crates that only enable `#[feature(min_specialization)]` because it is required by their expansions of `newtype_index!`, in order to implement traits marked with `#[rustc_specialization_trait]`.

This PR allows those traits to be implemented internally by macros with `#[allow_internal_unstable(min_specialization)]`, without needing specialization to be enabled in the enclosing crate.
2024-02-10 13:12:31 +01:00
..
astconv Rollup merge of #120590 - compiler-errors:dead, r=Nilstrieb 2024-02-08 20:34:57 +01:00
check Loosen an assertion to account for stashed errors. 2024-02-10 09:14:59 +11:00
coherence Allow restricted trait impls in macros with min_specialization 2024-02-10 18:14:02 +11:00
collect Auto merge of #120767 - matthiaskrgr:rollup-0k8ib1c, r=matthiaskrgr 2024-02-08 12:14:19 +00:00
impl_wf_check Rollup merge of #119869 - oli-obk:track_errors2, r=matthewjasper 2024-01-18 20:56:20 +01:00
outlives Stop using track_errors for some forever unstable rustc_attr analyses 2024-01-17 10:02:14 +00:00
structured_errors hir: Remove fn opt_hir_id and fn opt_span 2024-02-07 09:38:24 +03:00
variance Add CoroutineClosure to TyKind, AggregateKind, UpvarArgs 2024-02-06 02:22:58 +00:00
autoderef.rs Random type checker changes 2024-01-23 15:10:23 +00:00
bounds.rs ~const trait or projection bounds do not imply non-const bounds 2024-01-08 15:01:14 +00:00
check_unused.rs Rename TyCtxt::struct_span_lint_hir as TyCtxt::node_span_lint. 2024-01-23 08:09:01 +11:00
collect.rs More comments, final tweaks 2024-02-06 02:22:58 +00:00
constrained_generic_params.rs finish RegionKind rename 2023-11-14 13:13:27 +00:00
errors.rs Make the error message better 2024-02-05 21:08:47 +00:00
hir_wf_check.rs Remove Session methods that duplicate DiagCtxt methods. 2023-12-24 08:05:28 +11:00
impl_wf_check.rs Stop using String for error codes. 2024-01-29 07:41:41 +11:00
lib.rs Remove unnecessary min_specialization after bootstrap 2024-02-10 18:15:11 +11:00
structured_errors.rs Stop using String for error codes. 2024-01-29 07:41:41 +11:00