]> git.lizzy.rs Git - rust.git/log
rust.git
3 years agoDon't `unwrap()` in `in_std()`
hyd-dev [Thu, 3 Jun 2021 13:26:11 +0000 (21:26 +0800)]
Don't `unwrap()` in `in_std()`

3 years agoDetect `std` by checking if the crate defines `#[lang = "start"]` rather than string...
hyd-dev [Thu, 3 Jun 2021 09:58:24 +0000 (17:58 +0800)]
Detect `std` by checking if the crate defines `#[lang = "start"]` rather than string comparison

3 years agoAuto merge of #1776 - hyd-dev:1170, r=RalfJung
bors [Thu, 3 Jun 2021 15:59:56 +0000 (15:59 +0000)]
Auto merge of #1776 - hyd-dev:1170, r=RalfJung

Implement calls to exported symbols (#1170)

Closes #1170.

3 years agofix typo
Ralf Jung [Thu, 3 Jun 2021 15:47:34 +0000 (17:47 +0200)]
fix typo

3 years agoAuto merge of #1824 - Pointerbender:strings-test, r=RalfJung
bors [Thu, 3 Jun 2021 15:42:41 +0000 (15:42 +0000)]
Auto merge of #1824 - Pointerbender:strings-test, r=RalfJung

added a strings.rs regression test case for potential future UB

This PR adds a regression test for the aliasing rules of a `Unique<T>` pointer.
    At the time of writing this test case, Miri does not treat `Unique<T>`
    pointers as a special case, these are treated like any other raw pointer.
    However, there are existing Github issues which may lead to `Unique<T>`
    becoming a special case through asserting unique ownership over the pointee:
    - https://github.com/rust-lang/unsafe-code-guidelines/issues/258
    - https://github.com/rust-lang/unsafe-code-guidelines/issues/262
    In the new test case, the calls to `String::remove` and `String::insert[_str]` follow
    code paths that would trigger undefined behavior in case `Unique<T>`
    would ever assert semantic ownership over the pointee. Internally,
    these methods call `self.vec.as_ptr()` and `self.vec.as_mut_ptr()` on
    the vector of bytes that are backing the `String`. That `Vec<u8>` holds a
    `Unique<u8>` internally. The second call to `Vec::as_mut_ptr(&mut self)`
    would then invalidate the pointers derived from `Vec::as_ptr(&self)`.
    Note that as long as `Unique<T>` is treated like any other raw pointer,
    this test case should pass. It is merely here as a canary test for
    potential future undefined behavior.

3 years agoadded a strings.rs regression test case for potential future UB
Pointerbender [Thu, 3 Jun 2021 15:24:10 +0000 (17:24 +0200)]
added a strings.rs regression test case for potential future UB

3 years agoAuto merge of #1816 - Pointerbender:slices-tests, r=RalfJung
bors [Thu, 3 Jun 2021 08:52:57 +0000 (08:52 +0000)]
Auto merge of #1816 - Pointerbender:slices-tests, r=RalfJung

regression tests for pointer invalidation in core library slice methods

A fix for a pointer invalidation bug in `<[T]>::copy_within` has [landed](https://github.com/rust-lang/rust/pull/85610) on the Rust master branch. This PR updates the `rust-version` file to the latest master commit hash and adds extra tests to the Miri test suite to ensure that regressions of this type of bug can be detected for various slice methods with the `-Zmiri-track-raw-pointers` flag.

I took the liberty of adding 2 extra  `#![feature]` attributes at the top of `slices.rs`, since there already was one unstable feature. I hope this is okay :smile:

One thing I noticed when running the entire Miri test suite with `MIRIFLAGS="-Zmiri-track-raw-pointers" ./miri test` is that there are currently failing tests on the master branch:

```
failures:
    [ui] run-pass/align.rs
    [ui] run-pass/box.rs
    [ui] run-pass/concurrency/simple.rs
    [ui] run-pass/libc.rs
    [ui] run-pass/ptr_int_casts.rs
    [ui] run-pass/stacked-borrows/int-to-ptr.rs

test result: FAILED. 199 passed; 6 failed; 1 ignored; 0 measured; 0 filtered out; finished in 12.95s
```

These failures were not fixed in this PR and already existed prior to this PR. I haven't investigated these yet, but am interested in helping out if possible!

Thanks!

3 years agoAuto merge of #1822 - hyd-dev:rustup, r=RalfJung
bors [Thu, 3 Jun 2021 08:35:45 +0000 (08:35 +0000)]
Auto merge of #1822 - hyd-dev:rustup, r=RalfJung

`original_crate_name` -> `crate_name`

`original_crate_name` was removed in rust-lang/rust#85904, and according to that PR, it "had the exact same implementation" as `crate_name`.

cc rust-lang/rust#85946

3 years agoRemove some tests
hyd-dev [Thu, 3 Jun 2021 06:16:58 +0000 (14:16 +0800)]
Remove some tests

3 years agoRemove FIXME in `tests/compile-fail/panic/bad_unwind.rs`
hyd-dev [Thu, 3 Jun 2021 05:39:33 +0000 (13:39 +0800)]
Remove FIXME in `tests/compile-fail/panic/bad_unwind.rs`

3 years ago`original_crate_name` -> `crate_name`
hyd-dev [Thu, 3 Jun 2021 02:22:31 +0000 (10:22 +0800)]
`original_crate_name` -> `crate_name`

3 years agoremoved unintentional file change due to whitespace
Pointerbender [Wed, 2 Jun 2021 13:38:12 +0000 (15:38 +0200)]
removed unintentional file change due to whitespace

3 years agouse references so that potential aliasing bugs are triggered during regression test
Pointerbender [Wed, 2 Jun 2021 13:31:50 +0000 (15:31 +0200)]
use references so that potential aliasing bugs are triggered during regression test

3 years agoregression tests for pointer invalidation in core library slice methods
Pointerbender [Wed, 26 May 2021 19:30:43 +0000 (21:30 +0200)]
regression tests for pointer invalidation in core library slice methods

3 years agoAuto merge of #1820 - Aaron1011:rustup-const-err, r=RalfJung
bors [Mon, 31 May 2021 16:04:22 +0000 (16:04 +0000)]
Auto merge of #1820 - Aaron1011:rustup-const-err, r=RalfJung

Rustup for const_err changes

3 years agoRustup for const_err changes
Aaron Hill [Mon, 31 May 2021 15:50:25 +0000 (10:50 -0500)]
Rustup for const_err changes

3 years agoImprove tests
hyd-dev [Mon, 31 May 2021 03:05:04 +0000 (11:05 +0800)]
Improve tests

3 years agoMove the test to `src/main.rs`
hyd-dev [Sun, 30 May 2021 23:59:51 +0000 (07:59 +0800)]
Move the test to `src/main.rs`

3 years agoRemove duplicated "foreign function"
hyd-dev [Sun, 30 May 2021 13:06:40 +0000 (21:06 +0800)]
Remove duplicated "foreign function"

3 years agoUse `unwrap_or_else()`
hyd-dev [Sun, 30 May 2021 13:01:40 +0000 (21:01 +0800)]
Use `unwrap_or_else()`

3 years agoWe don't need to check `SymbolExportLevel`
hyd-dev [Sun, 30 May 2021 12:49:44 +0000 (20:49 +0800)]
We don't need to check `SymbolExportLevel`

3 years agoMove `check_abi()` into `EvalContextExt`
hyd-dev [Sun, 30 May 2021 12:38:52 +0000 (20:38 +0800)]
Move `check_abi()` into `EvalContextExt`

3 years agoMove `-Zmiri-disable-abi-check` in README
hyd-dev [Sun, 30 May 2021 12:30:00 +0000 (20:30 +0800)]
Move `-Zmiri-disable-abi-check` in README

3 years agoImplement calls to exported symbols
hyd-dev [Thu, 15 Apr 2021 21:19:23 +0000 (05:19 +0800)]
Implement calls to exported symbols

3 years agoAdd `-Zmiri-disable-abi-check`
hyd-dev [Sat, 29 May 2021 17:36:06 +0000 (01:36 +0800)]
Add `-Zmiri-disable-abi-check`

3 years agoAuto merge of #1791 - Aaron1011:measureme, r=RalfJung
bors [Sun, 30 May 2021 15:14:23 +0000 (15:14 +0000)]
Auto merge of #1791 - Aaron1011:measureme, r=RalfJung

Add `measureme` integration for profiling the interpreted program

This PR uses the `measureme` crate to profile the call stack of the
program being interpreted by Miri. This is accomplished by starting a
measureme 'event' when we enter a function call, and ending the event
when we exit the call. The `measureme` tooling can be used to produce a
call stack from the generated profile data.

Limitations:
* We currently record every single entry/exit. This might generate very
  large profile outputs for programs with a large number of function
  calls. In follow-up work, we might want to explore sampling (e.g. only
  recording every N function calls).
* This does not integrate very well with Miri's concurrency support.
  Each event we record starts when we push a frame, and ends when we pop
  a frame. As a result, the timing recorded for a particular frame will include all of the work Miri does before that frame completes, including executing another thread.

The `measureme` integration is off by default, and must be enabled via
`-Zmiri-measureme=<output_name>`

3 years agoadd comment to debug impl
Ralf Jung [Sun, 30 May 2021 15:13:49 +0000 (17:13 +0200)]
add comment to debug impl

3 years agoAddress more review comments
Aaron Hill [Sun, 30 May 2021 15:04:57 +0000 (10:04 -0500)]
Address more review comments

3 years agoRun fmt
Aaron Hill [Sat, 29 May 2021 22:16:12 +0000 (17:16 -0500)]
Run fmt

3 years agoAddress review comments
Aaron Hill [Sat, 29 May 2021 22:09:46 +0000 (17:09 -0500)]
Address review comments

3 years agoUse active thread id
Aaron Hill [Sat, 8 May 2021 17:17:58 +0000 (13:17 -0400)]
Use active thread id

3 years agoAdd `measureme` integration for profiling the interpreted program
Aaron Hill [Sat, 8 May 2021 16:20:51 +0000 (12:20 -0400)]
Add `measureme` integration for profiling the interpreted program

This PR uses the `measureme` crate to profile the call stack of the
program being interpreted by Miri. This is accomplished by starting a
measureme 'event' when we enter a function call, and ending the event
when we exit the call. The `measureme` tooling can be used to produce a
call stack from the generated profile data.

Limitations:
* We currently record every single entry/exit. This might generate very
  large profile outputs for programs with a large number of function
  calls. In follow-up work, we might want to explore sampling (e.g. only
  recording every N function calls).
* This does not integrate very well with Miri's concurrency support.
  Each event we record starts when we push a frame, and ends when we pop
  a frame. As a result, switching between virtual threads will cause
  events from different threads to be interleaved. Additionally, the
  recorded for a particular frame will include all of the work Miri does
  before that frame completes, including executing another thread.

The `measureme` integration is off by default, and must be enabled via
`-Zmiri-measureme=<output_name>`

3 years agoAuto merge of #1812 - hyd-dev:85546, r=RalfJung
bors [Fri, 28 May 2021 20:11:11 +0000 (20:11 +0000)]
Auto merge of #1812 - hyd-dev:85546, r=RalfJung

Fix toolstate for rust-lang/rust#85546

cc rust-lang/rust#85780

3 years ago`unwind` is no longer `Option<BasicBlock>`
hyd-dev [Sat, 22 May 2021 14:45:00 +0000 (22:45 +0800)]
`unwind` is no longer `Option<BasicBlock>`

3 years agoAuto merge of #1817 - hyd-dev:doctest, r=RalfJung
bors [Thu, 27 May 2021 21:44:16 +0000 (21:44 +0000)]
Auto merge of #1817 - hyd-dev:doctest, r=RalfJung

Skip doctests of `proc-macro` crates

Fixes #1813.

Verified that the newly added tests failed without the `cargo-miri` change and pass with normal `cargo test`.

3 years agoChange preexisting "doc-test" to "doctest"
hyd-dev [Thu, 27 May 2021 11:48:07 +0000 (19:48 +0800)]
Change preexisting "doc-test" to "doctest"

3 years agoChange "Doc-tests" in the comment to "Doctests"
hyd-dev [Thu, 27 May 2021 11:44:48 +0000 (19:44 +0800)]
Change "Doc-tests" in the comment to "Doctests"

3 years agoUse `compile_error!` instead of `use num_cpus`
hyd-dev [Thu, 27 May 2021 11:22:42 +0000 (19:22 +0800)]
Use `compile_error!` instead of `use num_cpus`

3 years ago"doc-tests" -> "doctests"
hyd-dev [Thu, 27 May 2021 10:34:38 +0000 (18:34 +0800)]
"doc-tests" -> "doctests"

3 years agoAuto merge of #1819 - scottmcm:patch-1, r=RalfJung
bors [Thu, 27 May 2021 07:21:49 +0000 (07:21 +0000)]
Auto merge of #1819 - scottmcm:patch-1, r=RalfJung

Add `copy_within` to the SB trophy case

3 years agoAdd `copy_within` to the SB trophy case
scottmcm [Thu, 27 May 2021 00:14:13 +0000 (00:14 +0000)]
Add `copy_within` to the SB trophy case

3 years agoSkip doctests of `proc-macro` crates
hyd-dev [Wed, 26 May 2021 22:40:47 +0000 (06:40 +0800)]
Skip doctests of `proc-macro` crates

3 years agoAuto merge of #1814 - RalfJung:rustup, r=RalfJung
bors [Sun, 23 May 2021 16:08:53 +0000 (16:08 +0000)]
Auto merge of #1814 - RalfJung:rustup, r=RalfJung

avoid unnecessary RefCell calls

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

3 years agorustup
Ralf Jung [Sun, 23 May 2021 16:05:50 +0000 (18:05 +0200)]
rustup

3 years agofix a Stacked Borrows test whose output changed
Ralf Jung [Sun, 23 May 2021 10:37:52 +0000 (12:37 +0200)]
fix a Stacked Borrows test whose output changed

3 years agoallocate backtrace strings mutably
Ralf Jung [Sun, 23 May 2021 10:26:37 +0000 (12:26 +0200)]
allocate backtrace strings mutably

3 years agobetter approach to skip ZST reborrows
Ralf Jung [Sun, 23 May 2021 09:52:41 +0000 (11:52 +0200)]
better approach to skip ZST reborrows

3 years agoavoid some borrow_mut calls in data_race
Ralf Jung [Sun, 23 May 2021 09:00:25 +0000 (11:00 +0200)]
avoid some borrow_mut calls in data_race

3 years agoavoid unnecessary RefCell calls in Stacked Borrows
Ralf Jung [Sun, 23 May 2021 08:47:29 +0000 (10:47 +0200)]
avoid unnecessary RefCell calls in Stacked Borrows

3 years agoAuto merge of #1815 - RalfJung:rustup2, r=RalfJung
bors [Sun, 23 May 2021 10:40:13 +0000 (10:40 +0000)]
Auto merge of #1815 - RalfJung:rustup2, r=RalfJung

rustup

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

3 years agorustup
Ralf Jung [Sun, 23 May 2021 10:39:27 +0000 (12:39 +0200)]
rustup

3 years agoAuto merge of #1811 - RalfJung:less-rc, r=RalfJung
bors [Sat, 22 May 2021 12:56:51 +0000 (12:56 +0000)]
Auto merge of #1811 - RalfJung:less-rc, r=RalfJung

get rid of some `Rc`

Now that the memory access hooks get references to `MemoryExtra`, we can avoid refcounting for the global state of Stacked Borrows and the data race detector.

3 years agofmt
Ralf Jung [Sat, 22 May 2021 12:55:33 +0000 (14:55 +0200)]
fmt

3 years agoget rid of Rc in data_race
Ralf Jung [Sat, 22 May 2021 12:47:14 +0000 (14:47 +0200)]
get rid of Rc in data_race

3 years agoget rid of Rc in Stacked Borrows
Ralf Jung [Sat, 22 May 2021 11:24:08 +0000 (13:24 +0200)]
get rid of Rc in Stacked Borrows

3 years agoAuto merge of #1809 - RalfJung:rustup, r=RalfJung
bors [Thu, 20 May 2021 17:54:56 +0000 (17:54 +0000)]
Auto merge of #1809 - RalfJung:rustup, r=RalfJung

rustup

3 years agorustup
Ralf Jung [Thu, 20 May 2021 11:32:18 +0000 (13:32 +0200)]
rustup

3 years agoAuto merge of #1804 - RalfJung:ptrless-allocs, r=RalfJung
bors [Wed, 19 May 2021 14:34:39 +0000 (14:34 +0000)]
Auto merge of #1804 - RalfJung:ptrless-allocs, r=RalfJung

update for Memory API changes

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

3 years agofix write_os_str_to_wide_str
Ralf Jung [Wed, 19 May 2021 14:34:14 +0000 (16:34 +0200)]
fix write_os_str_to_wide_str

3 years agofmt
Ralf Jung [Wed, 19 May 2021 14:10:28 +0000 (16:10 +0200)]
fmt

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

3 years agoavoid importing C functions in alloc_write_race test
Ralf Jung [Mon, 17 May 2021 11:56:00 +0000 (13:56 +0200)]
avoid importing C functions in alloc_write_race test

3 years agoupdate for Memory API changes
Ralf Jung [Mon, 17 May 2021 11:50:45 +0000 (13:50 +0200)]
update for Memory API changes

3 years agoAuto merge of #1808 - RalfJung:fmt, r=oli-obk
bors [Wed, 19 May 2021 12:19:24 +0000 (12:19 +0000)]
Auto merge of #1808 - RalfJung:fmt, r=oli-obk

add (bors-ignored) formatting check job

3 years agoover 'default' instead of 'override' (consistent with main build job)
Ralf Jung [Wed, 19 May 2021 08:57:38 +0000 (10:57 +0200)]
over 'default' instead of 'override' (consistent with main build job)

3 years agofmt
Ralf Jung [Wed, 19 May 2021 08:50:51 +0000 (10:50 +0200)]
fmt

3 years agoadd (bors-ignored) formatting check job
Ralf Jung [Wed, 19 May 2021 08:47:17 +0000 (10:47 +0200)]
add (bors-ignored) formatting check job

3 years agoAuto merge of #1806 - RalfJung:rustup, r=RalfJung
bors [Mon, 17 May 2021 22:27:31 +0000 (22:27 +0000)]
Auto merge of #1806 - RalfJung:rustup, r=RalfJung

rustup

`@bors` r+

3 years agorustup
Ralf Jung [Mon, 17 May 2021 22:11:05 +0000 (00:11 +0200)]
rustup

3 years agoAuto merge of #1805 - RalfJung:c_str, r=RalfJung
bors [Mon, 17 May 2021 12:33:51 +0000 (12:33 +0000)]
Auto merge of #1805 - RalfJung:c_str, r=RalfJung

stop relying on c_str/wide_str helpers in rustc

This is a part of https://github.com/rust-lang/miri/pull/1804 that we can already do.

3 years agostop relying on c_str/wide_str helpers in rustc
Ralf Jung [Mon, 17 May 2021 12:31:59 +0000 (14:31 +0200)]
stop relying on c_str/wide_str helpers in rustc

3 years agoAuto merge of #1803 - RalfJung:fmt, r=RalfJung
bors [Mon, 17 May 2021 08:59:20 +0000 (08:59 +0000)]
Auto merge of #1803 - RalfJung:fmt, r=RalfJung

fix rustfmt fallout

3 years agofix rustfmt fallout
Ralf Jung [Mon, 17 May 2021 08:57:21 +0000 (10:57 +0200)]
fix rustfmt fallout

3 years agoAuto merge of #1802 - RalfJung:rustup, r=RalfJung
bors [Mon, 17 May 2021 07:37:04 +0000 (07:37 +0000)]
Auto merge of #1802 - RalfJung:rustup, r=RalfJung

rustup

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

3 years agorustup
Ralf Jung [Mon, 17 May 2021 07:34:39 +0000 (09:34 +0200)]
rustup

3 years agoAuto merge of #1801 - RalfJung:rustfmt, r=oli-obk
bors [Sun, 16 May 2021 23:30:29 +0000 (23:30 +0000)]
Auto merge of #1801 - RalfJung:rustfmt, r=oli-obk

rustfmt

I liberally applied `rustfmt::skip` where I really did not like the rustfmt formatting.

3 years agohand-held formatting for remaining files
Ralf Jung [Sun, 16 May 2021 09:48:08 +0000 (11:48 +0200)]
hand-held formatting for remaining files

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