Skip to content

Commit febf858

Browse files
Remove TypeVariableOriginKind
1 parent 2e989dc commit febf858

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_utils/src/ty.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use rustc_hir as hir;
1010
use rustc_hir::def::{CtorKind, CtorOf, DefKind, Res};
1111
use rustc_hir::def_id::DefId;
1212
use rustc_hir::{Expr, FnDecl, LangItem, TyKind, Unsafety};
13-
use rustc_infer::infer::type_variable::{TypeVariableOrigin, TypeVariableOriginKind};
13+
use rustc_infer::infer::type_variable::{TypeVariableOrigin};
1414
use rustc_infer::infer::TyCtxtInferExt;
1515
use rustc_lint::LateContext;
1616
use rustc_middle::mir::interpret::Scalar;
@@ -276,8 +276,8 @@ pub fn implements_trait_with_env_from_iter<'tcx>(
276276
.map(|arg| {
277277
arg.into().unwrap_or_else(|| {
278278
let orig = TypeVariableOrigin {
279-
kind: TypeVariableOriginKind::MiscVariable,
280279
span: DUMMY_SP,
280+
param_def_id: None,
281281
};
282282
infcx.next_ty_var(orig).into()
283283
})

0 commit comments

Comments
 (0)