Auto merge of #13600 - samueltardieu:push-tzuvnutssmrs, r=xFrednet
borrow_deref_ref: do not trigger on `&raw` references changelog: [`borrow_deref_ref`]: do not trigger on `&raw` references Fix #13584
This commit is contained in:
commit
c02f3a2822
3 changed files with 14 additions and 2 deletions
|
|
@ -71,3 +71,9 @@ mod false_negative {
|
|||
assert_ne!(addr_x, addr_y);
|
||||
}
|
||||
}
|
||||
|
||||
fn issue_13584() {
|
||||
let s = "Hello, world!\n";
|
||||
let p = &raw const *s;
|
||||
let _ = p as *const i8;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -71,3 +71,9 @@ mod false_negative {
|
|||
assert_ne!(addr_x, addr_y);
|
||||
}
|
||||
}
|
||||
|
||||
fn issue_13584() {
|
||||
let s = "Hello, world!\n";
|
||||
let p = &raw const *s;
|
||||
let _ = p as *const i8;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue