diff options
| author | Santiago Pastorino <spastorino@gmail.com> | 2021-07-14 18:23:36 -0300 |
|---|---|---|
| committer | Santiago Pastorino <spastorino@gmail.com> | 2021-07-18 09:30:10 -0300 |
| commit | 000b945ceaed1b74b101f96889b63d48d877ba69 (patch) | |
| tree | 142683c06d94abaa24d9889df840642b9982ce6f /compiler/rustc_trait_selection | |
| parent | d98384595f105179fef37960f37a636e562d6425 (diff) | |
| download | rust-000b945ceaed1b74b101f96889b63d48d877ba69.tar.gz rust-000b945ceaed1b74b101f96889b63d48d877ba69.zip | |
Remove OpaqueTyOrigin::Misc, use TyAlias instead
Diffstat (limited to 'compiler/rustc_trait_selection')
| -rw-r--r-- | compiler/rustc_trait_selection/src/opaque_types.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_trait_selection/src/opaque_types.rs b/compiler/rustc_trait_selection/src/opaque_types.rs index f380ad54d7f..39013a317fd 100644 --- a/compiler/rustc_trait_selection/src/opaque_types.rs +++ b/compiler/rustc_trait_selection/src/opaque_types.rs @@ -402,7 +402,7 @@ impl<'a, 'tcx> InferCtxtExt<'tcx> for InferCtxt<'a, 'tcx> { } // These opaque type inherit all lifetime parameters from their // parent, so we have to check them all. - hir::OpaqueTyOrigin::TyAlias | hir::OpaqueTyOrigin::Misc => 0, + hir::OpaqueTyOrigin::TyAlias => 0, }; let span = tcx.def_span(def_id); @@ -994,7 +994,7 @@ impl<'a, 'tcx> Instantiator<'a, 'tcx> { may_define_opaque_type(tcx, self.parent_def_id, opaque_hir_id), origin, ), - _ => (def_scope_default(), hir::OpaqueTyOrigin::Misc), + _ => (def_scope_default(), hir::OpaqueTyOrigin::TyAlias), }; if in_definition_scope { let opaque_type_key = |
