]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_infer/src/infer/mod.rs
Rollup merge of #106714 - Ezrashaw:remove-e0490, r=davidtwco
[rust.git] / compiler / rustc_infer / src / infer / mod.rs
index 0e355b6d1eeca30be90ca36684122f2f23313083..4acd0d0edfec774546b1a73bda0ae049d8fe720e 100644 (file)
@@ -685,6 +685,10 @@ pub fn err_ctxt(&self) -> TypeErrCtxt<'_, 'tcx> {
             typeck_results: None,
             fallback_has_occurred: false,
             normalize_fn_sig: Box::new(|fn_sig| fn_sig),
+            autoderef_steps: Box::new(|ty| {
+                debug_assert!(false, "shouldn't be using autoderef_steps outside of typeck");
+                vec![(ty, vec![])]
+            }),
         }
     }