Function rustc::middle::ty::try_add_builtin_traitUnstable
[-] [+]
[src]
pub fn try_add_builtin_trait(tcx: &ctxt, trait_def_id: DefId, builtin_bounds: &mut EnumSet<BuiltinBound>) -> bool
Checks whether trait_ref
refers to one of the builtin
traits, like Send
, and adds the corresponding
bound to the set builtin_bounds
if so. Returns true if trait_ref
is a builtin trait.