]> git.lizzy.rs Git - rust.git/log
rust.git
3 years agotest calling pthread_cond_timedwait with an already elapsed timeout
Ralf Jung [Sun, 11 Apr 2021 12:21:42 +0000 (14:21 +0200)]
test calling pthread_cond_timedwait with an already elapsed timeout

3 years agoonly check timeouts when a thread yields
Ralf Jung [Sun, 11 Apr 2021 11:23:37 +0000 (13:23 +0200)]
only check timeouts when a thread yields

3 years agoAuto merge of #1770 - RalfJung:no_run, r=RalfJung
bors [Sat, 10 Apr 2021 13:11:05 +0000 (13:11 +0000)]
Auto merge of #1770 - RalfJung:no_run, r=RalfJung

make sure that we truly do not run no_run doctests

3 years agomake sure that we truly do not run no_run doctests
Ralf Jung [Sat, 10 Apr 2021 12:20:06 +0000 (14:20 +0200)]
make sure that we truly do not run no_run doctests

3 years agoAuto merge of #1768 - RalfJung:readme, r=RalfJung
bors [Sat, 10 Apr 2021 10:35:21 +0000 (10:35 +0000)]
Auto merge of #1768 - RalfJung:readme, r=RalfJung

add the bad doctests we found to the trophy case

3 years agoadd the bad doctests we found to the trophy case
Ralf Jung [Sat, 10 Apr 2021 10:33:18 +0000 (12:33 +0200)]
add the bad doctests we found to the trophy case

3 years agoAuto merge of #1766 - RalfJung:dropped-temporary, r=RalfJung
bors [Sat, 10 Apr 2021 10:10:27 +0000 (10:10 +0000)]
Auto merge of #1766 - RalfJung:dropped-temporary, r=RalfJung

add test to detect dropped temporary

Let's make sure we catch this kind of error.

3 years agoadd test to detect dropped temporary
Ralf Jung [Sat, 10 Apr 2021 10:09:10 +0000 (12:09 +0200)]
add test to detect dropped temporary

3 years agoAuto merge of #1765 - rust-lang:rustup, r=RalfJung
bors [Sat, 10 Apr 2021 09:03:11 +0000 (09:03 +0000)]
Auto merge of #1765 - rust-lang:rustup, r=RalfJung

rustup

Looks like we haven't had one of these in a bit.

3 years agorustup
Ralf Jung [Sat, 10 Apr 2021 09:00:41 +0000 (11:00 +0200)]
rustup

3 years agoAuto merge of #1764 - RalfJung:readme, r=RalfJung
bors [Fri, 9 Apr 2021 09:29:48 +0000 (09:29 +0000)]
Auto merge of #1764 - RalfJung:readme, r=RalfJung

fix typo in README

"you program" → "your program"

3 years agofix typo in README
Ralf Jung [Fri, 9 Apr 2021 09:24:33 +0000 (11:24 +0200)]
fix typo in README

3 years agoAuto merge of #1761 - hyd-dev:build-rs-proc-macro-no-default-args, r=RalfJung
bors [Thu, 8 Apr 2021 17:07:15 +0000 (17:07 +0000)]
Auto merge of #1761 - hyd-dev:build-rs-proc-macro-no-default-args, r=RalfJung

Don't use `MIRI_DEFAULT_ARGS` to compile host crates

They (specifically, `--cfg=miri`) may cause procedural macros (and probably build scripts) to depend on Miri-only symbols, such as `miri_resolve_frame`.

This PR makes `miri` detect host crates inspecting the value of the `MIRI_BE_RUSTC` environment variable (`target` -> target crate, `host` -> host crate, other -> panic) and skip the insertion of `MIRI_DEFAULT_ARGS` if it's a host crate.

Fixes #1760

3 years agoDon't use `MIRI_DEFAULT_ARGS` to compile host crates
hyd-dev [Wed, 7 Apr 2021 12:46:20 +0000 (20:46 +0800)]
Don't use `MIRI_DEFAULT_ARGS` to compile host crates

3 years agoAuto merge of #1759 - RalfJung:readme, r=RalfJung
bors [Wed, 7 Apr 2021 08:10:37 +0000 (08:10 +0000)]
Auto merge of #1759 - RalfJung:readme, r=RalfJung

mention 'cargo miri test filter' in README

