diff options
| author | Pavel Grigorenko <GrigorenkoPV@ya.ru> | 2025-06-24 01:49:26 +0300 |
|---|---|---|
| committer | Pavel Grigorenko <GrigorenkoPV@ya.ru> | 2025-07-09 01:18:28 +0300 |
| commit | 12f6487d79199c660edfba58cfcdc34e717b9abc (patch) | |
| tree | b525340129c6e3900baa9e6e6d48b14868ae7305 /compiler/rustc_hir_analysis/src | |
| parent | a57a885abc342cf0fec0521da21b295f8694f75e (diff) | |
Port `#[marker]` to the new attribute system
Diffstat (limited to 'compiler/rustc_hir_analysis/src')
| -rw-r--r-- | compiler/rustc_hir_analysis/src/collect.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_hir_analysis/src/collect.rs b/compiler/rustc_hir_analysis/src/collect.rs index f0db98832d9..b5c7bfeed9b 100644 --- a/compiler/rustc_hir_analysis/src/collect.rs +++ b/compiler/rustc_hir_analysis/src/collect.rs @@ -866,7 +866,7 @@ fn trait_def(tcx: TyCtxt<'_>, def_id: LocalDefId) -> ty::TraitDef { } // Only regular traits can be marker. - let is_marker = !is_alias && attrs.iter().any(|attr| attr.has_name(sym::marker)); + let is_marker = !is_alias && find_attr!(attrs, AttributeKind::Marker(_)); let rustc_coinductive = find_attr!(attrs, AttributeKind::Coinductive(_)); let is_fundamental = attrs.iter().any(|attr| attr.has_name(sym::fundamental)); |
