249657 Commits

Author SHA1 Message Date
bors
13ef05e2be Auto merge of #124139 - cuviper:beta-next, r=cuviper
[beta] backports

- Silence `unused_imports` lint for redundant imports #123744
- Call the panic hook for non-unwind panics in proc-macros #123825
- rustdoc: check redundant explicit links with correct itemid #123905
- disable two debuginfo tests under gdb 15 #123963

r? cuviper
2024-04-19 21:56:20 +00:00
Rémy Rakic
c623345791 disable two debuginfo tests under gdb 15
it seems gdb 15 regresses some of our debuginfo tests. disable them
temporarily so that CI doesn't randomly start failing soon.

(cherry picked from commit 6e19f82160c216fcb5f8eaff915b7fe274a5568e)
2024-04-19 09:28:14 -07:00
Michael Howell
46515fd778 rustdoc: check redundant explicit links with correct itemid
Fixes a regression caused by 0a50dba50bedd24377bd1066da3b4b7066df4d28

(cherry picked from commit 0fea38a01f4015d310230b76984068b6fe8414d4)
2024-04-18 15:57:41 -07:00
Ben Kimock
4a8f091c01 Call the panic hook for non-unwind panics in proc-macros
(cherry picked from commit d8dc28b93e4cbfe2a3c26af06c73b0ea46f67a1e)
2024-04-18 15:57:41 -07:00
Michael Goulet
8fcffffad9 Silence unused_imports lint for redundant imports
(cherry picked from commit 0db2a4010a5a7a57372e9135d327da8c7d92c8ab)
2024-04-18 15:57:41 -07:00
bors
6fd1912922 Auto merge of #123801 - cuviper:beta-next, r=cuviper
[beta] backports

- fix attribute validation on associated items in traits #121545
- Only inspect user-written predicates for privacy concerns #123377
- Check def id before calling `match_projection_projections` #123471
- Restore `pred_known_to_hold_modulo_regions` #123578
- Beta revert "Use OS thread name by default" #123533

r? cuviper
2024-04-12 02:06:12 +00:00
Chris Denton
3e376313d5 Beta revert "Use OS thread name by default"
This reverts #121666 due to #123495

This has already been done on master but beta needs something that will backport cleanly.

(cherry picked from commit 081ad8527d7b79e4761c497c12930e630de9a230)
2024-04-11 08:31:10 -07:00
Rémy Rakic
db57812e3e Revert "remove pred_known_to_hold_modulo_regions"
This reverts commit 399a258f46074740862568b124c02f7b7d04638c.

(cherry picked from commit 68b4257ccf0c94f855a46b48e48c4c73559eff84)
2024-04-11 08:30:17 -07:00
Rémy Rakic
9cf0875be8 add non-regression test for issue 123275
(cherry picked from commit 54f8db84329116889fce5d58292b5cc6b83642e6)
2024-04-11 08:30:17 -07:00
Michael Goulet
3b4de3d475 Check def id before calling match_projection_projections
(cherry picked from commit 43dae6934153693be62902fcefed0f97b4ca892f)
2024-04-11 08:30:12 -07:00
Oli Scherer
5d40b801dc Only inspect user-written predicates for privacy concerns
(cherry picked from commit 83bd12c70fd34dece71bcc632ee3df64036ca1d8)
2024-04-11 08:30:06 -07:00
Oli Scherer
0ac7d33475 Add regression test
(cherry picked from commit 769ab55558488d1ff786fa13e8ba1fb071a9791b)
2024-04-11 08:30:06 -07:00
gvozdvmozgu
e9f44b323d fix attribute validation on associated items in traits
(cherry picked from commit 8b576d553678688ece127b6f6a25b611e8726c05)
2024-04-11 08:30:00 -07:00
bors
27011d5dc0 Auto merge of #123682 - pietroalbini:pa-cve-2024-24576-beta, r=pietroalbini
[beta] Backport fix of CVE-2024-24576

r? `@ghost`

