Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rustup, fix test #1533

Merged
merged 1 commit into from
Sep 1, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion rust-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18b0585b52741ca158dfebef7968326e2704352e
d9cd4a33f53689bc0847775669a14f666a138fd7
2 changes: 1 addition & 1 deletion tests/run-pass/stacked-borrows/interior_mutability.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ fn into_interior_mutability() {
let mut x: MaybeUninit<(Cell<u32>, u32)> = MaybeUninit::uninit();
x.as_ptr();
x.write((Cell::new(0), 1));
let ptr = unsafe { x.get_ref() };
let ptr = unsafe { x.assume_init_ref() };
assert_eq!(ptr.1, 1);
}

Expand Down