1
Fork 0

Use the name "auto traits" everywhere in the compiler

Goodbye, OIBIT!
This commit is contained in:
Camelid 2020-11-24 15:44:04 -08:00
parent 810324d1f3
commit 82dc99ba7a
10 changed files with 20 additions and 20 deletions

View file

@ -96,7 +96,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
ExprKind::Box { value } => {
let value = this.hir.mirror(value);
// The `Box<T>` temporary created here is not a part of the HIR,
// and therefore is not considered during generator OIBIT
// and therefore is not considered during generator auto-trait
// determination. See the comment about `box` at `yield_in_scope`.
let result = this.local_decls.push(LocalDecl::new(expr.ty, expr_span).internal());
this.cfg.push(