Commit graph

205995 commits

Author SHA1 Message Date
bors
ce4620bd43 Auto merge of #2586 - RalfJung:ffi, r=RalfJung
remove FFI support for macOS

We're only testing this on Linux, and `@thomcc` reports that libffi on macOS is a pain, so let's just disable this for now.
2022-10-07 12:29:54 +00:00
Ralf Jung
33bdddb75c remove FFI support for macOS 2022-10-07 14:29:18 +02:00
Ralf Jung
9cc11e262f test Miri changes in PR CI; we no longer need xargo 2022-10-04 17:31:49 +02:00
bors
6f2b52ff10 Auto merge of #2566 - saethlin:gc-cleanup, r=oli-obk
Expand VisitMachineValues to cover more pointers in the interpreter

Follow-on to https://github.com/rust-lang/miri/pull/2559

This is making me want to write a proc macro 🤔

r? `@RalfJung`
2022-10-04 14:17:17 +00:00
Ralf Jung
e212af2f65 re-architect the tag visitor traits 2022-10-04 15:49:39 +02:00
bors
796bcf99dc Auto merge of #2582 - RalfJung:sb-tracking, r=RalfJung
more details in stacked borrows tag tracking
2022-10-04 13:44:21 +00:00
Ben Kimock
841d1b24ed Finish TimeoutCallback 2022-10-04 15:32:10 +02:00
Ben Kimock
1c6a6244c1 Please help, where is this lifetime bound coming from 2022-10-04 15:32:10 +02:00
Ben Kimock
a8f8106cec Use static dispatch in the visitor 2022-10-04 15:32:10 +02:00
Ben Kimock
61e71cebd3 Use VisitProvenance to factor allocation visiting better 2022-10-04 15:32:10 +02:00
Ben Kimock
a7153b5505 A bit of cleanup 2022-10-04 15:32:10 +02:00
Ben Kimock
25e8f8eddf Expand VisitMachineValues to cover more pointers in the interpreter 2022-10-04 15:32:10 +02:00
Ralf Jung
d1676b5727 more details on stacked borrows tracking 2022-10-04 14:55:29 +02:00
Ralf Jung
17cb715b04 Auto merge of #2578 - RalfJung:rustc_tools_util, r=RalfJung 2022-10-02 15:05:54 +02:00
Ralf Jung
45b9a5d519 Auto merge of #2576 - RalfJung:no-more-vergen, r=RalfJung 2022-10-02 15:05:54 +02:00
Ralf Jung
5ed9f5f1a2 bump rustc_tools_util 2022-10-02 15:05:54 +02:00
Ralf Jung
386628b707 Auto merge of #2574 - RalfJung:vergen, r=RalfJung 2022-10-02 15:05:54 +02:00
Ralf Jung
4738296b25 use rustc_tools_util instead of vergen 2022-10-02 15:05:54 +02:00
Ralf Jung
fc90c48004 Auto merge of #2572 - RalfJung:update, r=RalfJung 2022-10-02 15:05:54 +02:00
Ralf Jung
848de11c45 relax vergen dependency 2022-10-02 15:05:54 +02:00
Ralf Jung
49532bf1f5 GHA seems to have strange booleans 2022-10-02 15:05:51 +02:00
Ralf Jung
1048eba06a Auto merge of #2571 - RalfJung:cargo-update, r=RalfJung 2022-10-02 15:03:47 +02:00
Ralf Jung
ca9eed3db8 bump rustc-build-sysroot 2022-10-02 15:03:47 +02:00
Ralf Jung
28725d44a6 no need to make cargo-miri build quiet; cargo only prints to stderr anyway 2022-10-02 15:03:47 +02:00
Ralf Jung
c542fa4ed8 cargo update 2022-10-02 15:03:47 +02:00
Ralf Jung
6c77735fce Auto merge of #2564 - RalfJung:no-more-xargo, r=oli-obk 2022-10-02 15:03:34 +02:00
bors
20adc75304 Auto merge of #2562 - pvdrz:miri-num-cpus, r=RalfJung
Add flag to specify the number of cpus

Apparently you can't rename a branch from github's website without it closing all your PRs with that branch. So this is  just #2545
2022-09-27 01:13:09 +00:00
Christian Poveda
9ce9dae57f
update readme 2022-09-26 15:46:09 -05:00
Christian Poveda
c983ced79c
/// FIXME: docs 2022-09-26 11:40:23 -05:00
Ralf Jung
5f18674c31 use rustc-build-sysroot instead of xargo 2022-09-25 11:52:31 +02:00
bors
e8683f50fb Auto merge of #2567 - RalfJung:ci-sparse, r=RalfJung
CI: use cargo sparse registry

CI spends a few minutes downloading the index so this could help.
2022-09-25 07:47:42 +00:00
Ralf Jung
7e97f85fb7 force-install tools on stale cache, to make sure we get the latest of all dependencies 2022-09-25 09:47:20 +02:00
Ralf Jung
1f53be15e1 clarify a comment 2022-09-25 09:47:20 +02:00
Ralf Jung
75bbe38e53 CI: use cargo sparse registry 2022-09-25 09:41:44 +02:00
bors
e0982da03a Auto merge of #2565 - RalfJung:ci, r=RalfJung
remove macOS work-around that is no longer needed

Judging from https://github.com/actions/cache/issues/403 it sounds like this work-around is not needed any more.
2022-09-24 20:10:44 +00:00
Ralf Jung
6f6a2dfb92 remove macOS work-around that is no longer needed 2022-09-24 20:03:34 +02:00
bors
c217e07ea8 Auto merge of #2537 - saethlin:dont-back-up-too-far, r=RalfJung
Don't back up past the caller when looking for an FnEntry span

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

This adds a fix for the logic as well as a regression test. In the new test `tests/fail/stacked_borrows/fnentry_invalidation2.rs`, before this PR, we display this diagnostic:
```
help: <3278> was later invalidated at offsets [0x0..0xc] by a Unique FnEntry retag
  --> tests/fail/stacked_borrows/fnentry_invalidation2.rs:13:5
   |
13 |     inner(&mut t);
   |     ^^^^^^^^^^^^^
```
Which is very misleading. It is not this call itself, but what happens within the call that invalidates the tag we want. With this PR, we get:
```
help: <2798> was later invalidated at offsets [0x0..0xc] by a Unique FnEntry retag inside this call
  --> tests/fail/stacked_borrows/fnentry_invalidation2.rs:20:13
   |
20 |     let _ = t.sli.as_mut_ptr();
   |             ^^^^^^^^^^^^^^^^^^
```
Which is much better.
2022-09-24 14:06:10 +00:00
bors
6872a70343 Auto merge of #2563 - RalfJung:nodep, r=RalfJung
run all extern-so tests consistently without dependencies
2022-09-24 06:47:21 +00:00
Ralf Jung
2b3d760db8 run all extern-so tests consistently without dependencies 2022-09-24 08:46:34 +02:00
Christian Poveda
14fc9b29a3
add flag to specify the number of cpus 2022-09-23 16:28:59 -05:00
bors
0d5748e8e9 Auto merge of #2559 - RalfJung:gc-refactor, r=saethlin
GC: factor out visiting all machine values

`@saethlin` that is roughly what I had in mind.

I think some parts of the state are skipped by the visitor. I listed the ones that I found in FIXMEs but I am not sure if that list is complete.
2022-09-23 15:37:21 +00:00
Ralf Jung
38f4338826 GC: factor out visiting all machine values 2022-09-23 09:18:26 +02:00
Ben Kimock
5f498cab13 Only add 'inside this call' for Invalidation diagnostics 2022-09-22 10:44:03 -04:00
Ben Kimock
45d7121e9e Don't move too far down the call stack when reporting FnEntry diagnostics 2022-09-21 18:11:41 -04:00
bors
6671f830b0 Auto merge of #2558 - RalfJung:tag-gc, r=saethlin
readme: tag-gc tweaks

r? `@saethlin`

Is this option truly needed often enough that it should be in the 'common' section? If not I vote for moving it to the 2nd section. Also `10,000` is a confusing way to write numbers in an international context (in many languages, `,` in a number plays the role of the point in English number notation, so using a space or underscore is less likely to lead to confusion).
2022-09-21 18:38:20 +00:00
Matthias Krüger
8e3b9bca65
Rollup merge of #102112 - cuviper:powerpc64-full-relro, r=eholk
Allow full relro on powerpc64-unknown-linux-gnu

This was previously limited to partial relro, citing issues on RHEL6,
but that's no longer a supported platform since #95026. We have long
been enabling full relro in RHEL7's own Rust builds for ppc64, without
trouble, so it should be fine to drop this workaround.
2022-09-23 04:29:20 +02:00
Matthias Krüger
3148b3dc16
Rollup merge of #102104 - Aaron1011:no-test-backtrace, r=Mark-Simulacrum
Set 'exec-env:RUST_BACKTRACE=0' in const-eval-select tests

This allows the tests to pass even if the user has RUST_BACKTRACE set when running 'x.py'
2022-09-23 04:29:19 +02:00
Matthias Krüger
dac0f6e821
Rollup merge of #102095 - oli-obk:simplify, r=TaKO8Ki
Deduplicate two functions that would soon have been three

https://github.com/rust-lang/rust/pull/101900 would have added another copy of this for effects
2022-09-23 04:29:19 +02:00
Matthias Krüger
f4c492cb5d
Rollup merge of #102066 - notriddle:notriddle/headers-max-width, r=GuillaumeGomez
rustdoc: remove unnecessary `max-width` on headers

This code was added in 003b2bc1c6 to prevent these headers from overlapping `.out-of-band` side items. That stopped being a problem when 3f92ff34b5 switched rustdoc over to using `float`, rather than `position: absolute`, to implement this.
2022-09-23 04:29:18 +02:00
Matthias Krüger
adde928305
Rollup merge of #102042 - LukeMathWalker:add-rust-json-docs-to-rustup, r=Mark-Simulacrum
Distribute rust-docs-json via rustup.

I am not 100% sure on how to treat `rust-json-docs` in `target_host_combination`. I went along with a similar strategy to the one used for `rust-docs`, but looking for guidance there.
2022-09-23 04:29:17 +02:00