See https://blog.rust-lang.org/2024/04/09/cve-2024-24576.html
2024-04-09 22:01:32 +00:00
Pietro Albini
fa1e080f90
allow the test bat files in tidy 2024-04-09 18:17:02 +01:00
Pietro Albini
4ef17eff84
update release notes 2024-04-09 01:15:12 +02:00
Chris Denton
eead91912b
Use new-style directives in ui test 2024-04-09 01:14:22 +02:00
Chris Denton
bf7668043a
Document Windows argument splitting 2024-04-09 01:14:12 +02:00
Chris Denton
7402e61d80
Disallow or quote all specials in bat args 2024-04-09 01:14:06 +02:00
bors
9eff510359 Auto merge of #123466 - cuviper:beta-next, r=cuviper
[beta] backports

- Fix f16 and f128 feature gates in editions other than 2015 #123307 / #123445
- Update to LLVM 18.1.2 #122772
- unix fs: Make hurd using explicit new rather than From #123057
- Don't inherit codegen attrs from parent static #123310
- Make sure to insert Sized bound first into clauses list #123302

r? cuviper
2024-04-06 04:31:16 +00:00
Michael Goulet
cf4493134b Make sure to insert Sized bound first into clauses list
(cherry picked from commit f2fd2d8c7080f7a7d770b3e3d27e525250c182dc)
2024-04-04 10:57:32 -07:00
Michael Goulet
5538d6d2b0 Don't inherit codegen attrs from parent static
(cherry picked from commit 4ff8a9bd6b64e32703603cf8bc8cb5cb221d4889)
2024-04-04 10:57:32 -07:00
Samuel Thibault
d02fc8edac unix fs: Make hurd and horizon using explicit new rather than From
408c0ea2162b ("unix time module now return result") dropped the From
impl for SystemTime, breaking the hurd and horizon builds.

Fixes #123032

(cherry picked from commit 7b4e5079619f99a1bff8a2f388b498be5687d280)
2024-04-04 10:57:32 -07:00
Nikita Popov
986e6f7d03 Update to LLVM 18.1.2
(cherry picked from commit 022e42db00384212e0325d48316886fdf4af9c5b)
2024-04-04 10:24:16 -07:00
Trevor Gross
356bb136cf Fix f16 and f128 feature gates in editions other than 2015
Fixes https://github.com/rust-lang/rust/issues/123282

Co-authored-by: Vadim Petrochenkov <vadim.petrochenkov@gmail.com>
(cherry picked from commit 5afe072ead1154f9817ee610e3e60345507c7625)
2024-04-04 00:22:21 -05:00
Trevor Gross
07ed44548d Update f16 and f128 tests to run on both 2015 and 2018 editions
Reproduce the bug from <https://github.com/rust-lang/rust/issues/123282>
that indicates this feature gate hits edition-dependent resolution paths.
Resolution changed in edition 2018, so test that as well.

(cherry picked from commit 9a7b1762279eaa95d0289760d3b859fbbc9221f1)
2024-04-04 00:22:21 -05:00
bors
c1195518c8 Auto merge of #123172 - cuviper:beta-next, r=cuviper
[beta] backports

- Do not eat nested expressions' results in `MayContainYieldPoint` format args visitor #122680
- Fix heading anchors in doc pages. #122693
- Make `#[diagnostic::on_unimplemented]` format string parsing more robust #122402
-  Update ninja on Windows #123178

r? cuviper
2024-03-29 04:27:09 +00:00
Nilstrieb
10e6ec5ffc Update ninja on Windows
Errors started showing up, and I read somewhere that this might be
because of old ninja versions. This ninja version is indeed *ancient*.

```
multiple outputs aren't (yet?) supported by depslog; bring this up on the mailing list if it affects you
```

(cherry picked from commit b546764cbef7ac449cbad86636b4ca8daa9f5ef6)
2024-03-28 17:24:56 -07:00
Georg Semmler
052be5c643 Make #[diagnostic::on_unimplemented] format string parsing more robust
This commit fixes several issues with the format string parsing of the
`#[diagnostic::on_unimplemented]` attribute that were pointed out by
@ehuss.
In detail it fixes:

* Appearing format specifiers (display, etc). For these we generate a
warning that the specifier is unsupported. Otherwise we ignore them
* Positional arguments. For these we generate a warning that positional
arguments are unsupported in that location and replace them with the
format string equivalent (so `{}` or `{n}` where n is the index of the
positional argument)
* Broken format strings with enclosed }. For these we generate a warning
about the broken format string and set the emitted message literally to
the provided unformatted string
* Unknown format specifiers. For these we generate an additional warning
about the unknown specifier. Otherwise we emit the literal string as
message.

This essentially makes those strings behave like `format!` with the
minor difference that we do not generate hard errors but only warnings.
After that we continue trying to do something unsuprising (mostly either
ignoring the broken parts or falling back to just giving back the
literal string as provided).

Fix #122391

(cherry picked from commit 5568c569c03c8c22ce81185b9e49efcaa6866050)
2024-03-28 10:28:16 -07:00
Eric Huss
44230e4587 Fix heading anchors in doc pages.
(cherry picked from commit 39f2d25090e4b61a695fb6d72113689dcf2ae724)
2024-03-28 10:28:11 -07:00
Rémy Rakic
3b5101700f add non-regression test for issue 122674
(cherry picked from commit f3e9dfaed6c4d44fc0a5182221c31e5b0ff038fd)
2024-03-28 10:28:06 -07:00
Rémy Rakic
4cfc174018 do not eat nested exprs result in format args visitor
(cherry picked from commit 8beec62315538da7449fe869fd366181f7923b6e)
2024-03-28 10:28:06 -07:00
bors
4147533e05 Auto merge of #123117 - weihanglo:update-beta-cargo, r=weihanglo
[beta-1.78] Update cargo

