Skip to content

Commit b6602f5

Browse files
committed
rustup
1 parent 5fed3eb commit b6602f5

File tree

5 files changed

+10
-5
lines changed

5 files changed

+10
-5
lines changed

rust-version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7665c3543079ebc3710b676d0fd6951bedfd4b29
1+
8824d131619e58a38bde8bcf56401629b91a204a

src/operator.rs

+2
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,13 @@ impl<'mir, 'tcx> EvalContextExt<'tcx> for super::MiriEvalContext<'mir, 'tcx> {
3535
Immediate::Scalar(l) => (l.check_init()?.to_bits(size)?, 0),
3636
Immediate::ScalarPair(l1, l2) =>
3737
(l1.check_init()?.to_bits(size)?, l2.check_init()?.to_bits(size)?),
38+
Immediate::Uninit => throw_ub!(InvalidUninitBytes(None)),
3839
};
3940
let right = match **right {
4041
Immediate::Scalar(r) => (r.check_init()?.to_bits(size)?, 0),
4142
Immediate::ScalarPair(r1, r2) =>
4243
(r1.check_init()?.to_bits(size)?, r2.check_init()?.to_bits(size)?),
44+
Immediate::Uninit => throw_ub!(InvalidUninitBytes(None)),
4345
};
4446
let res = match bin_op {
4547
Eq => left == right,

tests/fail/data_race/stack_pop_race.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
1+
// ignore-windows: Concurrency on Windows is not supported yet.
12
// compile-flags: -Zmiri-preemption-rate=0
23
use std::thread;
34

45
#[derive(Copy, Clone)]
56
struct MakeSend(*const i32);
67
unsafe impl Send for MakeSend {}
78

8-
fn main() { race(0); }
9+
fn main() {
10+
race(0);
11+
}
912

1013
// Using an argument for the ptr to point to, since those do not get StorageDead.
1114
fn race(local: i32) {

tests/fail/data_race/stack_pop_race.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ LL | }
1111
note: inside `main` at $DIR/stack_pop_race.rs:LL:CC
1212
--> $DIR/stack_pop_race.rs:LL:CC
1313
|
14-
LL | fn main() { race(0); }
15-
| ^^^^^^^
14+
LL | race(0);
15+
| ^^^^^^^
1616

1717
note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
1818

tests/pass/unsized.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ fn unsized_params() {
2424
f0(*c);
2525
let foo = "foo".to_string().into_boxed_str();
2626
f1(*foo);
27-
let sl: Box::<[i32]> = [0, 1, 2].to_vec().into_boxed_slice();
27+
let sl: Box<[i32]> = [0, 1, 2].to_vec().into_boxed_slice();
2828
f2(5, *sl);
2929
let p: Box<dyn Send> = Box::new((1, 2));
3030
f3(*p);

0 commit comments

Comments
 (0)