Skip to content

Commit 864e1fb

Browse files
Remove TypeVariableOriginKind::OpaqueInference
1 parent 2fe936f commit 864e1fb

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

compiler/rustc_infer/src/infer/opaque_types/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ impl<'tcx> InferCtxt<'tcx> {
7373
// for opaque types, and then use that kind to fix the spans for type errors
7474
// that we see later on.
7575
let ty_var = self.next_ty_var(TypeVariableOrigin {
76-
kind: TypeVariableOriginKind::OpaqueTypeInference(def_id),
76+
kind: TypeVariableOriginKind::MiscVariable,
7777
span,
7878
});
7979
obligations.extend(

compiler/rustc_infer/src/infer/type_variable.rs

-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ pub enum TypeVariableOriginKind {
4747
MiscVariable,
4848
NormalizeProjectionType,
4949
TypeInference,
50-
OpaqueTypeInference(DefId),
5150
TypeParameterDefinition(Symbol, DefId),
5251

5352
/// One of the upvars or closure kind parameters in a `ClosureArgs`

0 commit comments

Comments
 (0)