Also update the "unsupported" example to something that is actually unsupported.

3 years agomention 'cargo miri test filter' in README
Ralf Jung [Wed, 7 Apr 2021 08:07:03 +0000 (10:07 +0200)]
mention 'cargo miri test filter' in README

3 years agoAuto merge of #1757 - RalfJung:rustdoc, r=RalfJung
bors [Tue, 6 Apr 2021 08:41:11 +0000 (08:41 +0000)]
Auto merge of #1757 - RalfJung:rustdoc, r=RalfJung

add rustdoc support

`@teryror` did all the work in https://github.com/rust-lang/miri/pull/1671; I just finished things up and fixed conflicts. Also thanks to `@hyd-dev` for preemptively fixing a sysroot issue that would have taken me some time to diagnose.

Fixes https://github.com/rust-lang/miri/issues/584

3 years agonits and fix non-deterministic test output
Ralf Jung [Mon, 5 Apr 2021 11:18:59 +0000 (13:18 +0200)]
nits and fix non-deterministic test output

3 years agonits; test running no doctests
Ralf Jung [Mon, 5 Apr 2021 10:46:36 +0000 (12:46 +0200)]
nits; test running no doctests

3 years agoavoid some dead code and test no_run tests
Ralf Jung [Mon, 5 Apr 2021 10:26:27 +0000 (12:26 +0200)]
avoid some dead code and test no_run tests

3 years agoadd test for compile_fail; de-duplicate sysroot forwarding
Ralf Jung [Mon, 5 Apr 2021 10:16:31 +0000 (12:16 +0200)]
add test for compile_fail; de-duplicate sysroot forwarding

3 years agoFix sysroot for rustdoc
hyd-dev [Sun, 14 Feb 2021 10:57:03 +0000 (18:57 +0800)]
Fix sysroot for rustdoc

3 years agoresolve semantic conflicts
Ralf Jung [Mon, 5 Apr 2021 09:55:53 +0000 (11:55 +0200)]
resolve semantic conflicts

3 years agomake attempt to cross-interpret a hard error
Ralf Jung [Mon, 5 Apr 2021 09:46:20 +0000 (11:46 +0200)]
make attempt to cross-interpret a hard error

3 years agomake cargo-miri run doc-tests
Tristan Dannenberg [Tue, 12 Jan 2021 21:16:48 +0000 (22:16 +0100)]
make cargo-miri run doc-tests

3 years agoAuto merge of #1756 - RalfJung:getrandom, r=RalfJung
bors [Sun, 4 Apr 2021 13:36:30 +0000 (13:36 +0000)]
Auto merge of #1756 - RalfJung:getrandom, r=RalfJung

also test old getrandom

getrandom 0.1 is still in use, so let's make sure it also still works with Miri.

3 years agoalso test old getrandom
Ralf Jung [Sun, 4 Apr 2021 13:35:19 +0000 (15:35 +0200)]
also test old getrandom

3 years agoAuto merge of #1755 - RalfJung:cargo-update, r=RalfJung
bors [Sun, 4 Apr 2021 10:06:58 +0000 (10:06 +0000)]
Auto merge of #1755 - RalfJung:cargo-update, r=RalfJung

'cargo update' all the things

Also add a test directly calling `getrandom`.

3 years agobump test-cargo-miri dependencies
Ralf Jung [Sun, 4 Apr 2021 10:03:52 +0000 (12:03 +0200)]
bump test-cargo-miri dependencies

3 years agobump cargo-miri dependencies
Ralf Jung [Sun, 4 Apr 2021 10:01:32 +0000 (12:01 +0200)]
bump cargo-miri dependencies

3 years agobump miri dependencies
Ralf Jung [Sun, 4 Apr 2021 09:45:09 +0000 (11:45 +0200)]
bump miri dependencies

3 years agofix newer getrandom on Windows
Ralf Jung [Sun, 4 Apr 2021 09:41:04 +0000 (11:41 +0200)]
fix newer getrandom on Windows

3 years ago'cargo update' all the things
Ralf Jung [Sun, 4 Apr 2021 09:11:19 +0000 (11:11 +0200)]
'cargo update' all the things

3 years agoalso test getrandom directly
Ralf Jung [Sun, 4 Apr 2021 09:09:40 +0000 (11:09 +0200)]
also test getrandom directly

