Skip to content

Commit c8f51fc

Browse files
committed
Auto merge of #1630 - RalfJung:rustup, r=RalfJung
Rustup Includes #1626 and #1629.
2 parents 1499c5a + 517728b commit c8f51fc

File tree

5 files changed

+21
-17
lines changed

5 files changed

+21
-17
lines changed

rust-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
12f0dba618e761c987142474435dff95ab177f3c
1+
bf469eb6c20ccea05400a1942c70343f36705e1c

src/shims/posix/linux/dlsym.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ impl Dlsym {
1212
pub fn from_str(name: &str) -> InterpResult<'static, Option<Dlsym>> {
1313
Ok(match &*name {
1414
"__pthread_get_minstack" => None,
15+
"getrandom" => None, // std falls back to syscall(SYS_getrandom, ...) when this is NULL.
16+
"statx" => None, // std falls back to syscall(SYS_statx, ...) when this is NULL.
1517
_ => throw_unsup_format!("unsupported Linux dlsym: {}", name),
1618
})
1719
}

src/shims/posix/linux/foreign_items.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,9 @@ fn getrandom<'tcx>(
208208

209209
// The only supported flags are GRND_RANDOM and GRND_NONBLOCK,
210210
// neither of which have any effect on our current PRNG.
211-
this.read_scalar(flags)?.to_i32()?;
211+
let _flags = this.read_scalar(flags)?;
212+
// FIXME: Check that this is an integer type of the right size.
213+
// Currently, some callers pass i32 and some usize, is that even allowed?
212214

213215
this.gen_random(ptr, len)?;
214216
this.write_scalar(Scalar::from_machine_usize(len, this), dest)?;

tests/run-pass/backtrace-std.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// normalize-stderr-test "at .*/(rust[^/]*|checkout)/library/" -> "at RUSTLIB/"
2-
// normalize-stderr-test "RUSTLIB/(.*):\d+"-> "RUSTLIB/$1:LL"
2+
// normalize-stderr-test "RUSTLIB/([^:]*):\d+:\d+"-> "RUSTLIB/$1:LL:CC"
33
// normalize-stderr-test "::<.*>" -> ""
44
// compile-flags: -Zmiri-disable-isolation
55

tests/run-pass/backtrace-std.stderr

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
0: func_d
2-
at $DIR/backtrace-std.rs:18
2+
at $DIR/backtrace-std.rs:18:45
33
1: func_c
4-
at $DIR/backtrace-std.rs:17
4+
at $DIR/backtrace-std.rs:17:45
55
2: func_b
6-
at $DIR/backtrace-std.rs:11
6+
at $DIR/backtrace-std.rs:11:48
77
3: func_a
8-
at $DIR/backtrace-std.rs:10
8+
at $DIR/backtrace-std.rs:10:45
99
4: main
10-
at $DIR/backtrace-std.rs:21
10+
at $DIR/backtrace-std.rs:21:19
1111
5: <fn() as std::ops::FnOnce<()>>::call_once - shim(fn())
12-
at RUSTLIB/core/src/ops/function.rs:LL
12+
at RUSTLIB/core/src/ops/function.rs:LL:CC
1313
6: std::sys_common::backtrace::__rust_begin_short_backtrace
14-
at RUSTLIB/std/src/sys_common/backtrace.rs:LL
14+
at RUSTLIB/std/src/sys_common/backtrace.rs:LL:CC
1515
7: std::rt::lang_start::{closure#0}
16-
at RUSTLIB/std/src/rt.rs:LL
16+
at RUSTLIB/std/src/rt.rs:LL:CC
1717
8: std::ops::function::impls::call_once
18-
at RUSTLIB/core/src/ops/function.rs:LL
18+
at RUSTLIB/core/src/ops/function.rs:LL:CC
1919
9: std::panicking::r#try::do_call
20-
at RUSTLIB/std/src/panicking.rs:LL
20+
at RUSTLIB/std/src/panicking.rs:LL:CC
2121
10: std::panicking::r#try
22-
at RUSTLIB/std/src/panicking.rs:LL
22+
at RUSTLIB/std/src/panicking.rs:LL:CC
2323
11: std::panic::catch_unwind
24-
at RUSTLIB/std/src/panic.rs:LL
24+
at RUSTLIB/std/src/panic.rs:LL:CC
2525
12: std::rt::lang_start_internal
26-
at RUSTLIB/std/src/rt.rs:LL
26+
at RUSTLIB/std/src/rt.rs:LL:CC
2727
13: std::rt::lang_start
28-
at RUSTLIB/std/src/rt.rs:LL
28+
at RUSTLIB/std/src/rt.rs:LL:CC

0 commit comments

Comments
 (0)