diff options
| author | Michael Goulet <michael@errs.io> | 2022-09-08 00:26:01 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2022-09-09 01:31:46 +0000 |
| commit | ec170bef0d8c6ec91c35b89c38da9a0ed10e00fd (patch) | |
| tree | f3a8ee8e38103aa4ac4eb0dc2c13025649dfe798 | |
| parent | 526511e86b597c0b5c6b5e1676320a6d53117068 (diff) | |
| download | rust-ec170bef0d8c6ec91c35b89c38da9a0ed10e00fd.tar.gz rust-ec170bef0d8c6ec91c35b89c38da9a0ed10e00fd.zip | |
Rebase fallout
| -rw-r--r-- | compiler/rustc_ast_lowering/src/lib.rs | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/compiler/rustc_ast_lowering/src/lib.rs b/compiler/rustc_ast_lowering/src/lib.rs index 6b636288137..0720f23ed75 100644 --- a/compiler/rustc_ast_lowering/src/lib.rs +++ b/compiler/rustc_ast_lowering/src/lib.rs @@ -1351,17 +1351,14 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> { *in_trait, itctx, ), - ImplTraitContext::TypeAliasesOpaqueTy => { - let mut nested_itctx = ImplTraitContext::TypeAliasesOpaqueTy; - self.lower_opaque_impl_trait( - span, - hir::OpaqueTyOrigin::TyAlias, - def_node_id, - bounds, - false, - nested_itctx, - ) - } + ImplTraitContext::TypeAliasesOpaqueTy => self.lower_opaque_impl_trait( + span, + hir::OpaqueTyOrigin::TyAlias, + def_node_id, + bounds, + false, + &mut ImplTraitContext::TypeAliasesOpaqueTy, + ), ImplTraitContext::Universal => { let span = t.span; let ident = Ident::from_str_and_span(&pprust::ty_to_string(t), span); |
