]> git.lizzy.rs Git - rust.git/log
rust.git
2 years agoadd new version of backtrace api using flags=1
DrMeepster [Fri, 25 Feb 2022 06:11:20 +0000 (22:11 -0800)]
add new version of backtrace api using flags=1

2 years agoAuto merge of #1968 - RalfJung:rustup, r=RalfJung
bors [Fri, 4 Feb 2022 17:01:23 +0000 (17:01 +0000)]
Auto merge of #1968 - RalfJung:rustup, r=RalfJung

rustup; implement simd_and/or

I had to disable the integer division tests since they now require simd_eq, which seems [non-trivial to implement](https://github.com/rust-lang/miri/issues/1912#issuecomment-1030164843).

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

2 years agorustup; implement simd_and/or
Ralf Jung [Fri, 4 Feb 2022 16:55:53 +0000 (17:55 +0100)]
rustup; implement simd_and/or

2 years agoAuto merge of #1967 - RalfJung:rustup, r=RalfJung
bors [Fri, 4 Feb 2022 16:18:30 +0000 (16:18 +0000)]
Auto merge of #1967 - RalfJung:rustup, r=RalfJung

rustup: disable read_dir test for now

I don't currently have time to fix our read_dir support, so I disabled the tests for now. https://github.com/rust-lang/miri/issues/1966 tracks bringing back that functionality.

2 years agorustup: disable read_dir test for now
Ralf Jung [Fri, 4 Feb 2022 16:17:28 +0000 (17:17 +0100)]
rustup: disable read_dir test for now

2 years agoAuto merge of #1964 - RalfJung:rustup, r=RalfJung
bors [Wed, 26 Jan 2022 16:00:00 +0000 (16:00 +0000)]
Auto merge of #1964 - RalfJung:rustup, r=RalfJung

rustup

Let's hope we can finally get CI green again...

2 years agorustup
Ralf Jung [Wed, 26 Jan 2022 15:54:55 +0000 (10:54 -0500)]
rustup

2 years agoAuto merge of #1961 - ojeda:spurious-maybe_uninit_extra, r=oli-obk
bors [Tue, 11 Jan 2022 17:37:37 +0000 (17:37 +0000)]
Auto merge of #1961 - ojeda:spurious-maybe_uninit_extra, r=oli-obk

Remove spurious `maybe_uninit_extra`

Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
2 years agoRemove spurious `maybe_uninit_extra`
Miguel Ojeda [Tue, 11 Jan 2022 15:17:39 +0000 (16:17 +0100)]
Remove spurious `maybe_uninit_extra`

Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
2 years agoAuto merge of #1952 - RalfJung:self-referential, r=RalfJung
bors [Sun, 9 Jan 2022 14:10:00 +0000 (14:10 +0000)]
Auto merge of #1952 - RalfJung:self-referential, r=RalfJung

exclude mutable references to !Unpin types from uniqueness guarantees

This basically works around https://github.com/rust-lang/unsafe-code-guidelines/issues/148 by not requiring uniqueness any more for mutable references to self-referential generators. That corresponds to [the same work-around that was applied in rustc itself](https://github.com/rust-lang/rust/blob/b81553267437627af63c79c1a20c73af865a842a/compiler/rustc_middle/src/ty/layout.rs#L2482).

I am not entirely sure if this is a good idea since it might hide too many errors in case types are "accidentally" `!Unpin`. OTOH, our test suite still passes, and to my knowledge the vast majority of types is `Unpin`. (`place.layout.ty` is monomorphic, we should always exactly know which type this is.)

2 years agoAuto merge of #1960 - RalfJung:rustup, r=RalfJung
bors [Sun, 9 Jan 2022 13:50:34 +0000 (13:50 +0000)]
Auto merge of #1960 - RalfJung:rustup, r=RalfJung

rustup

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

2 years agorustup
Ralf Jung [Sun, 9 Jan 2022 13:50:03 +0000 (14:50 +0100)]
rustup

2 years agoAuto merge of #1959 - RalfJung:rustup, r=RalfJung
bors [Sat, 8 Jan 2022 16:28:39 +0000 (16:28 +0000)]
Auto merge of #1959 - RalfJung:rustup, r=RalfJung

rustup

2 years agorustup
Ralf Jung [Sat, 8 Jan 2022 16:27:48 +0000 (17:27 +0100)]
rustup

2 years agoAuto merge of #1956 - RalfJung:stack-pop-cleanup, r=RalfJung
bors [Wed, 5 Jan 2022 08:56:05 +0000 (08:56 +0000)]
Auto merge of #1956 - RalfJung:stack-pop-cleanup, r=RalfJung

adjust for StackPopCleanup::None rename

This is the Miri side of https://github.com/rust-lang/rust/pull/92551

2 years agorustup
Ralf Jung [Wed, 5 Jan 2022 08:55:29 +0000 (09:55 +0100)]
rustup

2 years agoadjust for StackPopCleanup::None rename
Ralf Jung [Tue, 4 Jan 2022 10:14:50 +0000 (11:14 +0100)]
adjust for StackPopCleanup::None rename

2 years agoAuto merge of #1954 - RalfJung:rustup, r=RalfJung
bors [Mon, 3 Jan 2022 22:25:44 +0000 (22:25 +0000)]
Auto merge of #1954 - RalfJung:rustup, r=RalfJung

rustup

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

2 years agorustup
Ralf Jung [Mon, 3 Jan 2022 21:54:58 +0000 (22:54 +0100)]
rustup

2 years agoAuto merge of #1953 - klensy:deps-up, r=RalfJung
bors [Mon, 3 Jan 2022 09:16:06 +0000 (09:16 +0000)]
Auto merge of #1953 - klensy:deps-up, r=RalfJung

update crate rustc_version 0.3 -> 0.4 to remove some deps

This removes some deps and pulls only one version of `rustc_version` crate.

2 years agoupdate crate rustc_version 0.3 -> 0.4 to remove some deps
klensy [Sun, 2 Jan 2022 23:47:42 +0000 (02:47 +0300)]
update crate rustc_version 0.3 -> 0.4 to remove some deps

2 years agoexclude mutable references to !Unpin types from uniqueness guarantees
Ralf Jung [Sat, 1 Jan 2022 18:01:46 +0000 (19:01 +0100)]
exclude mutable references to !Unpin types from uniqueness guarantees

2 years agoAuto merge of #1951 - RalfJung:rustup, r=RalfJung
bors [Sat, 1 Jan 2022 17:54:02 +0000 (17:54 +0000)]
Auto merge of #1951 - RalfJung:rustup, r=RalfJung

rustup

The previously pinned toolchain was affected by https://github.com/rust-lang/rust/issues/92163, let's switch to one where that problem is fixed.

2 years agorustup
Ralf Jung [Sat, 1 Jan 2022 17:52:45 +0000 (18:52 +0100)]
rustup

2 years agoAuto merge of #1928 - RalfJung:fn-abi, r=RalfJung
bors [Fri, 24 Dec 2021 11:04:48 +0000 (11:04 +0000)]
Auto merge of #1928 - RalfJung:fn-abi, r=RalfJung

adjust for FnAbi changes

This is the Miri side of https://github.com/rust-lang/rust/pull/91342.

2 years agoadjust output for calling convention check
Ralf Jung [Thu, 2 Dec 2021 02:37:06 +0000 (21:37 -0500)]
adjust output for calling convention check

2 years agoadjust for FnAbi changes
Ralf Jung [Mon, 29 Nov 2021 17:48:04 +0000 (12:48 -0500)]
adjust for FnAbi changes

2 years agoAuto merge of #1949 - RalfJung:miri-lib-src, r=oli-obk
bors [Thu, 23 Dec 2021 15:54:25 +0000 (15:54 +0000)]
Auto merge of #1949 - RalfJung:miri-lib-src, r=oli-obk

add and document MIRI_LIB_SRC env var to set the source from which Miri builds the standard library

This is just an alias of `XARGO_RUST_SRC`, but avoids exposing how exactly we use xargo.

2 years agoadd and document MIRI_LIB_SRC env var to set the source from which Miri builds the...
Ralf Jung [Thu, 23 Dec 2021 14:57:39 +0000 (15:57 +0100)]
add and document MIRI_LIB_SRC env var to set the source from which Miri builds the standard library

2 years agoAuto merge of #1945 - saethlin:better-sb-tracking, r=RalfJung
bors [Tue, 21 Dec 2021 21:25:52 +0000 (21:25 +0000)]
Auto merge of #1945 - saethlin:better-sb-tracking, r=RalfJung

Provide slightly better notes when tracking a pointer tag

I slapped this in as a sort of advanced println-based debugging when trying to figure out a track-raw-pointers finding in `smallvec`. Perhaps this looks like a good idea to you all?

EDIT: User scenario

Run `MIRIFLAGS=-Ztag-raw-pointers cargo miri test`, get a diagnostic that looks like
```
error: Undefined Behavior: trying to reborrow for SharedReadOnly at alloc99465+0x9, but parent tag <265507> does not have an appropriate item in the borrow stack
```
So now run `MIRIFLAGS=-Ztag-raw-pointers -Zmiri-track-pointer-tag=265507 cargo miri test`
Old:
```
note: tracking was triggered
   --> src/lib.rs:822:36
    |
822 |                 vec: NonNull::from(self),
    |                                    ^^^^ popped tracked tag for item [SharedReadOnly for <265507>]
```
New:
```
note: tracking was triggered
   --> src/lib.rs:822:36
    |
822 |                 vec: NonNull::from(self),
    |                                    ^^^^ popped tracked tag for item [SharedReadOnly for <265507>] due to Write access for <265356>
```
So that if a user is now beginning to question their sanity because they don't really understand SB yet, they can then track the tag which caused the parent tag to be removed from the stack to be sure what's going on here:
```
   --> src/lib.rs:792:5
    |
792 | /     pub fn drain<R>(&mut self, range: R) -> Drain<'_, A>
793 | |     where
794 | |         R: RangeBounds<usize>,
795 | |     {
...   |
824 | |         }
825 | |     }
    | |_____^ created tag 265356
```

The existing diagnostic can tell you where the tag you'd need was invalidated, but it cannot tell you what and why that tag was invalidated.

2 years agoProvide better notes when tracking a pointer tag
Ben Kimock [Sun, 19 Dec 2021 23:45:56 +0000 (18:45 -0500)]
Provide better notes when tracking a pointer tag

2 years agoAuto merge of #1947 - RalfJung:macos-is-from-the-stone-age, r=RalfJung
bors [Mon, 20 Dec 2021 22:17:40 +0000 (22:17 +0000)]
Auto merge of #1947 - RalfJung:macos-is-from-the-stone-age, r=RalfJung

macOS-compatible realpath

Make behavior consistent between Linux and macOS even though macOS lacks some basic shell tools

2 years agomacOS-compatible realpath
Ralf Jung [Mon, 20 Dec 2021 22:14:17 +0000 (23:14 +0100)]
macOS-compatible realpath

2 years agoAuto merge of #1944 - RalfJung:rustup, r=RalfJung
bors [Sun, 19 Dec 2021 18:49:41 +0000 (18:49 +0000)]
Auto merge of #1944 - RalfJung:rustup, r=RalfJung

rustup

2 years agorustup
Ralf Jung [Sun, 19 Dec 2021 18:49:05 +0000 (19:49 +0100)]
rustup

2 years agoAuto merge of #1943 - RalfJung:readme, r=RalfJung
bors [Sun, 19 Dec 2021 16:53:37 +0000 (16:53 +0000)]
Auto merge of #1943 - RalfJung:readme, r=RalfJung

readme: be more explicit about the toolchain

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

`@robamler` would this have helped?

2 years agoreadme: be more explicit about the toolchain
Ralf Jung [Sun, 19 Dec 2021 16:46:17 +0000 (17:46 +0100)]
readme: be more explicit about the toolchain

2 years agoAuto merge of #1940 - RalfJung:xargo, r=RalfJung
bors [Thu, 16 Dec 2021 14:23:08 +0000 (14:23 +0000)]
Auto merge of #1940 - RalfJung:xargo, r=RalfJung

require xargo 0.3.23

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

2 years agorequire xargo 0.3.23
Ralf Jung [Thu, 16 Dec 2021 14:20:58 +0000 (15:20 +0100)]
require xargo 0.3.23

2 years agoAuto merge of #1938 - RalfJung:test, r=RalfJung
bors [Wed, 15 Dec 2021 18:11:57 +0000 (18:11 +0000)]
Auto merge of #1938 - RalfJung:test, r=RalfJung

add regression test

Adds a regression test for https://github.com/rust-lang/rust/issues/91636 (which was fixed by https://github.com/rust-lang/rust/pull/91856)

2 years agolooks like the asm macro is stable :D
Ralf Jung [Wed, 15 Dec 2021 17:58:28 +0000 (18:58 +0100)]
looks like the asm macro is stable :D

2 years agoadd regression test
Ralf Jung [Wed, 15 Dec 2021 17:41:41 +0000 (18:41 +0100)]
add regression test

2 years agoAuto merge of #1937 - RalfJung:rustup, r=RalfJung
bors [Wed, 15 Dec 2021 16:10:43 +0000 (16:10 +0000)]
Auto merge of #1937 - RalfJung:rustup, r=RalfJung

rustup

I cannot reproduce the [nightly CI failure](https://github.com/rust-lang/miri/runs/4521890481?check_suite_focus=true) so let's see what happens...

2 years agofix iteration-order-dependent output
Ralf Jung [Wed, 15 Dec 2021 15:51:40 +0000 (16:51 +0100)]
fix iteration-order-dependent output

2 years agoupdate lockfile
Ralf Jung [Tue, 14 Dec 2021 17:20:03 +0000 (18:20 +0100)]
update lockfile

2 years agorustup
Ralf Jung [Tue, 14 Dec 2021 17:14:17 +0000 (18:14 +0100)]
rustup

2 years agoAuto merge of #1934 - RalfJung:rustup, r=RalfJung
bors [Wed, 8 Dec 2021 15:19:55 +0000 (15:19 +0000)]
Auto merge of #1934 - RalfJung:rustup, r=RalfJung

rustup

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

2 years agorustup
Ralf Jung [Wed, 8 Dec 2021 15:01:51 +0000 (10:01 -0500)]
rustup

2 years agoAuto merge of #1933 - 5225225:1931-condvar-false-positive, r=RalfJung
bors [Wed, 8 Dec 2021 14:51:53 +0000 (14:51 +0000)]
Auto merge of #1933 - 5225225:1931-condvar-false-positive, r=RalfJung

Fix false positive use of uninit bytes when calling `libc::pthread_condattr_destroy`

Fixes: #1931
2 years agoCode comment changes from code review
5225225 [Tue, 7 Dec 2021 17:25:28 +0000 (17:25 +0000)]
Code comment changes from code review

Co-authored-by: Ralf Jung <post@ralfj.de>
2 years agoAdd comment explaining false positives in _destroy
5225225 [Tue, 7 Dec 2021 08:26:46 +0000 (08:26 +0000)]
Add comment explaining false positives in _destroy

2 years agoAdjust pthread tests
5225225 [Mon, 6 Dec 2021 21:50:14 +0000 (21:50 +0000)]
Adjust pthread tests

2 years agoAdd tests for double destroying various pthread items
5225225 [Mon, 6 Dec 2021 21:15:02 +0000 (21:15 +0000)]
Add tests for double destroying various pthread items

2 years agoDestroying any uninit posix_ object is UB
5225225 [Mon, 6 Dec 2021 19:26:13 +0000 (19:26 +0000)]
Destroying any uninit posix_ object is UB

2 years agoAuto merge of #1930 - tavianator:avoid-adjacent-allocations, r=RalfJung
bors [Mon, 6 Dec 2021 01:33:55 +0000 (01:33 +0000)]
Auto merge of #1930 - tavianator:avoid-adjacent-allocations, r=RalfJung

intptrcast: Never allocate two objects directly adjecent

When two objects directly follow each other in memory, what is the
provenance of an integer cast to a pointer that points directly between
them?  For a zero-size region, it could point into the end of the first
object, or the start of the second.

We can avoid answering this difficult question by simply never
allocating two objects directly beside each other.  This fixes some of
the false positives from #1866.

2 years agofinal tweaks
Ralf Jung [Mon, 6 Dec 2021 01:33:20 +0000 (20:33 -0500)]
final tweaks

2 years agoHandle uninit data in pthread_condattr_destroy
5225225 [Sun, 5 Dec 2021 13:54:25 +0000 (13:54 +0000)]
Handle uninit data in pthread_condattr_destroy

2 years agoAuto merge of #1932 - RalfJung:rustup, r=RalfJung
bors [Sun, 5 Dec 2021 16:03:07 +0000 (16:03 +0000)]
Auto merge of #1932 - RalfJung:rustup, r=RalfJung

rustup

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

2 years agorustup
Ralf Jung [Sun, 5 Dec 2021 16:02:20 +0000 (11:02 -0500)]
rustup

2 years agointptrcast: Never allocate two objects directly adjecent
Tavian Barnes [Fri, 3 Dec 2021 20:57:37 +0000 (15:57 -0500)]
intptrcast: Never allocate two objects directly adjecent

When two objects directly follow each other in memory, what is the
provenance of an integer cast to a pointer that points directly between
them?  For a zero-size region, it could point into the end of the first
object, or the start of the second.

We can avoid answering this difficult question by simply never
allocating two objects directly beside each other.  This fixes some of
the false positives from #1866.

2 years agoAuto merge of #1929 - RalfJung:rustup, r=RalfJung
bors [Tue, 30 Nov 2021 16:45:05 +0000 (16:45 +0000)]
Auto merge of #1929 - RalfJung:rustup, r=RalfJung

rustup

With https://github.com/rust-lang/rust/pull/91323 landed, we can remove these intrinsics from Miri.

2 years agorustup
Ralf Jung [Tue, 30 Nov 2021 16:44:19 +0000 (11:44 -0500)]
rustup

2 years agoAuto merge of #1927 - RalfJung:array-align-tests, r=RalfJung
bors [Sun, 28 Nov 2021 15:28:57 +0000 (15:28 +0000)]
Auto merge of #1927 - RalfJung:array-align-tests, r=RalfJung

add tests for alignment on array initialization

This adds regression tests for https://github.com/rust-lang/miri/issues/1925, https://github.com/rust-lang/miri/issues/1919.

2 years agoadd tests for alignment on array initialization
Ralf Jung [Sun, 28 Nov 2021 15:07:31 +0000 (10:07 -0500)]
add tests for alignment on array initialization

2 years agoAuto merge of #1926 - RalfJung:rustup, r=RalfJung
bors [Sat, 27 Nov 2021 22:53:32 +0000 (22:53 +0000)]
Auto merge of #1926 - RalfJung:rustup, r=RalfJung

rustup; stub support for some extern statics used for weak symbols

2 years agorustup; stub support for some extern statics used for weak symbols
Ralf Jung [Sat, 27 Nov 2021 22:15:14 +0000 (17:15 -0500)]
rustup; stub support for some extern statics used for weak symbols

2 years agoAuto merge of #1924 - RalfJung:ra, r=oli-obk
bors [Thu, 25 Nov 2021 22:55:43 +0000 (22:55 +0000)]
Auto merge of #1924 - RalfJung:ra, r=oli-obk

hack to work around RA quirk

This is a gross hack to work around https://github.com/rust-analyzer/rust-analyzer/issues/10793: calling `cargo-miri/miri` does the same thing as calling `./miri`.

`@oli-obk` this is the best I could come up with... not sure if we want to have this in the repo. I am also okay with carrying `cargo-miri/miri` locally.

2 years agohack to work around RA quirk
Ralf Jung [Thu, 25 Nov 2021 22:35:14 +0000 (17:35 -0500)]
hack to work around RA quirk

2 years agoAuto merge of #1923 - RalfJung:more-simd, r=RalfJung
bors [Thu, 25 Nov 2021 22:30:42 +0000 (22:30 +0000)]
Auto merge of #1923 - RalfJung:more-simd, r=RalfJung

More portable SIMD: rem, shl, shr

Also make sure we catch the potential UB in div, rem, shl, shr.

2 years agoimplement shl and shr SIMD intrinsics
Ralf Jung [Thu, 25 Nov 2021 22:24:47 +0000 (17:24 -0500)]
implement shl and shr SIMD intrinsics

2 years agoportable SIMD: add rem intrinsic; test div and rem intrinsic UB
Ralf Jung [Thu, 25 Nov 2021 22:13:16 +0000 (17:13 -0500)]
portable SIMD: add rem intrinsic; test div and rem intrinsic UB

2 years agoAuto merge of #1922 - RalfJung:async-run-fut, r=RalfJung
bors [Tue, 23 Nov 2021 19:44:55 +0000 (19:44 +0000)]
Auto merge of #1922 - RalfJung:async-run-fut, r=RalfJung

async-fn test: make run_fut more general and entirely safe

2 years agoasync-fn test: make run_fut more general and entirely safe
Ralf Jung [Tue, 23 Nov 2021 19:32:03 +0000 (14:32 -0500)]
async-fn test: make run_fut more general and entirely safe

2 years agoAuto merge of #1921 - RalfJung:overflow-checks-off, r=RalfJung
bors [Tue, 23 Nov 2021 19:08:06 +0000 (19:08 +0000)]
Auto merge of #1921 - RalfJung:overflow-checks-off, r=RalfJung

test for overflow-checks=off

Strangely, if we call the functions in `std::ops`, we still get the panics. I assume that is because we build the stdlib with `-Cdebug-assertions=on`; probably the magic attribute that makes stdlib functions inherit overflow checks from the calling crate only works one way (namely to enable them when the calling crate asks for them, but not to disable them when the calling crate does not want them).

2 years agotest for overflow-checks=off
Ralf Jung [Tue, 23 Nov 2021 18:53:02 +0000 (13:53 -0500)]
test for overflow-checks=off

2 years agoAuto merge of #1918 - RalfJung:simd_basics, r=RalfJung
bors [Sun, 21 Nov 2021 03:40:28 +0000 (03:40 +0000)]
Auto merge of #1918 - RalfJung:simd_basics, r=RalfJung

portable SIMD: basic binops

First steps towards https://github.com/rust-lang/miri/issues/1912. Requires https://github.com/rust-lang/rust/pull/90999.

2 years agorustup
Ralf Jung [Sun, 21 Nov 2021 03:39:22 +0000 (22:39 -0500)]
rustup

2 years agoimplement SIMD sub, mul, div; also test i32 binops
Ralf Jung [Thu, 18 Nov 2021 14:42:30 +0000 (09:42 -0500)]
implement SIMD sub, mul, div; also test i32 binops

2 years agoimplement simd_add
Ralf Jung [Thu, 18 Nov 2021 14:36:01 +0000 (09:36 -0500)]
implement simd_add

2 years agoAuto merge of #1917 - RalfJung:rustup, r=RalfJung
bors [Thu, 18 Nov 2021 02:13:28 +0000 (02:13 +0000)]
Auto merge of #1917 - RalfJung:rustup, r=RalfJung

rustup

Just a routine rustup, nothing to see here.

2 years agorustup
Ralf Jung [Thu, 18 Nov 2021 02:12:45 +0000 (21:12 -0500)]
rustup

2 years agoAuto merge of #1911 - RalfJung:rename-track-tag, r=RalfJung
bors [Wed, 17 Nov 2021 16:08:13 +0000 (16:08 +0000)]
Auto merge of #1911 - RalfJung:rename-track-tag, r=RalfJung

rename track-raw-pointers flag to tag-raw-pointers

The old flag name sounds too similar to `-Zmiri-track-pointer-tag`, which is a totally different kind of 'tracking'. This has lead to confusion in https://github.com/rust-lang/miri/issues/1907.

2 years agoAuto merge of #1915 - RalfJung:cron, r=RalfJung
bors [Wed, 17 Nov 2021 15:43:32 +0000 (15:43 +0000)]
Auto merge of #1915 - RalfJung:cron, r=RalfJung

tweak cron job time

15:00 UTC is 16:00 in Europe and 10:00 on the US East Coast (during winter time, and 1h later during summer time), so a good time in both places to see the email and react quickly. No need to run this in the middle of the night if nobody will fix the problem anyway.

Move it 5min past the full hour to avoid what is probably a rush of cronjobs on the full hour.

2 years agotweak cron job time
Ralf Jung [Wed, 17 Nov 2021 15:34:32 +0000 (10:34 -0500)]
tweak cron job time

2 years agoAuto merge of #1913 - RalfJung:rustdoc-miri, r=RalfJung
bors [Sun, 14 Nov 2021 17:29:41 +0000 (17:29 +0000)]
Auto merge of #1913 - RalfJung:rustdoc-miri, r=RalfJung

run rustdoc with the miri cfg flag

This is important to be able to control which doctests run with `cargo miri test`. In particular, this is required for https://github.com/rust-lang/rust/pull/90909 to work as intended.

2 years agorun rustdoc with the miri cfg flag
Ralf Jung [Sun, 14 Nov 2021 17:16:03 +0000 (12:16 -0500)]
run rustdoc with the miri cfg flag

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