Skip to content

Commit

Permalink
Remove TypeVariableOriginKind::OpaqueInference
Browse files Browse the repository at this point in the history
  • Loading branch information
compiler-errors committed Mar 24, 2024
1 parent 6990150 commit 8af3f22
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion compiler/rustc_infer/src/infer/opaque_types/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ impl<'tcx> InferCtxt<'tcx> {
// for opaque types, and then use that kind to fix the spans for type errors
// that we see later on.
let ty_var = self.next_ty_var(TypeVariableOrigin {
kind: TypeVariableOriginKind::OpaqueTypeInference(def_id),
kind: TypeVariableOriginKind::MiscVariable,
span,
});
obligations.extend(
Expand Down
1 change: 0 additions & 1 deletion compiler/rustc_infer/src/infer/type_variable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ pub enum TypeVariableOriginKind {
MiscVariable,
NormalizeProjectionType,
TypeInference,
OpaqueTypeInference(DefId),
TypeParameterDefinition(Symbol, DefId),

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

0 comments on commit 8af3f22

Please sign in to comment.