Fix ICE in ptr_arg
This commit is contained in:
parent
7bb69c0ae0
commit
e4f45c22e2
@ -649,7 +649,7 @@ fn visit_expr(&mut self, e: &'tcx Expr<'_>) {
|
||||
},
|
||||
_ => {
|
||||
skip_count += 1;
|
||||
results[arg.idx].skip = true;
|
||||
results[i].skip = true;
|
||||
None
|
||||
},
|
||||
}
|
||||
|
3
tests/ui/crashes/ice-8386.rs
Normal file
3
tests/ui/crashes/ice-8386.rs
Normal file
@ -0,0 +1,3 @@
|
||||
fn f(x: u32, mut arg: &String) {}
|
||||
|
||||
fn main() {}
|
Loading…
Reference in New Issue
Block a user