rust/compiler/rustc_hir_analysis/src
Matthias Krüger 5551f54aa1
Rollup merge of #128174 - compiler-errors:trait-alias-marker, r=oli-obk
Don't record trait aliases as marker traits

Don't record `#[marker]` on trait aliases, since we use that to check for the (non-presence of) associated types and other things which don't make sense of trait aliases. We already enforce this attr is only applied to a trait.

Also do the same for `#[const_trait]`, which we also enforce is only applied to a trait. This is a drive-by change, but also worthwhile just in case.

Fixes #127222
2024-07-29 17:46:42 +02:00
..
check Reformat use declarations. 2024-07-29 08:26:52 +10:00
coherence Reformat use declarations. 2024-07-29 08:26:52 +10:00
collect Reformat use declarations. 2024-07-29 08:26:52 +10:00
errors Reformat use declarations. 2024-07-29 08:26:52 +10:00
hir_ty_lowering Reformat use declarations. 2024-07-29 08:26:52 +10:00
impl_wf_check Reformat use declarations. 2024-07-29 08:26:52 +10:00
outlives Reformat use declarations. 2024-07-29 08:26:52 +10:00
variance Reformat use declarations. 2024-07-29 08:26:52 +10:00
autoderef.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
bounds.rs Add constness to TraitDef 2024-07-03 15:37:34 +00:00
check_unused.rs Remove LintDiagnostic::msg 2024-05-23 04:08:35 +02:00
collect.rs Rollup merge of #128174 - compiler-errors:trait-alias-marker, r=oli-obk 2024-07-29 17:46:42 +02:00
constrained_generic_params.rs Auto merge of #125076 - compiler-errors:alias-term, r=lcnr 2024-05-13 22:20:43 +00:00
errors.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
hir_wf_check.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
impl_wf_check.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
lib.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00