3 years agoAuto merge of #1753 - RalfJung:rustup, r=RalfJung
bors [Sun, 28 Mar 2021 00:37:44 +0000 (00:37 +0000)]
Auto merge of #1753 - RalfJung:rustup, r=RalfJung

rustup

3 years agorustup
Ralf Jung [Sun, 28 Mar 2021 00:36:41 +0000 (01:36 +0100)]
rustup

3 years agoAuto merge of #1752 - RalfJung:rustup, r=RalfJung
bors [Thu, 25 Mar 2021 11:45:11 +0000 (11:45 +0000)]
Auto merge of #1752 - RalfJung:rustup, r=RalfJung

rustup

Just making sure that https://github.com/rust-lang/rust/pull/83445 indeed fixed our cron job failures.

3 years agodisable MIR opts for ZST-related tests
Ralf Jung [Thu, 25 Mar 2021 11:44:30 +0000 (12:44 +0100)]
disable MIR opts for ZST-related tests

3 years agorustup
Ralf Jung [Thu, 25 Mar 2021 11:17:02 +0000 (12:17 +0100)]
rustup

3 years agoAuto merge of #1748 - jrvanwhy:track-raw-pointers-doc, r=RalfJung
bors [Thu, 25 Mar 2021 08:27:25 +0000 (08:27 +0000)]
Auto merge of #1748 - jrvanwhy:track-raw-pointers-doc, r=RalfJung

Improvements to the README item on `-Zmiri-track-raw-pointers`.

