Commit graph

5746 commits

Author SHA1 Message Date
Ralf Jung
33bdddb75c remove FFI support for macOS 2022-10-07 14:29:18 +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
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
5ed9f5f1a2 bump rustc_tools_util 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
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
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
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
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
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
Ralf Jung
bef2bd8cc2 readme: tag-gc tweaks 2022-09-21 20:11:52 +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
Dylan DPC
b36a10af7e
Rollup merge of #101598 - chriswailes:sanitizers, r=nagisa,eholk
Update rustc's information on Android's sanitizers

This patch updates sanitizer support definitions for Android inside the compiler.  It also adjusts the logic to make sure no pre-built sanitizer runtime libraries are emitted as these are instead provided dynamically on Android targets.
2022-09-22 18:25:51 +05:30
Luca Palmieri
e572d513bd Distribute rust-json-docs via rustup. 2022-09-22 12:22:49 +01:00
bors
c10f7d7395 Auto merge of #102028 - oli-obk:miri_subtree, r=oli-obk
Make miri a subtree instead of a submodule

r? `@RalfJung`

fixes #101867
fixes https://github.com/rust-lang/rust/issues/100134
2022-09-22 09:45:04 +00:00
bors
626b02a8f9 Auto merge of #102121 - JohnTitor:rollup-3fb1wrt, r=JohnTitor
Rollup of 12 pull requests

Successful merges:

 - #101952 (Avoid panicking on missing fallback)
 - #102030 (Don't crate-locally reexport walk functions in tidy)
 - #102032 (Adding ignore fuchsia tests for signal interpretation cases)
 - #102033 (Adding needs-unwind to nicer-assert-messages compiler ui tests)
 - #102054 (Unify "all items" page's sidebar with other pages)
 - #102071 (Adding needs-unwind for tests testing memory size of Futures/Closures)
 - #102073 (Adding ignore fuchsia tests for execvp)
 - #102075 (rustdoc: remove no-op CSS `.content > .methods > .method`)
 - #102079 (Update books)
 - #102084 (Adding needs-unwind for test using panic::catch_unwind)
 - #102100 (Prevent usage of .stab elements to create scrollable areas in doc blocks)
 - #102102 (Add doc aliases on Sized trait)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
2022-09-22 01:41:03 +00:00
Yuki Okushi
614e18bf59
Rollup merge of #102030 - est31:tidy_walk_no_reexport, r=Mark-Simulacrum
Don't crate-locally reexport walk functions in tidy

I've moved the walk functions into their own module in #100591 and didn't want to make changing the paths everywhere in tidy part of the PRs diff, so I just reexported the functions locally. This PR removes the crate-local reexport and instead does module level reexports. I'm not sure how much it's worth it and whether the new state is better, idk. Feel free to have any opinion on this.
2022-09-22 09:03:52 +09:00
Yuki Okushi
b08c8cb7e0
Rollup merge of #101952 - Mark-Simulacrum:missing-fallback, r=ehuss
Avoid panicking on missing fallback

This just prints a message but continues on if a fallback is missing, which can happen when we're building a partial set of builders and producing a dev-static build from it (e.g., when no Apple builder runs at all).

Probably the more extensive fix is to allow the build-manifest invoker to specify the expected set of targets & hosts, but that's a far more extensive change. The main risk from this is that we accidentally start falling back to linux docs across all platforms without noticing. I'm not sure that we can do much about that though at this time.

cc `@ehuss` since IIRC you participated in adding this system

This comes up when building a test nightly from a try build, e.g., https://github.com/rust-lang/rust/pull/101855#issuecomment-1250123298. For now I'm going to manually cherry pick this onto that PR for testing purposes.
2022-09-22 09:03:52 +09:00
David Koloski
0650c4078c Merge commit '7248d06384' into sync-from-clippy 2022-09-21 13:13:27 -04:00
Oli Scherer
47cb378526 Remove unused imports 2022-09-21 15:37:10 +00:00
Oli Scherer
f45b570e08 Add 'src/tools/miri/' from commit '75dd959a3a'
git-subtree-dir: src/tools/miri
git-subtree-mainline: 3f3167fb59
git-subtree-split: 75dd959a3a
2022-09-21 15:36:26 +00:00
Oli Scherer
6cfa7ef2ba Remove miri from the submodule list and require it for CI to pass 2022-09-21 15:35:53 +00:00
Oli Scherer
d9382d03bd Remove miri submodule 2022-09-21 15:35:53 +00:00
Mark Rousskov
84fb168d7f Avoid panicking on missing fallback
This just prints a message but continues on if a fallback is missing,
which can happen when we're building a partial set of builders and
producing a dev-static build from it (e.g., when no Apple builder runs
at all).

Probably the more extensive fix is to allow the build-manifest invoker
to specify the expected set of targets & hosts, but that's a far more
extensive change. The main risk from this is that we accidentally start
falling back to linux docs across all platforms without noticing. I'm
not sure that we can do much about that though at this time.
2022-09-20 18:23:22 -04:00
Chris Wailes
3d5a41724b Update rustc's information on Android's sanitizers
This patch updates sanitizier support definitions for Android inside the
compiler.  It also adjusts the logic to make sure no pre-built sanitizer
runtime libraries are emitted as these are instead provided dynamically
on Android targets.
2022-09-20 14:16:57 -07:00
Michael Howell
25f5483f58
Rollup merge of #102053 - lnicola:rust-analyzer-2022-09-20, r=lnicola
⬆️ rust-analyzer

r? ``@ghost``
2022-09-20 10:13:03 -07:00
Laurențiu Nicola
9dcd19bd2e ⬆️ rust-analyzer 2022-09-20 17:39:17 +03:00