bors
ade234d574
Auto merge of #125144 - fmease:rollup-4uft293, r=fmease
...
Rollup of 6 pull requests
Successful merges:
- #124307 (Optimize character escaping.)
- #124975 (Use an helper to move the files)
- #125027 (Migrate `run-make/c-link-to-rust-staticlib` to `rmake`)
- #125038 (Invert comparison in `uN::checked_sub`)
- #125104 (Migrate `run-make/no-cdylib-as-rdylib` to `rmake`)
- #125137 (MIR operators: clarify Shl/Shr handling of negative offsets)
r? `@ghost`
`@rustbot` modify labels: rollup
2024-05-15 12:43:34 +00:00
León Orell Valerian Liehr
2659ff3882
Rollup merge of #125104 - Oneirical:test6, r=jieyouxu
...
Migrate `run-make/no-cdylib-as-rdylib` to `rmake`
Part of #121876 and the associated [Google Summer of Code project](https://blog.rust-lang.org/2024/05/01/gsoc-2024-selected-projects.html ).
> "the test will fail if the cdylib is picked, because it doesn't export any rust symbols"
Is that true? Is there a way to verify?
I suggest maybe extending the test with: (after cleaning the directory)
```rust
rustc()
.input("bar.rs")
.crate_type("cdylib")
.run();
rustc()
.input("foo.rs")
.prefer_dynamic()
.run();
fail();
```
to make sure we're actually testing something here.
2024-05-15 14:21:39 +02:00
León Orell Valerian Liehr
2804d4223b
Rollup merge of #125027 - Oneirical:c-test-with-remove, r=jieyouxu
...
Migrate `run-make/c-link-to-rust-staticlib` to `rmake`
Part of #121876 .
r? `@jieyouxu`
2024-05-15 14:21:38 +02:00
bors
3cb0030fe9
Auto merge of #123413 - petrochenkov:delegmulti2, r=fmease
...
delegation: Implement list delegation
```rust
reuse prefix::{a, b, c};
```
Using design described in https://github.com/rust-lang/rfcs/pull/3530#issuecomment-2020869823 (the lists are desugared at macro expansion time).
List delegations are expanded eagerly when encountered, similarly to `#[cfg]`s, and not enqueued for later resolution/expansion like regular macros or glob delegation (https://github.com/rust-lang/rust/pull/124135 ).
Part of https://github.com/rust-lang/rust/issues/118212 .
2024-05-15 10:35:31 +00:00
bors
a71c3ffce9
Auto merge of #125032 - compiler-errors:crash-dump-dir, r=onur-ozkan
...
Make crashes dump mir to build dir
Set `-Zdump-mir-dir` for `crashes`-style tests.
Alternatively, we just remove `tests/crashes/124436.rs`, since if the only way to get it to repro is via `-Zdump-mir`, then maybe it's not worth it to fix.
Fixes #125029
2024-05-15 08:28:02 +00:00
Vadim Petrochenkov
c30b41012d
delegation: Implement list delegation
...
```rust
reuse prefix::{a, b, c}
```
2024-05-15 02:32:59 +03:00
Oneirical
81f7e54962
Port issue-11908 to rmake
2024-05-14 18:15:37 -04:00
Oneirical
1f61cc3078
port no-cdylib-as-rdylib test
2024-05-14 17:02:20 -04:00
Oneirical
1f5837ae25
rewrite c-link-to-rust-staticlib
2024-05-14 16:37:00 -04:00
Bernardo Meurer Costa
c3c9783de2
feat(tools/opt-dist): allow local builds to specify a rustc-perf checkout
2024-05-14 17:34:33 +00:00
Michael Goulet
844c7e826e
Rollup merge of #125047 - Oneirical:test5, r=jieyouxu
...
Migrate `run-make/issue-14500` to new `rmake.rs` format
Part of #121876 and the associated [Google Summer of Code project](https://blog.rust-lang.org/2024/05/01/gsoc-2024-selected-projects.html ).
Note: I find suspicious that `libbar.a` is hardcoded and is not using the `STATICLIB` call to adapt to Windows platforms. Is this intentional? If not, this will need to be changed.
2024-05-14 09:55:28 -04:00
bors
58426f4a5b
Auto merge of #125026 - Oneirical:clink-tests, r=jieyouxu
...
Migrate `run-make/c-link-to-rust-va-list-fn` to `rmake`
Part of #121876 .
r? `@jieyouxu`
2024-05-14 05:35:13 +00:00
Oneirical
45b50d303c
lto function, static_library call, rename
2024-05-13 22:56:21 -04:00
bors
34582118af
Auto merge of #125076 - compiler-errors:alias-term, r=lcnr
...
Split out `ty::AliasTerm` from `ty::AliasTy`
Splitting out `AliasTerm` (for use in project and normalizes goals) and `AliasTy` (for use in `ty::Alias`)
r? lcnr
2024-05-13 22:20:43 +00:00
Michael Goulet
fa84018c2e
Apply nits
2024-05-13 16:55:58 -04:00
Matthias Krüger
ed2c2c06e6
Rollup merge of #125071 - GuillaumeGomez:migrate-rustdoc-target-spec-json-path, r=jieyouxu
...
Migrate rustdoc target spec json path
Part of https://github.com/rust-lang/rust/issues/121876 .
r? `@jieyouxu`
2024-05-13 20:29:19 +02:00
Michael Goulet
3bcdf3058e
split out AliasTy -> AliasTerm
2024-05-13 11:59:42 -04:00
Guillaume Gomez
b515de83af
Migrate run-make/rustdoc-target-spec-json-path to rmake
2024-05-13 15:21:13 +02:00
Guillaume Gomez
4057a7b1e3
Add library_search_path to Rustdoc
2024-05-13 15:21:12 +02:00
Guillaume Gomez
eea00ca354
Add target method to Rustdoc type
2024-05-13 15:04:10 +02:00
bors
abb95639ef
Auto merge of #125024 - Oneirical:master, r=jieyouxu
...
Rewrite 3 very similar `run-make` alloc tests to rmake
Part of #121876
#121918 attempted to port these 3 tests 2 months ago. However, since then, the structure of `run-make-support` has changed a bit and new helper functions were added. Since there has been no activity on the PR, they are good low-hanging fruit to knock down, using the new functions of the current library.
There is also the removal of a useless import on a very similar test.
2024-05-13 11:20:00 +00:00
Oneirical
f2de5fb2ae
rewrite issue-14500 to rmake
2024-05-12 14:00:09 -04:00
Michael Goulet
c697ec41f4
Propagate errors rather than using return_if_err
2024-05-12 12:50:18 -04:00
Michael Goulet
55cf09d761
Make LateCtxt be a type info delegate for EUV for clippy
2024-05-12 12:11:25 -04:00
Michael Goulet
d7595eb6df
Inline MemCategorization into ExprUseVisitor
2024-05-12 11:52:13 -04:00
Guillaume Gomez
1393a87e4f
Rollup merge of #125022 - GuillaumeGomez:migrate-rustdoc-scrape-examples-ordering, r=jieyouxu
...
Migrate rustdoc scrape examples ordering
Part of https://github.com/rust-lang/rust/issues/121876 .
This one adds a lot of utility methods/functions. To prevent having too much changes at once, I didn't make the existing rmake tests use these yet but I'll send a follow-up so they all use it.
r? `@jieyouxu`
2024-05-12 13:41:57 +02:00
Guillaume Gomez
114e25761f
Migrate rustdoc-scrape-examples-ordering to rmake
2024-05-12 11:30:52 +02:00
bors
645bc609d9
Auto merge of #124883 - onur-ozkan:change-stage0-file, r=Mark-Simulacrum
...
use key-value format in stage0 file
Currently, we are working on the python removal task on bootstrap. Which means we have to extract some data from the stage0 file using shell scripts. However, parsing values from the stage0.json file is painful because shell scripts don't have a built-in way to parse json files.
This change simplifies the stage0 file format to key-value pairs, which makes it easily readable from any environment.
See the zulip thread for more details: https://rust-lang.zulipchat.com/#narrow/stream/326414-t-infra.2Fbootstrap/topic/Using.20different.20format.20in.20the.20stage0.20file
2024-05-12 06:26:20 +00:00
Michael Goulet
848f3c2c6e
Make crashes dump mir to build dir
2024-05-11 20:39:25 -04:00
Matthias Krüger
864fce55fe
Rollup merge of #124963 - GuillaumeGomez:migrate-rustdoc-shared-flags, r=jieyouxu
...
Migrate `run-make/rustdoc-shared-flags` to rmake
Part of https://github.com/rust-lang/rust/issues/121876 .
r? ```@jieyouxu```
2024-05-11 23:43:25 +02:00
Oneirical
a2e7e79a13
Port c-link-to-rust-va-list-fn to Rust
2024-05-11 16:41:07 -04:00
Oneirical
198b073192
make tidy happy
2024-05-11 15:54:18 -04:00
Guillaume Gomez
0712ae865f
Add extern_ method to Rustdoc
2024-05-11 21:09:00 +02:00
Guillaume Gomez
0761802e50
Add python_command and source_path functions
2024-05-11 21:09:00 +02:00
Guillaume Gomez
4a00debfef
Add crate_name method to Rustdoc and Rustc
2024-05-11 21:09:00 +02:00
Guillaume Gomez
23e965eb68
Add crate_type method to Rustdoc
2024-05-11 21:09:00 +02:00
onur-ozkan
8c5375ad8e
move comments position in src/stage0
...
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-05-11 20:49:01 +03:00
onur-ozkan
b46c3f279d
use shared stage0 parser from build_helper
...
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-05-11 20:48:41 +03:00
bors
100b123a0d
Auto merge of #124213 - rust-lang:cargo_update, r=Mark-Simulacrum
...
Weekly `cargo update`
Automation to keep dependencies in `Cargo.lock` current.
The following is the output from `cargo update`:
```txt
Locking 77 packages to latest compatible versions
Updating allocator-api2 v0.2.16 -> v0.2.18
Updating anstream v0.6.13 -> v0.6.14
Updating anstyle v1.0.6 -> v1.0.7
Updating anstyle-lossy v1.1.0 -> v1.1.1
Updating anstyle-parse v0.2.3 -> v0.2.4
Updating anstyle-query v1.0.2 -> v1.0.3
Updating anstyle-svg v0.1.3 -> v0.1.4
Updating anstyle-wincon v3.0.2 -> v3.0.3
Updating anyhow v1.0.81 -> v1.0.83
Updating autocfg v1.2.0 -> v1.3.0
Updating bumpalo v3.15.4 -> v3.16.0
Updating bytecount v0.6.7 -> v0.6.8
Updating clap_complete v4.5.1 -> v4.5.2
Updating color-print v0.3.5 -> v0.3.6
Updating color-print-proc-macro v0.3.5 -> v0.3.6
Updating colorchoice v1.0.0 -> v1.0.1
Updating dissimilar v1.0.7 -> v1.0.9
Updating either v1.10.0 -> v1.11.0
Updating encoding_rs v0.8.33 -> v0.8.34
Updating errno v0.3.8 -> v0.3.9
Updating fastrand v2.0.2 -> v2.1.0
Updating flate2 v1.0.28 -> v1.0.30
Updating fluent-bundle v0.15.2 -> v0.15.3
Updating fluent-syntax v0.11.0 -> v0.11.1
Updating getrandom v0.2.13 -> v0.2.14 (latest: v0.2.15)
Updating hashbrown v0.14.3 -> v0.14.5
Updating intl-memoizer v0.5.1 -> v0.5.2
Adding is_terminal_polyfill v1.70.0
Updating jobserver v0.1.28 -> v0.1.31
Updating lock_api v0.4.11 -> v0.4.12
Updating num-traits v0.2.18 -> v0.2.19
Removing packed_simd v0.3.9
Updating parking_lot v0.12.1 -> v0.12.2
Updating parking_lot_core v0.9.9 -> v0.9.10
Updating pest v2.7.9 -> v2.7.10
Updating pest_derive v2.7.9 -> v2.7.10
Updating pest_generator v2.7.9 -> v2.7.10
Updating pest_meta v2.7.9 -> v2.7.10
Updating proc-macro2 v1.0.79 -> v1.0.82
Updating pulldown-cmark v0.10.2 -> v0.10.3
Updating pulldown-cmark-escape v0.10.0 -> v0.10.1
Updating quote v1.0.35 -> v1.0.36
Adding redox_syscall v0.5.1
Updating rustc-demangle v0.1.23 -> v0.1.24
Updating rustix v0.38.32 -> v0.38.34
Updating rustversion v1.0.15 -> v1.0.16
Updating ryu v1.0.17 -> v1.0.18
Updating security-framework v2.10.0 -> v2.11.0
Updating security-framework-sys v2.10.0 -> v2.11.0
Updating self_cell v1.0.3 -> v1.0.4
Updating semver v1.0.22 -> v1.0.23
Updating serde v1.0.197 -> v1.0.201
Updating serde_derive v1.0.197 -> v1.0.201
Updating serde_json v1.0.115 -> v1.0.117
Updating socket2 v0.5.6 -> v0.5.7
Updating syn v2.0.58 -> v2.0.62
Updating sysinfo v0.30.8 -> v0.30.12
Updating thiserror v1.0.58 -> v1.0.60
Updating thiserror-impl v1.0.58 -> v1.0.60
Updating tokio-util v0.7.10 -> v0.7.11
Updating type-map v0.4.0 -> v0.5.0
Updating unic-langid v0.9.4 -> v0.9.5
Updating unic-langid-impl v0.9.4 -> v0.9.5
Updating unic-langid-macros v0.9.4 -> v0.9.5
Updating unic-langid-macros-impl v0.9.4 -> v0.9.5
Updating unicode-width v0.1.11 -> v0.1.12
Updating winapi-util v0.1.6 -> v0.1.8
Updating windows-targets v0.52.4 -> v0.52.5
Updating windows_aarch64_gnullvm v0.52.4 -> v0.52.5
Updating windows_aarch64_msvc v0.52.4 -> v0.52.5
Updating windows_i686_gnu v0.52.4 -> v0.52.5
Adding windows_i686_gnullvm v0.52.5
Updating windows_i686_msvc v0.52.4 -> v0.52.5
Updating windows_x86_64_gnu v0.52.4 -> v0.52.5
Updating windows_x86_64_gnullvm v0.52.4 -> v0.52.5
Updating windows_x86_64_msvc v0.52.4 -> v0.52.5
Updating zerocopy v0.7.32 -> v0.7.34
Updating zerocopy-derive v0.7.32 -> v0.7.34
note: pass `--verbose` to see 94 unchanged dependencies behind latest
```
2024-05-11 14:53:07 +00:00
Mark Rousskov
e068e004d7
Add windows_i686_gnullvm to the list
2024-05-11 10:25:37 -04:00
Guillaume Gomez
8167a35319
Migrate run-make/rustdoc-shared-flags to rmake
2024-05-11 12:39:22 +02:00
bors
79a85d4e99
Auto merge of #3598 - RalfJung:heap, r=RalfJung
...
alloc: update comments around malloc() alignment
Also separate the C heap shims form the Windows heap shims; their guarantees aren't quite the same.
2024-05-11 08:53:42 +00:00
Ralf Jung
01b151ebd4
separate windows heap functions from C heap shims
2024-05-11 10:52:08 +02:00
Ralf Jung
7a0ee91ba5
alloc: update comments around malloc() alignment
2024-05-11 10:52:02 +02:00
The Miri Cronjob Bot
ce3daac283
Merge from rustc
2024-05-11 05:03:34 +00:00
The Miri Cronjob Bot
4d63d0af4d
Preparing for merge from rustc
2024-05-11 04:56:14 +00:00
Weihang Lo
27197ef94f
Update cargo
2024-05-10 22:27:58 -04:00
Michael Goulet
1e5ec0a12c
Lift TraitRef into rustc_type_ir
2024-05-10 15:44:03 -04:00
Ralf Jung
25a3b6687e
rename 'extern-so' to 'native-lib'
2024-05-10 18:30:48 +02:00
Matthias Krüger
9a9ec90567
Rollup merge of #124957 - compiler-errors:builtin-deref, r=michaelwoerister
...
Make `Ty::builtin_deref` just return a `Ty`
Nowhere in the compiler are we using the mutability part of the `TyAndMut` that we used to return.
2024-05-10 16:10:47 +02:00