mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
Remove TypeVariableOriginKind::OpaqueInference
This commit is contained in:
parent
2fe936f17d
commit
864e1fbc81
@ -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(
|
||||
|
@ -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`
|
||||
|
Loading…
Reference in New Issue
Block a user