]> git.lizzy.rs Git - rust.git/log
rust.git
2 years agorename track-raw-pointers flag to tag-raw-pointers
Ralf Jung [Sat, 13 Nov 2021 20:40:26 +0000 (15:40 -0500)]
rename track-raw-pointers flag to tag-raw-pointers

2 years agoAuto merge of #1904 - camelid:uninit-num, r=RalfJung
bors [Wed, 10 Nov 2021 19:50:47 +0000 (19:50 +0000)]
Auto merge of #1904 - camelid:uninit-num, r=RalfJung

Add flag to check for uninitialized numbers

Closes #1340.

Companion rustc PR that implements this in the Miri engine: rust-lang/rust#88670

r? `@RalfJung`

2 years agorustup
Noah Lev [Wed, 10 Nov 2021 19:38:35 +0000 (11:38 -0800)]
rustup

So that we get rust-lang/rust#88670.

2 years agoAdd test for uninit raw ptrs
Noah Lev [Fri, 29 Oct 2021 23:40:20 +0000 (16:40 -0700)]
Add test for uninit raw ptrs

2 years agoAdd tests for `-Zmiri-check-number-validity`
Noah Lev [Sun, 24 Oct 2021 20:43:47 +0000 (13:43 -0700)]
Add tests for `-Zmiri-check-number-validity`

2 years agoAdd docs for `-Zmiri-check-number-validity`
Noah Lev [Fri, 29 Oct 2021 23:36:41 +0000 (16:36 -0700)]
Add docs for `-Zmiri-check-number-validity`

2 years agoUpdate Miri for detecting uninitialized numbers
Noah Lev [Sun, 3 Oct 2021 23:28:41 +0000 (16:28 -0700)]
Update Miri for detecting uninitialized numbers

This commit adds a `-Zmiri-check-number-initialization` flag to check
that integers and floats are initialized.

This commit also changes some shims to write at type `MaybeUninit<...>`
in order to prevent spurious errors from the uninit check.

2 years agoAuto merge of #1905 - camelid:rustup, r=RalfJung
bors [Tue, 2 Nov 2021 01:44:48 +0000 (01:44 +0000)]
Auto merge of #1905 - camelid:rustup, r=RalfJung

rustup

r? `@RalfJung`

2 years agorustup
Noah Lev [Mon, 1 Nov 2021 22:31:37 +0000 (15:31 -0700)]
rustup

2 years agoAuto merge of #1902 - camelid:r-a, r=RalfJung
bors [Tue, 26 Oct 2021 23:23:31 +0000 (23:23 +0000)]
Auto merge of #1902 - camelid:r-a, r=RalfJung

Add instructions for using rust-analyzer for Miri development

r? `@RalfJung`

2 years agoAdd instructions for using rust-analyzer for Miri development
Noah Lev [Tue, 26 Oct 2021 01:55:40 +0000 (18:55 -0700)]
Add instructions for using rust-analyzer for Miri development

2 years agoAuto merge of #1903 - bjorn3:rustup, r=oli-obk
bors [Tue, 26 Oct 2021 12:29:08 +0000 (12:29 +0000)]
Auto merge of #1903 - bjorn3:rustup, r=oli-obk

rustup

Rustup for https://github.com/rust-lang/rust/pull/85830

2 years agorustup
bjorn3 [Tue, 26 Oct 2021 11:42:03 +0000 (13:42 +0200)]
rustup

2 years agoAuto merge of #1901 - RalfJung:rustup, r=RalfJung
bors [Thu, 21 Oct 2021 13:50:07 +0000 (13:50 +0000)]
Auto merge of #1901 - RalfJung:rustup, r=RalfJung

rustup; add swap_remove test

Adds a test for https://github.com/rust-lang/rust/issues/90055

2 years agorustup; add swap_remove test
Ralf Jung [Thu, 21 Oct 2021 13:49:19 +0000 (09:49 -0400)]
rustup; add swap_remove test

2 years agoAuto merge of #1900 - RalfJung:rustup, r=RalfJung
bors [Wed, 13 Oct 2021 18:04:51 +0000 (18:04 +0000)]
Auto merge of #1900 - RalfJung:rustup, r=RalfJung

rustup

Just making sure the CI failure in https://github.com/rust-lang/miri/runs/3879412292?check_suite_focus=true is truly intermittent.

2 years agorustup
Ralf Jung [Wed, 13 Oct 2021 18:04:14 +0000 (14:04 -0400)]
rustup

2 years agoAuto merge of #1898 - Kixunil:patch-1, r=RalfJung
bors [Tue, 12 Oct 2021 17:58:26 +0000 (17:58 +0000)]
Auto merge of #1898 - Kixunil:patch-1, r=RalfJung

Document threading support a bit more

This adds a few known limitations around threading to the README and suggests the users to look into GitHub issues to learn more.

Addresses https://github.com/rust-lang/miri/issues/1388#issuecomment-939317828

2 years agoRemove vague statement from README
Martin Habovštiak [Tue, 12 Oct 2021 16:46:23 +0000 (18:46 +0200)]
Remove vague statement from README

Addresses https://github.com/rust-lang/miri/pull/1898#discussion_r727274293

2 years agoAuto merge of #1899 - RalfJung:rustup, r=RalfJung
bors [Tue, 12 Oct 2021 15:39:54 +0000 (15:39 +0000)]
Auto merge of #1899 - RalfJung:rustup, r=RalfJung

rustup

2 years agorustup
Ralf Jung [Tue, 12 Oct 2021 15:39:06 +0000 (11:39 -0400)]
rustup

2 years agoTypo fixes
Martin Habovštiak [Tue, 12 Oct 2021 09:09:43 +0000 (11:09 +0200)]
Typo fixes

Co-authored-by: Ralf Jung <post@ralfj.de>
2 years agoDocument threading support a bit more
Martin Habovštiak [Sat, 9 Oct 2021 20:19:14 +0000 (22:19 +0200)]
Document threading support a bit more

This adds a few known limitations around threading to the README and suggests the users to look into GitHub issues to learn more.

2 years agoAuto merge of #1897 - camelid:rustup, r=RalfJung
bors [Thu, 7 Oct 2021 19:48:53 +0000 (19:48 +0000)]
Auto merge of #1897 - camelid:rustup, r=RalfJung

rustup

cc rust-lang/rust#89612

r? `@RalfJung`

2 years agorustup
Noah Lev [Thu, 7 Oct 2021 18:52:11 +0000 (11:52 -0700)]
rustup

2 years agoAuto merge of #1896 - camelid:rustup, r=RalfJung
bors [Tue, 5 Oct 2021 20:28:34 +0000 (20:28 +0000)]
Auto merge of #1896 - camelid:rustup, r=RalfJung

rustup

Update to the `HEAD` commit of rust-lang/rust and fix test failure.

r? `@RalfJung`

2 years agorustup
Noah Lev [Tue, 5 Oct 2021 20:13:06 +0000 (13:13 -0700)]
rustup

Update to the `HEAD` commit of rust-lang/rust and fix test failure.

2 years agoAuto merge of #1895 - a1phyr:update_deps, r=RalfJung
bors [Fri, 1 Oct 2021 21:36:47 +0000 (21:36 +0000)]
Auto merge of #1895 - a1phyr:update_deps, r=RalfJung

Update dependencies

2 years agoUpdate dependencies
Benoît du Garreau [Fri, 1 Oct 2021 21:08:58 +0000 (23:08 +0200)]
Update dependencies

2 years agoAuto merge of #1885 - DrMeepster:global_allocator, r=RalfJung
bors [Thu, 30 Sep 2021 01:37:38 +0000 (01:37 +0000)]
Auto merge of #1885 - DrMeepster:global_allocator, r=RalfJung

add support for `#[global_allocator]`

This PR adds support for custom global allocators. Unfortunately, the code given in #1207 still causes errors when used with box. I believe this is because Box is special-cased in miri and stacked borrows.

2 years agoimplement `#[global_allocator]`
DrMeepster [Fri, 3 Sep 2021 03:43:56 +0000 (20:43 -0700)]
implement `#[global_allocator]`

2 years agoAuto merge of #1894 - RalfJung:miri, r=RalfJung
bors [Mon, 27 Sep 2021 20:00:54 +0000 (20:00 +0000)]
Auto merge of #1894 - RalfJung:miri, r=RalfJung

rustup

2 years agorustup
Ralf Jung [Mon, 27 Sep 2021 19:59:18 +0000 (15:59 -0400)]
rustup

2 years agoAuto merge of #1893 - RalfJung:arg-pass, r=RalfJung
bors [Fri, 24 Sep 2021 14:47:24 +0000 (14:47 +0000)]
Auto merge of #1893 - RalfJung:arg-pass, r=RalfJung

some more Windows argument passing tests

2 years agosome more Windows argument passing tests
Ralf Jung [Fri, 24 Sep 2021 14:13:29 +0000 (10:13 -0400)]
some more Windows argument passing tests

2 years agoAuto merge of #1891 - ChrisDenton:win-args, r=RalfJung
bors [Wed, 22 Sep 2021 20:10:48 +0000 (20:10 +0000)]
Auto merge of #1891 - ChrisDenton:win-args, r=RalfJung

Correct Windows argument handling

Previously the command line string would have been incorrectly constructed if argv[0] contained a doublequote (`"`) or ended in a trailing backslash (`\`). This is a very rare edge case because, by convention, argv[0] is the path to the application and Windows file names cannot contain doublequotes.

Fixes #1881

2 years agoApply review changes
Chris Denton [Wed, 22 Sep 2021 19:46:20 +0000 (20:46 +0100)]
Apply review changes

2 years agoCorrect Windows argument handling
Chris Denton [Sat, 18 Sep 2021 15:57:31 +0000 (16:57 +0100)]
Correct Windows argument handling

Previously the command line string would have been incorrectly constructed if argv[0] contained a doublequote (`"`) or ended in a trailing backslash (`\`). This is a very rare edge case because, by convention, argv[0] is the path to the application and Windows file names cannot contain doublequotes.

Fixes #1881

2 years agoAuto merge of #1890 - Smittyvb:cargo-miri-short-alias, r=RalfJung
bors [Tue, 14 Sep 2021 18:17:44 +0000 (18:17 +0000)]
Auto merge of #1890 - Smittyvb:cargo-miri-short-alias, r=RalfJung

One character aliases for cargo-miri run/test

The main `cargo` command supports `cargo r` as an alias for `cargo run`, and `cargo t` as an alias for `cargo test`. This adds support to them in `cargo-miri` for consistency.

2 years agoDon't use seperate alias test
Smitty [Mon, 13 Sep 2021 22:05:01 +0000 (18:05 -0400)]
Don't use seperate alias test

2 years agoOne character aliases for cargo-miri run/test
Smitty [Sat, 11 Sep 2021 16:00:59 +0000 (12:00 -0400)]
One character aliases for cargo-miri run/test

The main `cargo` command supports `cargo r` as an alias for
`cargo run`, and `cargo t` as an alias for `cargo test`. This adds
support to them in cargo-miri for consistency.

2 years agoAuto merge of #1889 - hyd-dev:rustup, r=RalfJung
bors [Sat, 11 Sep 2021 15:47:22 +0000 (15:47 +0000)]
Auto merge of #1889 - hyd-dev:rustup, r=RalfJung

Add `#[allow(dead_code)]` in some tests

There are some new dead code warnings in the tests: https://github.com/rust-lang/miri/runs/3573853719?check_suite_focus=true#step:8:290
I guess this is related to https://github.com/rust-lang/rust/pull/85200, and add `#[allow(dead_code)]` to suppress them in this PR (I assume this is fine because https://github.com/rust-lang/rust/pull/85200 also suppresses warnings in rustc's tests).

2 years agoAdd `#[allow(dead_code)]` in some tests
hyd-dev [Sat, 11 Sep 2021 10:58:57 +0000 (18:58 +0800)]
Add `#[allow(dead_code)]` in some tests

2 years agoAuto merge of #1888 - hyd-dev:rustup, r=RalfJung
bors [Thu, 9 Sep 2021 18:38:56 +0000 (18:38 +0000)]
Auto merge of #1888 - hyd-dev:rustup, r=RalfJung

`rustc_mir` -> `rustc_const_eval`

This should fix the "[can't find crate for `rustc_mir`](https://github.com/rust-lang/rust/issues/88768)" build failure.

2 years ago`rustc_mir` -> `rustc_const_eval`
hyd-dev [Thu, 9 Sep 2021 09:36:39 +0000 (17:36 +0800)]
`rustc_mir` -> `rustc_const_eval`

2 years agoAuto merge of #1884 - DrMeepster:start, r=RalfJung
bors [Wed, 8 Sep 2021 19:43:41 +0000 (19:43 +0000)]
Auto merge of #1884 - DrMeepster:start, r=RalfJung

add support for `#[start]`

This PR adds support for the `#[start]` attribute and fixes #1825.

It also renames `eval_main` to `eval_entry` to reflect that it can evaluate any entry function.

2 years agoAuto merge of #1886 - camelid:stage2, r=RalfJung
bors [Mon, 6 Sep 2021 16:22:46 +0000 (16:22 +0000)]
Auto merge of #1886 - camelid:stage2, r=RalfJung

Stage 2 seems to be required after all

Reverts most of bb59980b2da10437ce1ee4d53bdb3feb1f4a9c5f.

See the discussion starting at https://github.com/rust-lang/miri/issues/1340#issuecomment-913043714 for more.

2 years agoAuto merge of #1887 - hyd-dev:rustup, r=RalfJung
bors [Mon, 6 Sep 2021 16:06:33 +0000 (16:06 +0000)]
Auto merge of #1887 - hyd-dev:rustup, r=RalfJung

`rustc_target::abi::LayoutOf` -> `rustc_middle::ty::layout::LayoutOf`

This should  <!---->fix<!----> rust-lang/rust#88671.

2 years ago`rustc_target::abi::LayoutOf` -> `rustc_middle::ty::layout::LayoutOf`
hyd-dev [Mon, 6 Sep 2021 15:05:48 +0000 (23:05 +0800)]
`rustc_target::abi::LayoutOf` -> `rustc_middle::ty::layout::LayoutOf`

2 years agoStage 2 seems to be required after all
Noah Lev [Sun, 5 Sep 2021 17:05:43 +0000 (10:05 -0700)]
Stage 2 seems to be required after all

Reverts most of bb59980b2da10437ce1ee4d53bdb3feb1f4a9c5f.

2 years agoremove commented out code
DrMeepster [Thu, 2 Sep 2021 22:45:52 +0000 (15:45 -0700)]
remove commented out code

2 years agoadd support for #[start]
DrMeepster [Thu, 2 Sep 2021 22:41:10 +0000 (15:41 -0700)]
add support for #[start]

2 years agoAuto merge of #1883 - smoelius:master, r=RalfJung
bors [Wed, 1 Sep 2021 18:13:26 +0000 (18:13 +0000)]
Auto merge of #1883 - smoelius:master, r=RalfJung

Update compiletest_rs dependency

Hello. I am trying to [update some Clippy dependencies](https://github.com/rust-lang/rust/pull/88517) in the rust repo. To help keep the overall number of dependencies down, I was asked to submit a PR here to update `compiletest_rs` to from `0.6.0` to  `0.7.0`. I ran CI on my fork and the update didn't seem to cause any problems.

2 years agoUpdate compiletest_rs dependency
Samuel E. Moelius III [Wed, 1 Sep 2021 12:53:51 +0000 (08:53 -0400)]
Update compiletest_rs dependency

2 years agoAuto merge of #1879 - oli-obk:gitpod, r=RalfJung
bors [Mon, 30 Aug 2021 15:33:59 +0000 (15:33 +0000)]
Auto merge of #1879 - oli-obk:gitpod, r=RalfJung

Try out gitpod

At https://gitpod.io/#https://github.com/rust-lang/miri one can edit miri in the browser and run it and everything.

I'm experimenting with this here as a low-impact version of trying it out on the whole rustc repo. This .gitpod file should cause the user to land in a shell that can run ./miri test immediately without any additional prep

2 years agoAuto merge of #1882 - RalfJung:rustup, r=RalfJung
bors [Mon, 30 Aug 2021 14:37:11 +0000 (14:37 +0000)]
Auto merge of #1882 - RalfJung:rustup, r=RalfJung

rustup

2 years agorustup
Ralf Jung [Mon, 30 Aug 2021 14:35:34 +0000 (10:35 -0400)]
rustup

2 years agoAuto merge of #1880 - hyd-dev:rustup, r=oli-obk
bors [Thu, 26 Aug 2021 08:32:20 +0000 (08:32 +0000)]
Auto merge of #1880 - hyd-dev:rustup, r=oli-obk

Move `#[allow(unreachable_code)]` in `tests/run-pass/generator.rs`

The warning now appears on `yield 2;` instead of `drop(x)`: https://github.com/rust-lang/miri/runs/3429959882?check_suite_focus=true#step:8:265

`yield 2;` seems indeed unreachable so I adjusted the `#[allow]`.

2 years agoMove `#[allow(unreachable_code)]` in `tests/run-pass/generator.rs`
hyd-dev [Thu, 26 Aug 2021 08:16:43 +0000 (16:16 +0800)]
Move `#[allow(unreachable_code)]` in `tests/run-pass/generator.rs`

2 years agoTry out gitpod
Oli Scherer [Tue, 24 Aug 2021 15:03:36 +0000 (15:03 +0000)]
Try out gitpod

2 years agoAuto merge of #1877 - hyd-dev:rustup, r=RalfJung
bors [Tue, 24 Aug 2021 12:39:59 +0000 (12:39 +0000)]
Auto merge of #1877 - hyd-dev:rustup, r=RalfJung

Add `#[allow(unreachable_code)]` to `drop(x)` in `tests/run-pass/generator.rs`

The test [starts to trigger this warning](https://github.com/rust-lang/miri/runs/3408355084?check_suite_focus=true#step:8:264) (I guess it's caused by rust-lang/rust#85556). The warning seems correct, but the unreachable code in that test also seems reasonable.

2 years agoAdd `#[allow(unreachable_code)]` to `drop(x)` in `tests/run-pass/generator.rs`
hyd-dev [Tue, 24 Aug 2021 10:42:43 +0000 (18:42 +0800)]
Add `#[allow(unreachable_code)]` to `drop(x)` in `tests/run-pass/generator.rs`

2 years agoAuto merge of #1875 - niluxv:volatile_set_memory_intrinsic, r=RalfJung
bors [Mon, 23 Aug 2021 10:55:48 +0000 (10:55 +0000)]
Auto merge of #1875 - niluxv:volatile_set_memory_intrinsic, r=RalfJung

Add support for the `volatile_set_memory` intrinsic

Add support for the unstable `volatile_set_memory` intrinsic

(Runtime behaviour and soundness requirements for `volatile_set_memory` are identical to those of `write_bytes`, so supporting this intrinsic is trivial.)

2 years agoAdd test for `volatile_set_memory`
niluxv [Mon, 23 Aug 2021 10:42:13 +0000 (12:42 +0200)]
Add test for `volatile_set_memory`

2 years agoAuto merge of #1874 - steffahn:a_an, r=RalfJung
bors [Sun, 22 Aug 2021 16:31:12 +0000 (16:31 +0000)]
Auto merge of #1874 - steffahn:a_an, r=RalfJung

Fix typos “a”→“an”

See rust-lang/rust#88230

2 years agoFix a typo “an”→“a”
Frank Steffahn [Sun, 22 Aug 2021 16:07:01 +0000 (18:07 +0200)]
Fix a typo “an”→“a”

2 years agoAdd support for the `volatile_set_memory` intrinsic
niluxv [Sun, 22 Aug 2021 15:48:31 +0000 (17:48 +0200)]
Add support for the `volatile_set_memory` intrinsic

Runtime behaviour and soundness requirements are identical to `write_bytes`.

2 years agoFix typos “a”→“an”
Frank Steffahn [Sun, 22 Aug 2021 12:28:05 +0000 (14:28 +0200)]
Fix typos “a”→“an”

2 years agoAuto merge of #1872 - RalfJung:rustup, r=RalfJung
bors [Mon, 16 Aug 2021 15:35:14 +0000 (15:35 +0000)]
Auto merge of #1872 - RalfJung:rustup, r=RalfJung

rustup

2 years agollvm_asm → asm
Ralf Jung [Mon, 16 Aug 2021 15:34:48 +0000 (17:34 +0200)]
llvm_asm → asm

2 years agorustup
Ralf Jung [Mon, 16 Aug 2021 15:09:21 +0000 (17:09 +0200)]
rustup

2 years agoAuto merge of #1871 - hyd-dev:no-mangle-method, r=RalfJung
bors [Sun, 15 Aug 2021 11:41:00 +0000 (11:41 +0000)]
Auto merge of #1871 - hyd-dev:no-mangle-method, r=RalfJung

Update tests for `#[no_mangle]` on associated functions

https://github.com/rust-lang/rust/pull/86492 has landed:
- The code in https://github.com/rust-lang/miri/issues/1837 starts to work (even without `AssocFn::foo();` at line 12) in Miri.
- `pub` is not necessary for `#[no_mangle]` associated functions in `test-cargo-miri/exported-symbol-dep/src/lib.rs` anymore.

Closes https://github.com/rust-lang/miri/issues/1837.

2 years agoUpdate tests for `#[no_mangle]` associated functions
hyd-dev [Sun, 15 Aug 2021 09:18:00 +0000 (17:18 +0800)]
Update tests for `#[no_mangle]` associated functions

2 years agoAuto merge of #1870 - RalfJung:rustup, r=RalfJung
bors [Sat, 14 Aug 2021 12:49:46 +0000 (12:49 +0000)]
Auto merge of #1870 - RalfJung:rustup, r=RalfJung

rustup

Cc https://github.com/rust-lang/rust/issues/88016

2 years agorustup
Ralf Jung [Sat, 14 Aug 2021 12:47:57 +0000 (14:47 +0200)]
rustup

2 years agoAuto merge of #1868 - hyd-dev:rustup, r=RalfJung
bors [Sat, 7 Aug 2021 13:16:22 +0000 (13:16 +0000)]
Auto merge of #1868 - hyd-dev:rustup, r=RalfJung

Fix tests for `C-unwind` ABI changes

cc https://github.com/rust-lang/rust/issues/87778

2 years agoAuto merge of #1865 - rust-lang:test-cargo-miri, r=RalfJung
bors [Sat, 7 Aug 2021 12:55:06 +0000 (12:55 +0000)]
Auto merge of #1865 - rust-lang:test-cargo-miri, r=RalfJung

improve test-cargo-miri output

2 years agoFix tests for `C-unwind` ABI changes
hyd-dev [Thu, 5 Aug 2021 09:10:30 +0000 (17:10 +0800)]
Fix tests for `C-unwind` ABI changes

2 years agoimprove test-cargo-miri output
Ralf Jung [Wed, 4 Aug 2021 09:25:33 +0000 (11:25 +0200)]
improve test-cargo-miri output

2 years agoAuto merge of #1864 - hyd-dev:rustup, r=RalfJung
bors [Wed, 4 Aug 2021 09:25:18 +0000 (09:25 +0000)]
Auto merge of #1864 - hyd-dev:rustup, r=RalfJung

Update cargo-miri test

The doctest output was [changed](https://github.com/rust-lang/miri/runs/3238758260?check_suite_focus=true#step:8:1263) (probably by https://github.com/rust-lang/cargo/pull/9730). Update `test-cargo-miri/test.default.stdout.ref` to match the new output.

2 years agoUpdate cargo-miri test
hyd-dev [Wed, 4 Aug 2021 08:46:11 +0000 (16:46 +0800)]
Update cargo-miri test

2 years agoAuto merge of #1854 - RalfJung:partial-ptr-overwrite, r=RalfJung
bors [Mon, 2 Aug 2021 16:00:43 +0000 (16:00 +0000)]
Auto merge of #1854 - RalfJung:partial-ptr-overwrite, r=RalfJung

adjust for ERR_ON_PARTIAL_PTR_OVERWRITE

The Miri side of https://github.com/rust-lang/rust/pull/87248

2 years agorustup
Ralf Jung [Mon, 2 Aug 2021 15:59:48 +0000 (17:59 +0200)]
rustup

2 years agodocify some comments
Ralf Jung [Sun, 18 Jul 2021 13:22:09 +0000 (15:22 +0200)]
docify some comments

2 years agoadjust for ERR_ON_PARTIAL_PTR_OVERWRITE
Ralf Jung [Sun, 18 Jul 2021 10:47:04 +0000 (12:47 +0200)]
adjust for ERR_ON_PARTIAL_PTR_OVERWRITE

2 years agoAuto merge of #1863 - hyd-dev:parallel-compiler, r=RalfJung
bors [Fri, 30 Jul 2021 14:38:10 +0000 (14:38 +0000)]
Auto merge of #1863 - hyd-dev:parallel-compiler, r=RalfJung

Use `Lrc` instead of `Rc` in `MiriCompilerCalls::config()`

The `used_crate_source` query defines its return type as [`Lrc<CrateSource>`](https://github.com/rust-lang/rust/blob/1195bea5a7b73e079fa14b37ac7e375fc77d368a/compiler/rustc_middle/src/query/mod.rs#L1418), which would be `Arc` when `parallel-compiler = true`.

I assume this fixes rust-lang/rust#87623. I didn't test that locally -- I'm not interested in `parallel-compiler = true` enough to be willing to recompile rustc with that configuration to test it, but I'm submitting this in case it might be useful for `parallel-compiler = true` users.

2 years agoUse `Lrc` instead of `Rc` in `MiriCompilerCalls::config()`
hyd-dev [Fri, 30 Jul 2021 13:28:34 +0000 (21:28 +0800)]
Use `Lrc` instead of `Rc` in `MiriCompilerCalls::config()`

2 years agoAuto merge of #1861 - RalfJung:rustup, r=RalfJung
bors [Tue, 27 Jul 2021 16:39:12 +0000 (16:39 +0000)]
Auto merge of #1861 - RalfJung:rustup, r=RalfJung

rustup

Cc https://github.com/rust-lang/rust/issues/87518

2 years agorustup
Ralf Jung [Tue, 27 Jul 2021 16:38:35 +0000 (18:38 +0200)]
rustup

2 years agoAuto merge of #1858 - RalfJung:thread-leaks, r=oli-obk
bors [Tue, 27 Jul 2021 12:23:56 +0000 (12:23 +0000)]
Auto merge of #1858 - RalfJung:thread-leaks, r=oli-obk

also ignore 'thread leaks' with -Zmiri-ignore-leaks

This is a step towards https://github.com/rust-lang/miri/issues/1371. The remaining hard part would be supporting checking for memory leaks when there are threads still running. For now we elegantly avoid this problem by using the same flag to control both of these checks. :)

2 years agomake sure we only terminate main thread once TLS is initialized
Ralf Jung [Tue, 27 Jul 2021 12:05:37 +0000 (14:05 +0200)]
make sure we only terminate main thread once TLS is initialized

2 years agomake the loop infinite
Ralf Jung [Mon, 26 Jul 2021 19:54:28 +0000 (21:54 +0200)]
make the loop infinite

2 years agono concurrency on windows
Ralf Jung [Sun, 25 Jul 2021 12:38:02 +0000 (14:38 +0200)]
no concurrency on windows

2 years agoAuto merge of #1859 - RalfJung:global-system-mixup, r=RalfJung
bors [Sun, 25 Jul 2021 12:37:03 +0000 (12:37 +0000)]
Auto merge of #1859 - RalfJung:global-system-mixup, r=RalfJung

add test for mixing up System and Global memory

2 years agoadd test for mixing up System and Global memory
Ralf Jung [Sun, 25 Jul 2021 12:33:41 +0000 (14:33 +0200)]
add test for mixing up System and Global memory

2 years agotell users how to disable the leak check
Ralf Jung [Sun, 25 Jul 2021 12:19:57 +0000 (14:19 +0200)]
tell users how to disable the leak check

2 years agoalso ignore 'thread leaks' with -Zmiri-ignore-leaks
Ralf Jung [Sun, 25 Jul 2021 12:08:12 +0000 (14:08 +0200)]
also ignore 'thread leaks' with -Zmiri-ignore-leaks

2 years agoAuto merge of #1856 - RalfJung:no-mir, r=RalfJung
bors [Sun, 25 Jul 2021 09:50:06 +0000 (09:50 +0000)]
Auto merge of #1856 - RalfJung:no-mir, r=RalfJung

show proper error when using a sysroot without MIR

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

2 years agoAuto merge of #1838 - atsmtat:fs-isolation, r=RalfJung
bors [Sun, 25 Jul 2021 09:34:02 +0000 (09:34 +0000)]
Auto merge of #1838 - atsmtat:fs-isolation, r=RalfJung

Fix use of deprecated `check_no_isolation` in posix fs shims

Update posix fs shims to use new API `reject_in_isolation`, which
allows rejection with error code instead of always forcing abort.
Error code chosen for each op is the most appropriate one from the
list in corresponding syscall's manual.

Updated helper APIs to not use quotes (\`) around input name while
preparing the message. This allows callers to pass multi-word string
like -- "\`read\` from stdin".

Cc https://github.com/rust-lang/miri/issues/1034

2 years agoMove shim argument checks before isolation check
Smit Soni [Wed, 21 Jul 2021 05:27:33 +0000 (22:27 -0700)]
Move shim argument checks before isolation check

This allows catching extremely incorrect arguments before rejecting
due to isolation.