Skip to content

Commit

Permalink
Auto merge of #1788 - hyd-dev:rustup, r=RalfJung
Browse files Browse the repository at this point in the history
`encountered a NULL reference` -> `encountered a null reference`

It's changed from "NULL" to "null" (probably by rust-lang/rust#84842) in `rustc`, and causing some test failures:
https://github.com/rust-lang/miri/runs/2498333632#step:8:640
  • Loading branch information
bors committed May 4, 2021
2 parents cf9d77d + 47c5b6e commit 67c04af
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rust-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
59f551a2dcf57c0d3d96ac5ef60e000524210469
0309953232d9957aef4c7c5a24fcb30735b2066b
2 changes: 1 addition & 1 deletion tests/compile-fail/validity/cast_fn_ptr1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ fn main() {
let g: fn(*const i32) = unsafe { std::mem::transmute(f as fn(&i32)) };

g(0usize as *const i32)
//~^ ERROR encountered a NULL reference
//~^ ERROR encountered a null reference
}
2 changes: 1 addition & 1 deletion tests/compile-fail/validity/cast_fn_ptr2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ fn main() {
let g: fn() -> &'static i32 = unsafe { std::mem::transmute(f as fn() -> *const i32) };

let _x = g();
//~^ ERROR encountered a NULL reference
//~^ ERROR encountered a null reference
}

0 comments on commit 67c04af

Please sign in to comment.