[Rendered](https://github.com/jrvanwhy/miri/tree/track-raw-pointers-doc)

Minor change: I changed the quotes around `<untagged>` into backticks, so they render correctly in markdown.

~~Significant change: I documented that `-Zmiri-track-raw-pointers` is a strictly more restrictive model that "normal" Stacked Borrows. **I am not confident this change is correct, please verify it.** If this change is not correct, let me know, and I'll update this PR to document that :-)~~

EDIT: I was wrong, `-Zmiri-track-raw-pointers` may not be strictly more restrictive. I added the following sentence to prevent others from making the same assumption that I did:

> Note that it is not currently guaranteed that code that works with `-Zmiri-track-raw-pointers` also works without `-Zmiri-track-raw-pointers`.

3 years agoREADME.md: Apply RalfJung's suggestion
Johnathan Van Why [Wed, 24 Mar 2021 23:20:54 +0000 (16:20 -0700)]
README.md: Apply RalfJung's suggestion

`-Zmiri-track-raw-pointers` isn't *much* more restrictive than normal Stacked Borrows.

Co-authored-by: Ralf Jung <post@ralfj.de>
3 years agoAuto merge of #1750 - hyd-dev:rustup, r=RalfJung
bors [Tue, 23 Mar 2021 09:08:26 +0000 (09:08 +0000)]
Auto merge of #1750 - hyd-dev:rustup, r=RalfJung

 Remove `#![feature(or_patterns)]`

Fix a warning on CI: https://github.com/rust-lang/miri/runs/2173037929#step:8:59

3 years agoUpdate `rust-version`
hyd-dev [Tue, 23 Mar 2021 08:55:46 +0000 (16:55 +0800)]
Update `rust-version`

3 years agoRemove `#![feature(or_patterns)]`
hyd-dev [Tue, 23 Mar 2021 08:41:53 +0000 (16:41 +0800)]
Remove `#![feature(or_patterns)]`

3 years ago`-Zmiri-track-raw-pointers` doc correction: it is not strictly more restrictive than...
Johnathan Van Why [Mon, 22 Mar 2021 22:35:18 +0000 (15:35 -0700)]
`-Zmiri-track-raw-pointers` doc correction: it is not strictly more restrictive than Stacked Borrows.

This change is based on the following comment:
https://github.com/rust-lang/miri/pull/1748#issuecomment-803279473

3 years agoAuto merge of #1749 - RalfJung:rustup, r=RalfJung
bors [Mon, 22 Mar 2021 11:37:52 +0000 (11:37 +0000)]
Auto merge of #1749 - RalfJung:rustup, r=RalfJung

rustup; better comment in storage_dead_dangling test

3 years agorustup; better comment in storage_dead_dangling test
Ralf Jung [Mon, 22 Mar 2021 11:35:30 +0000 (12:35 +0100)]
rustup; better comment in storage_dead_dangling test

3 years agoImprovements to the README item on `-Zmiri-track-raw-pointers`.
Johnathan Van Why [Fri, 19 Mar 2021 16:27:36 +0000 (09:27 -0700)]
Improvements to the README item on `-Zmiri-track-raw-pointers`.

1. The double quotes around <untagged> are changed to backspaces, so <untagged>
   will render correctly in markdown.
2. Clarify that -Zmiri-track-raw-pointers will never accept code that Miri
   would not have accepted without -Zmiri-track-raw-pointers.

3 years agoAuto merge of #1746 - bstrie:depfix, r=RalfJung
bors [Wed, 17 Mar 2021 23:20:59 +0000 (23:20 +0000)]
Auto merge of #1746 - bstrie:depfix, r=RalfJung

Replace deprecated `collections::Bound` with `ops::Bound`

Cc https://github.com/rust-lang/rust/issues/83242 , which resulted from https://github.com/rust-lang/rust/pull/82122 .

3 years agorustup
Ralf Jung [Wed, 17 Mar 2021 23:19:53 +0000 (00:19 +0100)]
rustup

3 years agoReplace deprecated `collections::Bound`
bstrie [Wed, 17 Mar 2021 22:34:44 +0000 (18:34 -0400)]
Replace deprecated `collections::Bound`

3 years agoAuto merge of #1745 - hyd-dev:unsup-foreign-calls-are-not-ub, r=RalfJung
bors [Wed, 17 Mar 2021 17:47:51 +0000 (17:47 +0000)]
Auto merge of #1745 - hyd-dev:unsup-foreign-calls-are-not-ub, r=RalfJung

Improve error message of calling unsupported non-"C"/"system"-ABI foreign function

Miri currently reports the following `foo()` call has ABI-mismatch UB:
```rust
#[cfg(unix)]
extern "Rust" { // or any non-"C" ABI
    fn foo();
}

#[cfg(windows)]
extern "C" { // or any non-"system" ABI
    fn foo();
}

fn main() {
    unsafe {
        foo();
    }
}
```
[Output when targeting Linux](https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=72afc3bd4d9fdab962422cfc2c5a2166) (and maybe also macOS):
```
error: Undefined Behavior: calling a function with ABI C using caller ABI Rust
  --> src/main.rs:13:9
   |
13 |         foo();
   |         ^^^^^ calling a function with ABI C using caller ABI Rust
   |
   = help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavio
```
Output when targeting Windows:
```
error: Undefined Behavior: calling a function with ABI system using caller ABI C
  --> <anon>:13:9
   |
13 |         foo();
   |         ^^^^^ calling a function with ABI system using caller ABI C
   |
   = help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
```

However, to my knowledge, that's not UB -- it's just unsupported by Miri (and Miri can't assume the function has `"C"` or `"system"` ABI since Miri doesn't know about it). I believe that is because of the overzealous `check_abi()` call before the long `match` in `src/shims/{posix,windows}/foreign_items.rs`. The ABI is checked to match the system one (`"system"` on Windows, `"C"` otherwise) no matter the callee is recognized as a shim or an unsupported foreign function.

Therefore, this PR removes the `check_abi()` call before the `match` and inserts a `check_abi()` call to each non-wildcard match.

3 years agoRemove the macro and expand it manually
hyd-dev [Wed, 17 Mar 2021 14:12:08 +0000 (22:12 +0800)]
Remove the macro and expand it manually

3 years agoRemove meaningless tests
hyd-dev [Wed, 17 Mar 2021 13:55:45 +0000 (21:55 +0800)]
Remove meaningless tests

3 years agoRevert "Don't duplicate `check_abi()`"
hyd-dev [Wed, 17 Mar 2021 13:51:07 +0000 (21:51 +0800)]
Revert "Don't duplicate `check_abi()`"

This reverts commit 1c7d7471dae217810f48e594baca2e143a38da10.

3 years agoUnsupported foreign non-"C"/"system"-ABI function calls are not UB
hyd-dev [Tue, 16 Mar 2021 20:21:17 +0000 (04:21 +0800)]
Unsupported foreign non-"C"/"system"-ABI function calls are not UB

3 years agoDon't duplicate `check_abi()`
hyd-dev [Tue, 16 Mar 2021 16:40:53 +0000 (00:40 +0800)]
Don't duplicate `check_abi()`

3 years agoAuto merge of #1743 - RalfJung:callee-checks, r=RalfJung
bors [Sun, 14 Mar 2021 18:05:18 +0000 (18:05 +0000)]
Auto merge of #1743 - RalfJung:callee-checks, r=RalfJung

Check callee ABI when Miri calls closures

Fixes https://github.com/rust-lang/miri/issues/1741

3 years agoAuto merge of #1744 - rust-lang:bad-unwind, r=RalfJung
bors [Sun, 14 Mar 2021 16:11:21 +0000 (16:11 +0000)]
Auto merge of #1744 - rust-lang:bad-unwind, r=RalfJung

ensure we catch incorrectly unwinding calls

Fixes https://github.com/rust-lang/miri/issues/1740

3 years agodon't ICE when we unwind despite panic=abort
Ralf Jung [Sun, 14 Mar 2021 16:10:45 +0000 (17:10 +0100)]
don't ICE when we unwind despite panic=abort

3 years agoensure we catch incorrectly unwinding calls
Ralf Jung [Sun, 14 Mar 2021 16:03:20 +0000 (17:03 +0100)]
ensure we catch incorrectly unwinding calls

3 years agodon't ICE when callee has the wrong number of arguments
Ralf Jung [Sun, 14 Mar 2021 14:38:22 +0000 (15:38 +0100)]
don't ICE when callee has the wrong number of arguments

3 years agowhen Miri calls a function ptr, make sure it has the right ABI
Ralf Jung [Sun, 14 Mar 2021 14:30:37 +0000 (15:30 +0100)]
when Miri calls a function ptr, make sure it has the right ABI

3 years agoAuto merge of #1739 - RalfJung:rustup, r=RalfJung
bors [Thu, 11 Mar 2021 08:07:36 +0000 (08:07 +0000)]
Auto merge of #1739 - RalfJung:rustup, r=RalfJung

rustup

3 years agorustup
Ralf Jung [Thu, 11 Mar 2021 08:07:05 +0000 (09:07 +0100)]
rustup

3 years agoAuto merge of #1738 - RalfJung:rustup, r=RalfJung
bors [Wed, 10 Mar 2021 15:00:43 +0000 (15:00 +0000)]
Auto merge of #1738 - RalfJung:rustup, r=RalfJung

rustup

The error message is not entirely right now, but close enough... let's get CI to pass before we miss other breakage.

3 years agorustup
Ralf Jung [Wed, 10 Mar 2021 14:21:12 +0000 (15:21 +0100)]
rustup

3 years agoAuto merge of #1736 - DJMcNab:rust-analyzer-private, r=RalfJung
bors [Tue, 9 Mar 2021 18:38:22 +0000 (18:38 +0000)]
Auto merge of #1736 - DJMcNab:rust-analyzer-private, r=RalfJung

Opt-in to rustc_private for `rust-analyzer`

rust-analyzer/rust-analyzer#7891

3 years agoAdd link to pr for documentation
Daniel McNab [Tue, 9 Mar 2021 18:27:22 +0000 (18:27 +0000)]
Add link to pr for documentation

3 years agoAuto merge of #1737 - rust-lang:oli-obk-patch-1, r=oli-obk
bors [Tue, 9 Mar 2021 13:51:10 +0000 (13:51 +0000)]
Auto merge of #1737 - rust-lang:oli-obk-patch-1, r=oli-obk

mir-opt-level 4 is the new 3

cc https://github.com/rust-lang/rust/pull/82736

3 years agomir-opt-level 4 is the new 3
Oli Scherer [Tue, 9 Mar 2021 13:50:38 +0000 (14:50 +0100)]
mir-opt-level 4 is the new 3

3 years agoAuto merge of #1735 - m-ou-se:remove-unwrap-none, r=RalfJung
bors [Mon, 8 Mar 2021 18:06:30 +0000 (18:06 +0000)]
Auto merge of #1735 - m-ou-se:remove-unwrap-none, r=RalfJung

Remove unwrap_none/expect_none, take 2.

This is https://github.com/rust-lang/miri/pull/1734, but now with a better alternative.

This also upgrades rustc to the latest version, to be able to use the better alternative (`try_insert`).

3 years agoOpt-in to rustc_private for `rust-analyzer`
Daniel McNab [Mon, 8 Mar 2021 17:28:52 +0000 (17:28 +0000)]
Opt-in to rustc_private for `rust-analyzer`

rust-analyzer/rust-analyzer#7891

3 years agoFix panic test.
Mara Bos [Mon, 8 Mar 2021 16:06:50 +0000 (17:06 +0100)]
Fix panic test.

3 years agoRemove unwrap_none as it won't be stabilized.
Mara Bos [Mon, 8 Mar 2021 15:57:09 +0000 (16:57 +0100)]
Remove unwrap_none as it won't be stabilized.

This upgrades to the latest rustc to be able to use try_insert()
instead.

3 years agoAuto merge of #1733 - Smittyvb:breakpoint-intrinsic, r=RalfJung
bors [Fri, 5 Mar 2021 12:29:32 +0000 (12:29 +0000)]
Auto merge of #1733 - Smittyvb:breakpoint-intrinsic, r=RalfJung

Support breakpoint intrinsic

The `breakpoint` intrinsic raises a `SIGTRAP` signal. If a debugger is attached to a normal program, then `SIGTRAP` can be used to trigger breakpoints in debuggers like `gdb`. If there is no debugger, then the program exits with a message like `Trace/breakpoint trap (core dumped)`. This adds support for the intrinsic in Miri. While actually passing through the `SIGTRAP` doesn't make sense in a Miri context (if it just raised the signal normally then it would allow for debugging Miri itself, not the program being evaluated). As such, it just raises an error.

3 years agoCheck arg count
Smittyvb [Fri, 5 Mar 2021 12:16:50 +0000 (07:16 -0500)]
Check arg count

Co-authored-by: Ralf Jung <post@ralfj.de>
3 years agoSupport breakpoint intrinsic
Smitty [Thu, 4 Mar 2021 12:48:28 +0000 (07:48 -0500)]
Support breakpoint intrinsic

3 years agoAuto merge of #1732 - RalfJung:atomic_op, r=RalfJung
bors [Wed, 3 Mar 2021 08:06:15 +0000 (08:06 +0000)]
Auto merge of #1732 - RalfJung:atomic_op, r=RalfJung

rename atomic_op_min_max -> atomic_op

The corresponding enum is called `AtomicOp` so IMO this also makes more sense as the name for the function.

3 years agorename atomic_op_min_max -> atomic_op
Ralf Jung [Tue, 2 Mar 2021 18:54:45 +0000 (19:54 +0100)]
rename atomic_op_min_max -> atomic_op

3 years agoAuto merge of #1721 - henryboisdequin:add-atomic-min-and-max, r=oli-obk
bors [Tue, 2 Mar 2021 14:52:32 +0000 (14:52 +0000)]
Auto merge of #1721 - henryboisdequin:add-atomic-min-and-max, r=oli-obk

Add atomic min and max

Closes #1718
Previous attempt: #1653

TODO:

- [x] Merge `atomic_op` and `atomic_min_max` functions
- [x] Fix CI

**Note:** this PR also removes arbitrary trailing whitespace and generally formats the affected files

3 years agoAdd in `atomic_{min,max}_x` intrinsics
Henry Boisdequin [Tue, 2 Mar 2021 12:40:27 +0000 (18:10 +0530)]
Add in `atomic_{min,max}_x` intrinsics

Co-authored-by: Greg Bowyer <gbowyer@fastmail.co.uk>
3 years agofmt data_race.rs and intrinsics.rs
Henry Boisdequin [Tue, 2 Mar 2021 12:36:12 +0000 (18:06 +0530)]
fmt data_race.rs and intrinsics.rs

3 years agoAuto merge of #1730 - RalfJung:zulip, r=oli-obk
bors [Tue, 2 Mar 2021 11:08:27 +0000 (11:08 +0000)]
Auto merge of #1730 - RalfJung:zulip, r=oli-obk

add date to Zulip notification subject

We sometimes have discussions in those threads; let's make sure we have a new thread for each new day (which likely means a new problem... or nobody got around to fixing things yet^^).

3 years agoAuto merge of #1731 - RalfJung:ci, r=oli-obk
bors [Tue, 2 Mar 2021 10:51:12 +0000 (10:51 +0000)]
Auto merge of #1731 - RalfJung:ci, r=oli-obk

adjust CI test flags

`RUST_TEST_NOCAPTURE` seems to make no difference except for making compiletest output not use colors any more; `RUST_BACKTRACE` is already set by `compiletest.rs`.

3 years agoadjust CI test flags
Ralf Jung [Tue, 2 Mar 2021 10:24:56 +0000 (11:24 +0100)]
adjust CI test flags

3 years agoAuto merge of #1729 - RalfJung:rustup, r=RalfJung
bors [Tue, 2 Mar 2021 10:11:02 +0000 (10:11 +0000)]
Auto merge of #1729 - RalfJung:rustup, r=RalfJung

rustup; fix tests for new MIR optimization

Somehow https://github.com/rust-lang/rust/pull/78360 manages to mask UB. This would make sense if there were loops or things like that, but there are not, so really this is just very confusing...

3 years agoadd date to Zulip notification subject
Ralf Jung [Tue, 2 Mar 2021 10:09:06 +0000 (11:09 +0100)]
add date to Zulip notification subject

3 years agomake optimized-test-run a bit more like what cargo does
Ralf Jung [Tue, 2 Mar 2021 10:04:35 +0000 (11:04 +0100)]
make optimized-test-run a bit more like what cargo does

3 years agorustup; fix tests for new MIR optimization
Ralf Jung [Tue, 2 Mar 2021 09:44:06 +0000 (10:44 +0100)]
rustup; fix tests for new MIR optimization

3 years agoAuto merge of #1728 - RalfJung:rustup, r=RalfJung
bors [Tue, 2 Mar 2021 09:18:13 +0000 (09:18 +0000)]
Auto merge of #1728 - RalfJung:rustup, r=RalfJung

rustup

Let's see if that version still all works

3 years agorustup
Ralf Jung [Tue, 2 Mar 2021 09:16:44 +0000 (10:16 +0100)]
rustup

3 years agoAuto merge of #1726 - hyd-dev:stub-d, r=RalfJung
bors [Sun, 28 Feb 2021 10:35:54 +0000 (10:35 +0000)]
Auto merge of #1726 - hyd-dev:stub-d, r=RalfJung

cargo-miri: create stub .d files

Thanks `@RalfJung` for the discovery: https://github.com/rust-lang/miri/issues/1724#issuecomment-787115693 :heart:
Fixes #1724.

3 years agoCleanup test-cargo-miri/run-test.py
hyd-dev [Sun, 28 Feb 2021 10:13:17 +0000 (18:13 +0800)]
Cleanup test-cargo-miri/run-test.py

3 years agoDrop MIRIFLAGS from "no rebuild" test
hyd-dev [Sun, 28 Feb 2021 08:10:35 +0000 (16:10 +0800)]
Drop MIRIFLAGS from "no rebuild" test

3 years agoClarify that the "dep-info" is fake and add a newline
hyd-dev [Sun, 28 Feb 2021 07:57:49 +0000 (15:57 +0800)]
Clarify that the "dep-info" is fake and add a newline

3 years agoCreate stub .d files
hyd-dev [Sat, 27 Feb 2021 20:52:27 +0000 (04:52 +0800)]
Create stub .d files

3 years agoAuto merge of #1725 - RalfJung:zst-reborrow, r=RalfJung
bors [Sat, 27 Feb 2021 19:11:05 +0000 (19:11 +0000)]
Auto merge of #1725 - RalfJung:zst-reborrow, r=RalfJung

fix reborrowing of tagged ZST references

`@SkiFire13` [pointed out](https://github.com/rust-lang/rust/pull/82554#issuecomment-787088712) that Miri fails to detect illegal use of empty slices. This PR fixes that. In so doing, it uncovers a flaw of Stacked Borrows: it is incompatible with how the formatting machinery uses `extern type`, so for now we skip reborrowing when we cannot determine the exact size of the pointee.

3 years agofix reborrowing of tagged ZST references
Ralf Jung [Sat, 27 Feb 2021 19:03:51 +0000 (20:03 +0100)]
fix reborrowing of tagged ZST references

3 years agoAuto merge of #1723 - RalfJung:cargo-miri, r=RalfJung
bors [Sat, 27 Feb 2021 12:08:05 +0000 (12:08 +0000)]
Auto merge of #1723 - RalfJung:cargo-miri, r=RalfJung

cargo-miri: avoid unnecessary rebuilds

Fixes https://github.com/rust-lang/miri/issues/1722