We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2fe936f commit 864e1fbCopy full SHA for 864e1fb
compiler/rustc_infer/src/infer/opaque_types/mod.rs
@@ -73,7 +73,7 @@ impl<'tcx> InferCtxt<'tcx> {
73
// for opaque types, and then use that kind to fix the spans for type errors
74
// that we see later on.
75
let ty_var = self.next_ty_var(TypeVariableOrigin {
76
- kind: TypeVariableOriginKind::OpaqueTypeInference(def_id),
+ kind: TypeVariableOriginKind::MiscVariable,
77
span,
78
});
79
obligations.extend(
compiler/rustc_infer/src/infer/type_variable.rs
@@ -47,7 +47,6 @@ pub enum TypeVariableOriginKind {
47
MiscVariable,
48
NormalizeProjectionType,
49
TypeInference,
50
- OpaqueTypeInference(DefId),
51
TypeParameterDefinition(Symbol, DefId),
52
53
/// One of the upvars or closure kind parameters in a `ClosureArgs`
0 commit comments