2 commits in 2fe739fcf16c5bf8c2064ab9d357f4a0e6c8539b..54d8815d04fa3816edc207bbc4dd36bf18014dbc
2024-03-15 21:39:18 +0000 to 2024-03-26 18:23:22 +0000
- [beta-1.78] Do not strip debuginfo by default for MSVC (rust-lang/cargo#13653)
- [beta 1.78] Fix publish script due to crates.io CDN change (rust-lang/cargo#13616)

r? ghost
2024-03-27 13:20:10 +00:00
Weihang Lo
f726c0e619
[beta-1.78] Update cargo 2024-03-26 20:50:12 -04:00
bors
277d06bc95 Auto merge of #122853 - Mark-Simulacrum:beta-next, r=Mark-Simulacrum
[beta] Bump to releases 1.77 compiler

Completing the release [process](https://forge.rust-lang.org/release/process.html)...

r? `@Mark-Simulacrum`
2024-03-23 06:34:54 +00:00
Mark Rousskov
ca8ca610f4 Bump to releases 1.77 compiler 2024-03-21 20:05:14 -04:00
bors
efd9d2df12 Auto merge of #122640 - Mark-Simulacrum:beta-next, r=Mark-Simulacrum
[beta] branch 1.78

https://forge.rust-lang.org/release/process.html#promote-branches-t-3-days-monday

r? `@Mark-Simulacrum`
2024-03-18 14:44:59 +00:00
Mark Rousskov
7882e112c1 Explicitly pass RUSTC_BOOTSTRAP to running wasmtime
This ensures that tests are permitted to use nightly features, which is
currently required for them to run at all.

Also ignore a test that relies on running with RUSTC_BOOTSTRAP *not*
set.
2024-03-18 08:59:42 -04:00
Mark Rousskov
c303e76f4d Bump CI channel to beta 2024-03-17 10:36:47 -04:00
Mark Rousskov
b3826986b5 branch 1.78: replace-version-placeholder 2024-03-17 10:36:26 -04:00
bors
766bdce744 Auto merge of #122602 - ChrisDenton:rollup-f0vumtg, r=ChrisDenton
Rollup of 7 pull requests

Successful merges:

 - #122323 (configure.py: add flag for loongarch64 musl-root)
 - #122372 (prevent notifying the same changes more than once)
 - #122390 (Bump windows-bindgen to 0.55.0)
 - #122401 (Check library crates for all tier 1 targets in PR CI)
 - #122489 (Bump `cargo update` PR more often)
 - #122583 (Use `UnsafeCell` for fast constant thread locals)
 - #122590 (bootstrap: Don't name things copy that are not copies)

r? `@ghost`
`@rustbot` modify labels: rollup
2024-03-16 20:14:20 +00:00
Chris Denton
d3ad841781
Rollup merge of #122590 - Nilstrieb:bootstrap-do-you-know-what-the-word-copy-means, r=Mark-Simulacrum
bootstrap: Don't name things copy that are not copies

The bootstrap copy methods don't actually copy, they just hard link. Simply lying about it being "copying" can be very confusing! (ask me how I know!).

I'm not sure whether the name I chose is the ideal name, but it's definitely better than before.
2024-03-16 18:27:35 +00:00
Chris Denton
a9f8f8b070
Rollup merge of #122583 - Zoxc:tls-non-mut, r=joboet
Use `UnsafeCell` for fast constant thread locals

This uses `UnsafeCell` instead of `static mut` for fast constant thread locals. This changes the type of the TLS shims to return `&UnsafeCell<T>` instead of `*mut T` which means they are always non-null so LLVM can optimize away the check for `Some` in `LocalKey::with` if `T` has no destructor.

LLVM is currently unable to do this optimization as we lose the fact that `__getit` always returns `Some` as it gets optimized to just returning the value of the TLS shim.
2024-03-16 18:27:34 +00:00
Chris Denton
42e03fc158
Rollup merge of #122489 - clubby789:more-cargo-update, r=Mark-Simulacrum
Bump `cargo update` PR more often

r? `@Mark-Simulacrum`

(https://github.com/rust-lang/rust/pull/121923#issuecomment-1986879572)
2024-03-16 18:27:34 +00:00
Chris Denton
1fbe1390ca
Rollup merge of #122401 - ChrisDenton:check-tier1, r=Mark-Simulacrum
Check library crates for all tier 1 targets in PR CI

Let's try checking all tier 1 targets. Shouldn't take much time.

Not sure if this is the right place to put it or not but let's see if it works first.
2024-03-16 18:27:33 +00:00
Chris Denton
ceef59fa2b
Rollup merge of #122390 - ChrisDenton:bindgen, r=Mark-Simulacrum
Bump windows-bindgen to 0.55.0

windows-bindgen is the crate used to generate std's Windows API bindings.

Not many changes for us, it's mostly just simplifying the generate code (e.g. no more `-> ()`). The one substantial change is some structs now use `i8` byte arrays instead of `u8`. However, this only impacts one test.
2024-03-16 18:27:33 +00:00
Chris Denton
491acfa08d
Rollup merge of #122372 - onur-ozkan:change-id-improvement, r=Mark-Simulacrum
prevent notifying the same changes more than once

Prevents re-reporting of previously notified changes by using the .last-warned-change-id value for change detection.

Resolves #122344
2024-03-16 18:27:32 +00:00
Chris Denton
9870116309
Rollup merge of #122323 - heiher:loongarch64-musl-root, r=Mark-Simulacrum
configure.py: add flag for loongarch64 musl-root
2024-03-16 18:27:32 +00:00
bors
2ffa3c89fc Auto merge of #122599 - bjorn3:sync_cg_clif-2024-03-16, r=bjorn3
Subtree sync for rustc_codegen_cranelift

The main highlight this time is a fix for a recently introduced ICE.

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

r? `@ghost`

`@rustbot` label +A-codegen +A-cranelift +T-compiler
2024-03-16 18:08:42 +00:00
bjorn3
6697186f59 Merge commit '4cf4ffc6ba514f171b3f52d1c731063e4fc45be3' into sync_cg_clif-2024-03-16 2024-03-16 17:23:11 +00:00