compiler: Lower fn call arg spans down to MIR
To enable improved accuracy of diagnostics in upcoming commits.
This commit is contained in:
parent
924ea05103
commit
16ba56c242
47 changed files with 221 additions and 170 deletions
|
@ -50,7 +50,7 @@ fn lower_slice_len_call<'tcx>(
|
|||
} = &terminator.kind
|
||||
// some heuristics for fast rejection
|
||||
&& let [arg] = &args[..]
|
||||
&& let Some(arg) = arg.place()
|
||||
&& let Some(arg) = arg.node.place()
|
||||
&& let ty::FnDef(fn_def_id, _) = func.ty(local_decls, tcx).kind()
|
||||
&& *fn_def_id == slice_len_fn_item_def_id
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue