Commit graph

228663 commits

Author SHA1 Message Date
Oli Scherer
a811adab34 Ignore test on apple 2023-07-06 10:00:06 +02:00
Ralf Jung
a4b7e14230 C "memcpy" shim: ensure the pointers are valid
Also add tests for some other shims that already behave correctly
2023-07-05 23:08:30 +02:00
bors
7591c51436 Auto merge of #2960 - oli-obk:run_filter, r=oli-obk
Restore test filtering by substring.

Previously it was only looking for tests whose path was a prefix of the given filter

fixes #2958
2023-07-04 12:12:22 +00:00
bors
8fa48940a0 Auto merge of #2963 - RalfJung:start, r=RalfJung
better error on missing #[start]
2023-07-04 11:24:26 +00:00
Oli Scherer
da98baa493 Restore test filtering by substring.
Previously it was only looking for tests whose path was a prefix of the given filter
2023-07-04 11:23:14 +00:00
Ralf Jung
812f9b2620 better error on missing #[start] 2023-07-04 13:23:05 +02:00
bors
2b3fae1ea9 Auto merge of #2957 - RalfJung:zulip, r=oli-obk
send link to PR to Zulip
2023-07-04 06:40:16 +00:00
bors
89c2596dde Auto merge of #2959 - RalfJung:vectest, r=RalfJung
vec tets: ensure pointer is still writeable

Under Tree Borrows, a pointer can become read-only: still allowing reads but not permitting writes any more. So these tests that want to check that pointers remain valid need to do writes to ensure that pointers indeed remain fully valid.
2023-07-03 12:00:27 +00:00
Ralf Jung
a68afa2211 vec tets: ensure pointer is still writeable 2023-07-03 13:58:42 +02:00
Ralf Jung
4951d5f404 remove outdated comment 2023-07-03 11:59:19 +02:00
Ralf Jung
46c1e61792 send link to PR to Zulip 2023-07-03 11:29:46 +02:00
bors
a8b6ec1667 Auto merge of #2955 - rust-lang:rustup2023-07-03, r=oli-obk
Automatic sync from rustc
2023-07-03 08:16:58 +00:00
Oli Scherer
6a21b2ddc2 Silence clippy on FIXME'd code and fix the new lints otherwise 2023-07-03 08:15:34 +00:00
The Miri Conjob Bot
707afc389a fmt 2023-07-03 06:35:03 +00:00
The Miri Conjob Bot
1505dd86d1 Merge from rustc 2023-07-03 06:32:31 +00:00
Jakub Beránek
12b75fe18b
Fix LLVM config path on Windows 2023-07-06 00:06:24 +02:00
Jakub Beránek
be99bb9cbf
Use llvm-config instead of download-ci-llvm in PGO script
This should avoid CI breakage when the LLVM stamp is updated, and also it will avoid an unnecessary LLVM download from CI.
2023-07-04 15:38:32 +02:00
The Miri Conjob Bot
17e17e1e81 Preparing for merge from rustc 2023-07-03 06:25:04 +00:00
bors
1623634aa5 Auto merge of #113271 - matthiaskrgr:rollup-2ik4vaj, r=matthiaskrgr
Rollup of 3 pull requests

Successful merges:

 - #113253 (Fixed documentation of from<CString> for Rc<CStr>: Arc -> Rc)
 - #113258 (Migrate GUI colors test to original CSS color format)
 - #113259 (Suggest `x build library` for a custom toolchain that fails to load `core`)

r? `@ghost`
`@rustbot` modify labels: rollup
2023-07-03 05:07:26 +00:00
bors
d5a74249c8 Auto merge of #112882 - DrMeepster:new_un_derefer, r=oli-obk
Rewrite `UnDerefer`

Currently, `UnDerefer` is used by drop elaboration to undo the effects of the `Derefer` pass. However, it just recreates the original places with derefs in the middle of the projection. Because `ProjectionElem::Deref` is intended to be removed completely in the future, this will not work forever.

This PR introduces a `deref_chain` method that returns the places behind `DerefTemp` locals in a place and rewrites the move path code to use this. In the process, `UnDerefer` was merged into `MovePathLookup`. Now that move paths use the same places as in the MIR, the other uses of `UnDerefer` no longer require it.

See #98145
cc `@ouz-a`
r? `@oli-obk`
2023-07-03 02:46:39 +00:00
bors
571c9fc8a9 Auto merge of #113176 - workingjubilee:backtrace-0.3.68, r=thomcc
Backtrace 0.3.68

Uptakes these releases:
- https://github.com/rust-lang/backtrace-rs/releases/tag/0.3.68

r? `@thomcc`
2023-07-03 00:21:29 +00:00
Jubilee Young
079949da8e Update std to backtrace 0.3.68
Dedup addr2line, miniz_oxide, object in .lock
2023-07-02 17:02:45 -07:00
Matthias Krüger
1366ad36a6
Rollup merge of #113259 - MU001999:diag/add-std, r=Nilstrieb
Suggest `x build library` for a custom toolchain that fails to load `core`

Fixes #113222

r? `@jyn514`
2023-07-02 23:30:47 +02:00
Matthias Krüger
0aac35db10
Rollup merge of #113258 - GuillaumeGomez:migrate-gui-test-color-19, r=notriddle
Migrate GUI colors test to original CSS color format

Follow-up of https://github.com/rust-lang/rust/pull/111459.

r? `@notriddle`
2023-07-02 23:30:46 +02:00
Matthias Krüger
023f72ad5b
Rollup merge of #113253 - nurmukhametdaniyar:rc_from_cstr_doc_fix, r=Nilstrieb
Fixed documentation of from<CString> for Rc<CStr>: Arc -> Rc

Fix #113131
2023-07-02 23:30:46 +02:00
bors
839e9a6e12 Auto merge of #113046 - Nilstrieb:update, r=Mark-Simulacrum
cargo update

#112865 with the tidy exemptions and tracing and syn 2 not upgraded

Additional deps:
equivalent: indexmap
errno: through rustix
errno-dragonfly: errno
nu-ansi-term: tracing
overload: nu-ansi-term

r? Mark-Simulacrum
2023-07-02 21:24:26 +00:00
bors
7d63d7021f Auto merge of #2954 - RalfJung:cron, r=RalfJung
cron auto-PR: can't seem to avoid repeating the branch name...
2023-07-02 20:46:11 +00:00
Ralf Jung
352180b239 can't seem to avoid repeating the branch name... 2023-07-02 22:43:04 +02:00
Ralf Jung
4c7fbf8186 more CI yml cleanup 2023-07-02 22:40:23 +02:00
bors
f0374712c4 Auto merge of #2953 - RalfJung:cron, r=RalfJung
sadly 'gh' doesnt support all git upstream branch configs
2023-07-02 19:43:10 +00:00
Ralf Jung
2c5e076fde sadly 'gh' doesnt support all git upstream branch configs 2023-07-02 21:42:34 +02:00
Nilstrieb
1e5d8fbcc9 downgrade compiler_builtins
The outline-atomics support in compiler_builtins messed up and wasn't limited to linux only.
https://github.com/rust-lang/compiler-builtins/pull/532/files#r1249354225
2023-07-02 21:02:31 +02:00
Nilstrieb
fd49b1d37f Downgrade rustix
See https://github.com/rust-lang/rust/pull/113046#issuecomment-1616094626.
2023-07-02 21:02:31 +02:00
Nilstrieb
171be8ce94 Downgrade tracing and syn
There's currently a deadlock with tracing when RUSTC_LOG is enabled.
Downgrade tracing-core for now to avoid blocking the other updates.

syns upgrades cause some nontrivial changes in the diagnostics derive tests,
which are best dealt with in another PR.
2023-07-02 21:02:31 +02:00
bors
bf0e22b298 Auto merge of #108537 - GuillaumeGomez:rustdoc-search-whitespace-as-separator, r=notriddle
rustdoc: Allow whitespace as path separator like double colon

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

I think it makes sense since it allows more common cases, however it also makes the syntax heavier. Not sure what the rest of the team thinks about it. In any case we'll need to go through FCP.

Full explanation for the changes is available [here](https://github.com/rust-lang/rust/pull/108537#issuecomment-1589480564).

r? `@notriddle`
2023-07-02 18:49:29 +00:00
Nilstrieb
3295cdfff4 cargo update
Additional deps:
equivalent: indexmap
nu-ansi-term: tracing
overload: nu-ansi-term
2023-07-02 20:41:03 +02:00
bors
0bf13a4870 Auto merge of #2952 - RalfJung:cron, r=RalfJung
cronjob auto-PR: try to fix setting the remote branch
2023-07-02 18:25:59 +00:00
Ralf Jung
32168b7653 cronjob auto-PR: try to fix setting the remote branch 2023-07-02 20:24:03 +02:00
bors
7d12d2f08b Auto merge of #2950 - icewind1991:cargo-miri-rustc-error, r=RalfJung
cargo-miri: better error message when RUSTC is not set

Currently, when running `cargo-miri` instead of `cargo miri` you get a very confusing.

```
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: NotPresent', src/tools/miri/cargo-miri/src/main.rs:83:41
```

error. This replaces that with a message telling them to use `cargo miri`
2023-07-02 17:37:21 +00:00
bors
a6eb25aca2 Auto merge of #2951 - rust-lang:cron, r=RalfJung
cron auto-PR: need to set upstream branch
2023-07-02 17:05:00 +00:00
Ralf Jung
f2ce23074e cron auto-PR: need to set upstream branch 2023-07-02 19:02:34 +02:00
bors
32d81eccd6 Auto merge of #113260 - flip1995:clippyup, r=Manishearth
Update Clippy

r? `@Manishearth`

cc `@oli-obk` (for the ui-test changes in de69d556eb and the valtree fix in 0cbe963e51)

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

This must've been the most involved Clippy sync ever.
2023-07-02 15:14:59 +00:00
Robin Appelman
cc4670f54d cargo-miri: better error message when RUSTC is not set 2023-07-02 16:53:29 +02:00
Philipp Krones
a6d3c82360
Update Cargo.lock 2023-07-02 15:07:47 +02:00
Philipp Krones
de69d556eb
Fix compile-test tests to work with the new ui_test crate 2023-07-02 15:07:39 +02:00
Philipp Krones
0cbe963e51
Fix valtree changes 2023-07-02 14:59:44 +02:00
Philipp Krones
beb0e731de
Merge commit '37f4c1725d3fd7e9c3ffd8783246bc5589debc53' into clippyup 2023-07-02 14:59:02 +02:00
bors
131a03664e Auto merge of #113040 - Kobzol:llvm-remark-streamer, r=tmiasko
Add `-Zremark-dir` unstable flag to write LLVM optimization remarks to YAML

This PR adds an option for `rustc` to emit LLVM optimization remarks to a set of YAML files, which can then be digested by existing tools, like https://github.com/OfekShilon/optview2. When `-Cremark-dir` is passed, and remarks are enabled (`-Cremark=all`), the remarks will be now written to the specified directory, **instead** of being printed to standard error output.  The files are named based on the CGU from which they are being generated.

Currently, the remarks are written using the LLVM streaming machinery, directly in the diagnostics handler. It seemed easier than going back to Rust and then form there back to C++ to use the streamer from the diagnostics handler. But there are many ways to implement this, of course, so I'm open to suggestions :)

I included some comments with questions into the code. Also, I'm not sure how to test this.

r? `@tmiasko`
2023-07-02 12:48:44 +00:00
bors
918f39375f Auto merge of #2949 - RalfJung:cron, r=RalfJung
cronjob auto-PR: fetch more of the history
2023-07-02 12:03:13 +00:00
Ralf Jung
7adf8dd345 CI cleanup 2023-07-02 14:02:37 +02:00