Skip to content

Commit 18a6579

Browse files
authored
Merge pull request #4178 from RalfJung/rustup
Rustup
2 parents 0116829 + befe1db commit 18a6579

File tree

4 files changed

+23
-3
lines changed

4 files changed

+23
-3
lines changed

rust-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
affdb59607566c1615c829eea9e7b27a093994ec
1+
8df89d1cb077cd76013d3f9f5a4e92c5b5a9280c

src/bin/miri.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -721,8 +721,8 @@ fn main() {
721721

722722
// Ensure we have parallelism for many-seeds mode.
723723
if many_seeds.is_some() && !rustc_args.iter().any(|arg| arg.starts_with("-Zthreads=")) {
724-
// Clamp to 10 threads; things get a lot less efficient beyond that due to lock contention.
725-
let threads = std::thread::available_parallelism().map_or(1, |n| n.get()).min(10);
724+
// Clamp to 20 threads; things get a less efficient beyond that due to lock contention.
725+
let threads = std::thread::available_parallelism().map_or(1, |n| n.get()).min(20);
726726
rustc_args.push(format!("-Zthreads={threads}"));
727727
}
728728
let many_seeds =
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#![feature(core_intrinsics)]
2+
fn main() {
3+
// one bit in common
4+
unsafe { std::intrinsics::disjoint_bitor(0b01101001_u8, 0b10001110) }; //~ ERROR: Undefined Behavior
5+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
error: Undefined Behavior: `assume` called with `false`
2+
--> tests/fail/intrinsics/disjoint_bitor.rs:LL:CC
3+
|
4+
LL | unsafe { std::intrinsics::disjoint_bitor(0b01101001_u8, 0b10001110) };
5+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `assume` called with `false`
6+
|
7+
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
8+
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
9+
= note: BACKTRACE:
10+
= note: inside `main` at tests/fail/intrinsics/disjoint_bitor.rs:LL:CC
11+
12+
note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
13+
14+
error: aborting due to 1 previous error
15+

0 commit comments

Comments
 (0)