Move autoderef to rustc_hir_analysis
This commit is contained in:
parent
ef4046e4f3
commit
c8334ce60c
16 changed files with 69 additions and 45 deletions
|
@ -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![])]
|
||||
}),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue