]> git.lizzy.rs Git - rust.git/log
rust.git
3 years agoformat much of Miri
Ralf Jung [Sun, 16 May 2021 09:28:01 +0000 (11:28 +0200)]
format much of Miri

3 years agoconfigure rustfmt; fmt cargo-miri
Ralf Jung [Sun, 16 May 2021 09:10:27 +0000 (11:10 +0200)]
configure rustfmt; fmt cargo-miri

3 years agoAuto merge of #1799 - RalfJung:rustup, r=RalfJung
bors [Sat, 15 May 2021 13:33:26 +0000 (13:33 +0000)]
Auto merge of #1799 - RalfJung:rustup, r=RalfJung

rustup

Also fixes the line ending in our version file.

3 years agorustup
Ralf Jung [Sat, 15 May 2021 13:14:19 +0000 (15:14 +0200)]
rustup

3 years agoAuto merge of #1798 - RalfJung:nogit, r=oli-obk
bors [Sat, 15 May 2021 13:14:14 +0000 (13:14 +0000)]
Auto merge of #1798 - RalfJung:nogit, r=oli-obk

support building Miri outside a git repo

Fixes https://github.com/rust-lang/rust/issues/84182

`@semarie` this should fix your problem... but I think any version of Miri actually shipped to users should have the proper git version information embedded, so I am not sure if this is the right fix. How do you do this for rustc proper? Even stable builds usually have a git version:
```
$ rustc +stable --version
rustc 1.51.0 (2fd73fabe 2021-03-23)
```

3 years agosupport building Miri outside a git repo
Ralf Jung [Sat, 15 May 2021 12:17:30 +0000 (14:17 +0200)]
support building Miri outside a git repo

3 years agoAuto merge of #1794 - cbeuw:83813, r=RalfJung
bors [Wed, 12 May 2021 14:57:42 +0000 (14:57 +0000)]
Auto merge of #1794 - cbeuw:83813, r=RalfJung

Sync with rustc_span changes

rust-lang/rust#83813 made some changes to SourceMap and RealFileName. Now to get a string from a `rustc_span::FileName`, we need to specify if we would like the local filesystem path or remapped path via `--remap-path-prefix`. There seems to be only one place in miri that requires change.

3 years agoUpdate rust commit sha
Andy Wang [Wed, 12 May 2021 13:45:12 +0000 (14:45 +0100)]
Update rust commit sha

3 years agoPrefer remapped filename in backtrace to match rustc behaviour
Andy Wang [Wed, 12 May 2021 13:38:50 +0000 (14:38 +0100)]
Prefer remapped filename in backtrace to match rustc behaviour

3 years agoAuto merge of #1792 - RalfJung:rustup, r=RalfJung
bors [Tue, 11 May 2021 13:33:21 +0000 (13:33 +0000)]
Auto merge of #1792 - RalfJung:rustup, r=RalfJung

rustup

3 years agorustup
Ralf Jung [Tue, 11 May 2021 13:32:05 +0000 (15:32 +0200)]
rustup

3 years agoAuto merge of #1790 - hyd-dev:rustup, r=RalfJung
bors [Sat, 8 May 2021 09:43:01 +0000 (09:43 +0000)]
Auto merge of #1790 - hyd-dev:rustup, r=RalfJung

Update pointer error messages

cc rust-lang/rust#85027

3 years agoUpdate pointer error messages
hyd-dev [Sat, 8 May 2021 07:33:27 +0000 (15:33 +0800)]
Update pointer error messages

3 years agoAuto merge of #1789 - RalfJung:array-to-elem, r=RalfJung
bors [Fri, 7 May 2021 07:25:41 +0000 (07:25 +0000)]
Auto merge of #1789 - RalfJung:array-to-elem, r=RalfJung

stacked borrows: ensure array-to-elem casts behave correctly

When "as"-casting an entire array, that should create a raw ptr usable for all elements in the array, even if we immediately cast to the element type.

3 years agostacked borrows: ensure array-to-elem casts behave correctly
Ralf Jung [Fri, 7 May 2021 07:24:33 +0000 (09:24 +0200)]
stacked borrows: ensure array-to-elem casts behave correctly

3 years agoAuto merge of #1788 - hyd-dev:rustup, r=RalfJung
bors [Tue, 4 May 2021 08:27:00 +0000 (08:27 +0000)]
Auto merge of #1788 - hyd-dev:rustup, r=RalfJung

`encountered a NULL reference` -> `encountered a null reference`

It's changed from "NULL" to "null" (probably by rust-lang/rust#84842) in `rustc`, and causing some test failures:
https://github.com/rust-lang/miri/runs/2498333632#step:8:640

3 years agoAuto merge of #1787 - DianaNites:patch-1, r=RalfJung
bors [Tue, 4 May 2021 08:08:31 +0000 (08:08 +0000)]
Auto merge of #1787 - DianaNites:patch-1, r=RalfJung

Fix broken self-link

3 years ago`encountered a NULL reference` -> `encountered a null reference`
hyd-dev [Tue, 4 May 2021 07:53:19 +0000 (15:53 +0800)]
`encountered a NULL reference` -> `encountered a null reference`

3 years agoFix dead self-link
Diana [Tue, 4 May 2021 02:52:09 +0000 (22:52 -0400)]
Fix dead self-link

3 years agoAuto merge of #1785 - Smittyvb:fast-math-ub, r=RalfJung
bors [Mon, 3 May 2021 17:32:50 +0000 (17:32 +0000)]
Auto merge of #1785 - Smittyvb:fast-math-ub, r=RalfJung

Throw UB if f*_fast intrinsic called with non-finite value

Calling these intrinsics with non-finite values is undefined behaviour, since they result in `f*` intrinsics in LLVM with the `fast` flag, and `fast` math on non-finite values results in `poison` values. (technically LLVM only considers it UB upon _using_ the value, but that shouldn't make much of a difference)

3 years agoSimplify finiteness checking
Smitty [Mon, 3 May 2021 14:08:42 +0000 (10:08 -0400)]
Simplify finiteness checking

3 years agotest for infinite value in f*_fast
Smitty [Mon, 3 May 2021 13:56:51 +0000 (09:56 -0400)]
test for infinite value in f*_fast

3 years agoAuto merge of #1786 - RalfJung:rustup, r=RalfJung
bors [Mon, 3 May 2021 09:25:41 +0000 (09:25 +0000)]
Auto merge of #1786 - RalfJung:rustup, r=RalfJung

fix checking os_family

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

3 years agoadjust for different 'yield' hint on aarch64
Ralf Jung [Mon, 3 May 2021 09:25:05 +0000 (11:25 +0200)]
adjust for different 'yield' hint on aarch64

3 years agofix checking os_family
Ralf Jung [Mon, 3 May 2021 07:57:13 +0000 (09:57 +0200)]
fix checking os_family

3 years agoUB if f*_fast intrinsic called with nonfinite value
Smitty [Sun, 2 May 2021 16:25:00 +0000 (12:25 -0400)]
UB if f*_fast intrinsic called with nonfinite value

3 years agoAuto merge of #1784 - hyd-dev:harness-false, r=RalfJung
bors [Sat, 1 May 2021 16:07:48 +0000 (16:07 +0000)]
Auto merge of #1784 - hyd-dev:harness-false, r=RalfJung

Use `harness = false` instead of `#![feature(custom_test_frameworks)]`

Quoting from the comment in `tests/compiletest.rs`:
> Custom test runner, to avoid libtest being wrapped around compiletest which wraps libtest.

I believe `harness = false` is more suitable for that purpose.

I have verified that both `./miri test` and `LD_LIBRARY_PATH=$PWD/build/x86_64-unknown-linux-gnu/stage2/lib PATH=$PWD/build/bin:$PATH ./x.py test src/tools/miri` work well.

3 years agoUse `harness = false` instead of `#![feature(custom_test_frameworks)]`
hyd-dev [Fri, 30 Apr 2021 09:22:24 +0000 (17:22 +0800)]
Use `harness = false` instead of `#![feature(custom_test_frameworks)]`

3 years agoAuto merge of #1783 - hyd-dev:rustup, r=RalfJung
bors [Fri, 30 Apr 2021 14:08:13 +0000 (14:08 +0000)]
Auto merge of #1783 - hyd-dev:rustup, r=RalfJung

Rustup for rust-lang/rust#84401

cc rust-lang/rust#84741

3 years agoRustup for rust-lang/rust#84401
hyd-dev [Fri, 30 Apr 2021 10:50:40 +0000 (18:50 +0800)]
Rustup for rust-lang/rust#84401

3 years agoAuto merge of #1781 - RalfJung:rustup, r=RalfJung
bors [Sun, 25 Apr 2021 14:58:18 +0000 (14:58 +0000)]
Auto merge of #1781 - RalfJung:rustup, r=RalfJung

rustup

3 years agorustup
Ralf Jung [Sun, 25 Apr 2021 14:57:48 +0000 (16:57 +0200)]
rustup

3 years agoAuto merge of #1769 - RalfJung:remove-compat, r=oli-obk
bors [Thu, 22 Apr 2021 07:47:56 +0000 (07:47 +0000)]
Auto merge of #1769 - RalfJung:remove-compat, r=oli-obk

remove compatibility code for passing miri flags via cargo arguments

With https://github.com/rust-lang/miri/pull/1540, we deprecated `cargo miri test -- -Zmiri-disable-stacked-borrows` as a style of passing flags to Miri, introducing `MIRIFLAGS="-Zmiri-disable-stacked-borrows" cargo miri test` instead. This made `cargo miri` more compatible with `cargo`; both now behave the same in terms of argument parsing.

However, to avoid breaking things, I introduced some backwards compatibility hack such that the old way would still work. Six months later, I think it is time to remove that hack.

3 years agoAuto merge of #1778 - RalfJung:thread-local-const-init, r=RalfJung
bors [Tue, 20 Apr 2021 08:01:46 +0000 (08:01 +0000)]
Auto merge of #1778 - RalfJung:thread-local-const-init, r=RalfJung

test thread_local_const_init

Blocked on https://github.com/rust-lang/rust/pull/84291

3 years agomake TLS-drop-test more cross-platform
Ralf Jung [Tue, 20 Apr 2021 07:59:26 +0000 (09:59 +0200)]
make TLS-drop-test more cross-platform

3 years agoAuto merge of #1779 - RalfJung:cargo-miri-xargo, r=RalfJung
bors [Tue, 20 Apr 2021 07:41:41 +0000 (07:41 +0000)]
Auto merge of #1779 - RalfJung:cargo-miri-xargo, r=RalfJung

fix MIRI_BE_RUSTC value during sysroot build

`@hyd-dev` pointed out that `MIRI_BE_RUSTC` is set to an incorrect value during the xargo sysroot build. This fixes that.

3 years agorustup
Ralf Jung [Tue, 20 Apr 2021 07:40:18 +0000 (09:40 +0200)]
rustup

3 years agofix MIRI_BE_RUSTC value during sysroot build
Ralf Jung [Sun, 18 Apr 2021 10:29:31 +0000 (12:29 +0200)]
fix MIRI_BE_RUSTC value during sysroot build

3 years agotest thread_local_const_init
Ralf Jung [Sun, 18 Apr 2021 08:57:56 +0000 (10:57 +0200)]
test thread_local_const_init

3 years agoAuto merge of #1777 - crlf0710:fix_compilation, r=RalfJung
bors [Fri, 16 Apr 2021 16:46:05 +0000 (16:46 +0000)]
Auto merge of #1777 - crlf0710:fix_compilation, r=RalfJung

Remove `main_fn.rs` test.

Fixes build error caused by https://github.com/rust-lang/rust/issues/84240 .

3 years agoRemove `main_fn.rs` test.
Charles Lew [Fri, 16 Apr 2021 14:22:01 +0000 (22:22 +0800)]
Remove `main_fn.rs` test.

3 years agoAuto merge of #1775 - ABouttefeux:master, r=RalfJung
bors [Thu, 15 Apr 2021 08:19:18 +0000 (08:19 +0000)]
Auto merge of #1775 - ABouttefeux:master, r=RalfJung

Fix failing test after merge of PR rust#83948

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

3 years agochange rust version to head
Aliénore Bouttefeux [Thu, 15 Apr 2021 08:17:54 +0000 (10:17 +0200)]
change rust version to head

3 years agoallow deref of null ptr in test
Aliénore Bouttefeux [Thu, 15 Apr 2021 08:00:39 +0000 (10:00 +0200)]
allow deref of null ptr in test

3 years agoAuto merge of #1774 - RalfJung:contrib, r=RalfJung
bors [Mon, 12 Apr 2021 17:01:45 +0000 (17:01 +0000)]
Auto merge of #1774 - RalfJung:contrib, r=RalfJung

fix CONTRIBUTING example

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

3 years agofix CONTRIBUTING example
Ralf Jung [Mon, 12 Apr 2021 17:01:10 +0000 (19:01 +0200)]
fix CONTRIBUTING example

3 years agoAuto merge of #1772 - RalfJung:less-timeout-checking, r=RalfJung
bors [Sun, 11 Apr 2021 14:59:27 +0000 (14:59 +0000)]
Auto merge of #1772 - RalfJung:less-timeout-checking, r=RalfJung

only check timeouts when a thread yields

Currently, we check for expired timeouts after each step of execution. That seems excessive. This changes the scheduler to only check for timeouts when the active thread cannot continue running any more.

`@vakaras` does this sound right? `pthread_cond_timedwait` anyway already yields, of course, since it blocks on getting the signal (or the timeout).

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 agoAuto merge of #1771 - vakaras:bug-1763, r=RalfJung
bors [Sun, 11 Apr 2021 11:49:27 +0000 (11:49 +0000)]
Auto merge of #1771 - vakaras:bug-1763, r=RalfJung

Attempt to fix #1763

As discussed on issue #1763, just try asking the scheduler to try again.

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

3 years agoReference issue 1763 in the comment.
Vytautas Astrauskas [Sun, 11 Apr 2021 11:39:03 +0000 (13:39 +0200)]
Reference issue 1763 in the comment.

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 agoAttempt to fix #1763 by asking the scheduler to retry choosing an operation.
Vytautas Astrauskas [Sat, 10 Apr 2021 18:23:32 +0000 (20:23 +0200)]
Attempt to fix #1763 by asking the scheduler to retry choosing an operation.

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 agoremove compatibility code for passing miri flags via cargo arguments
Ralf Jung [Sat, 10 Apr 2021 12:07:46 +0000 (14:07 +0200)]
remove compatibility code for passing miri flags via cargo arguments

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 .