1
Fork 0

Move autoderef to rustc_hir_analysis

This commit is contained in:
Michael Goulet 2022-12-27 00:39:36 +00:00
parent ef4046e4f3
commit c8334ce60c
16 changed files with 69 additions and 45 deletions

View file

@ -688,6 +688,10 @@ impl<'tcx> InferCtxt<'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![])]
}),
}
}