diff options
| author | Michael Goulet <michael@errs.io> | 2024-03-24 12:47:01 -0400 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2024-04-15 16:51:50 -0400 |
| commit | febf858c23a221977c80b1ff89443fc2229f94fd (patch) | |
| tree | 8008eba42e5bdcc8a5e6f5fda1fbd8549d93ce3d | |
| parent | 2e989dc2809937fe33c17995e2147873977d2235 (diff) | |
| download | rust-febf858c23a221977c80b1ff89443fc2229f94fd.tar.gz rust-febf858c23a221977c80b1ff89443fc2229f94fd.zip | |
Remove TypeVariableOriginKind
| -rw-r--r-- | clippy_utils/src/ty.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clippy_utils/src/ty.rs b/clippy_utils/src/ty.rs index ab1be66dc78..1afc5ed0157 100644 --- a/clippy_utils/src/ty.rs +++ b/clippy_utils/src/ty.rs @@ -10,7 +10,7 @@ use rustc_hir as hir; use rustc_hir::def::{CtorKind, CtorOf, DefKind, Res}; use rustc_hir::def_id::DefId; use rustc_hir::{Expr, FnDecl, LangItem, TyKind, Unsafety}; -use rustc_infer::infer::type_variable::{TypeVariableOrigin, TypeVariableOriginKind}; +use rustc_infer::infer::type_variable::{TypeVariableOrigin}; use rustc_infer::infer::TyCtxtInferExt; use rustc_lint::LateContext; use rustc_middle::mir::interpret::Scalar; @@ -276,8 +276,8 @@ pub fn implements_trait_with_env_from_iter<'tcx>( .map(|arg| { arg.into().unwrap_or_else(|| { let orig = TypeVariableOrigin { - kind: TypeVariableOriginKind::MiscVariable, span: DUMMY_SP, + param_def_id: None, }; infcx.next_ty_var(orig).into() }) |
