1
Fork 0

Make rustc_deny_explicit_impl only local as well

This commit is contained in:
Michael Goulet 2023-06-13 22:31:25 +00:00
parent 657d3f43a9
commit 91e5c3f2e5
4 changed files with 8 additions and 4 deletions

View file

@ -57,6 +57,9 @@ pub struct TraitDef {
/// 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 a trait is fully built-in, and any implementation is disallowed.
pub deny_explicit_impl: bool,
}
/// Whether this trait is treated specially by the standard library