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
|
@ -52,6 +52,11 @@ pub struct TraitDef {
|
|||
/// List of functions from `#[rustc_must_implement_one_of]` attribute one of which
|
||||
/// must be implemented.
|
||||
pub must_implement_one_of: Option<Box<[Ident]>>,
|
||||
|
||||
/// Whether a type's built-in `dyn Trait: Trait` implementation is explicitly
|
||||
/// denied. This only applies to built-in trait, and is marked via
|
||||
/// `#[rustc_do_not_implement_via_object]`.
|
||||
pub do_not_implement_via_object: bool,
|
||||
}
|
||||
|
||||
/// Whether this trait is treated specially by the standard library
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue