Add rustc_do_not_implement_via_object
This commit is contained in:
parent
5683791ebb
commit
657d3f43a9
11 changed files with 47 additions and 3 deletions
|
@ -985,6 +985,7 @@ fn trait_def(tcx: TyCtxt<'_>, def_id: LocalDefId) -> ty::TraitDef {
|
|||
|
||||
no_dups.then_some(list)
|
||||
});
|
||||
let do_not_implement_via_object = tcx.has_attr(def_id, sym::rustc_do_not_implement_via_object);
|
||||
|
||||
ty::TraitDef {
|
||||
def_id: def_id.to_def_id(),
|
||||
|
@ -996,6 +997,7 @@ fn trait_def(tcx: TyCtxt<'_>, def_id: LocalDefId) -> ty::TraitDef {
|
|||
skip_array_during_method_dispatch,
|
||||
specialization_kind,
|
||||
must_implement_one_of,
|
||||
do_not_implement_via_object,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue