Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-ty/src/autoderef.rs')
-rw-r--r--crates/hir-ty/src/autoderef.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/hir-ty/src/autoderef.rs b/crates/hir-ty/src/autoderef.rs
index abab3bfb25..2c2400a14a 100644
--- a/crates/hir-ty/src/autoderef.rs
+++ b/crates/hir-ty/src/autoderef.rs
@@ -10,7 +10,7 @@ use rustc_type_ir::inherent::{IntoKind, Ty as _};
use tracing::debug;
use crate::{
- ParamEnvAndCrate,
+ ParamEnvAndCrate, Span,
db::HirDatabase,
infer::InferenceContext,
next_solver::{
@@ -39,7 +39,7 @@ pub fn autoderef<'db>(
) -> impl Iterator<Item = Ty<'db>> + use<'db> {
let interner = DbInterner::new_with(db, env.krate);
let infcx = interner.infer_ctxt().build(TypingMode::PostAnalysis);
- let (ty, _) = infcx.instantiate_canonical(&ty);
+ let (ty, _) = infcx.instantiate_canonical(Span::Dummy, &ty);
let autoderef = Autoderef::new(&infcx, env.param_env, ty);
let mut v = Vec::new();
for (ty, _steps) in autoderef {