Commit Graph

256859 Commits

Author SHA1 Message Date
bors
3f5fd8dd41 Auto merge of #128635 - pietroalbini:pa-1.80.1, r=pietroalbini
Prepare Rust 1.80.1 point release

The point release is scheduled to include:

* https://github.com/rust-lang/rust/pull/128271
* https://github.com/rust-lang/rust/pull/128618
2024-08-06 19:02:52 +00:00
Pietro Albini
1cc8da5c10
fix github actions runner for arm 2024-08-06 20:59:58 +02:00
Pietro Albini
403ca80298
update version number 2024-08-06 09:59:32 +02:00
Pietro Albini
066849000e
add release notes for 1.80.1 2024-08-06 09:59:30 +02:00
Pietro Albini
c246819c58
backport changes to the release notes in master 2024-08-04 12:31:45 +02:00
Michael Goulet
8406ccca43
Revert "Rollup merge of #125572 - mu001999-contrib:dead/enhance, r=pnkfelix"
This reverts commit 13314df21b, reversing
changes made to 6e534c73c3.
2024-08-04 12:31:44 +02:00
Michael Goulet
d45312d7f3
Revert "Rollup merge of #126315 - mu001999-contrib:fix/126289, r=petrochenkov"
This reverts commit 977c5fd419, reversing
changes made to 24c94f0e4f.
2024-08-04 12:31:43 +02:00
Nilstrieb
eca0a7e723
Disable jump threading of float equality
Jump threading stores values as `u128` (`ScalarInt`) and does its
comparisons for equality as integer comparisons.
This works great for integers. Sadly, not everything is an integer.

Floats famously have wonky equality semantcs, with `NaN!=NaN` and
`0.0 == -0.0`. This does not match our beautiful integer bitpattern
equality and therefore causes things to go horribly wrong.

While jump threading could be extended to support floats by remembering
that they're floats in the value state and handling them properly,
it's signficantly easier to just disable it for now.
2024-08-04 12:31:40 +02:00
bors
0514789573 Auto merge of #128032 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum
[stable] 1.80.0 release

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

r? `@Mark-Simulacrum`
2024-07-21 15:48:16 +00:00
Mark Rousskov
7fecb10eef Cherry-pick release notes 2024-07-21 09:04:14 -04:00
bors
7466ba077d Auto merge of #127904 - flip1995:clippy-beta-backport, r=Mark-Simulacrum
[beta] Clippy backport

r? `@Mark-Simulacrum`

Really small backport this time:

- https://github.com/rust-lang/rust-clippy/pull/12961

Fixes a quite annoying bug of this lint, that got into the last stable release 1.79.0. There were already 3 issues opened about it in the Clippy repo. It would be great to get this fixed for the next stable release.

I confirmed that this commit is already part of `master`
2024-07-20 15:49:23 +00:00
bors
b06e8ad970 Auto merge of #127944 - compiler-errors:beta-no-unsafe, r=Mark-Simulacrum
Don't allow unsafe statics outside of extern blocks (beta version)

This PR fixes a regression where we allowed `unsafe static` items in top-level modules (i.e. outside of `unsafe extern` blocks).

#127943 does not rebase cleanly, so I've prepared an extremely pared down version of this PR for beta purposes.
2024-07-19 05:26:24 +00:00
Michael Goulet
42c2364325 Don't allow unsafe statics outside of extern blocks 2024-07-18 18:22:22 -04:00
bors
3ad5ec81fd Auto merge of #127811 - weihanglo:update-beta-cargo, r=weihanglo
[beta-1.80] Update cargo

1 commits in 34a6a87d8a2330d8c9d578f927489689328a652d..37629051518c3df9ac2c1744589362a02ecafa99
2024-06-04 15:31:01 +0000 to 2024-07-16 01:31:28 +0000
- [beta-1.80.0] chore: downgrade to jobserver@0.1.28 (rust-lang/cargo#14255)

try-job: dist-riscv64-linux
2024-07-18 15:57:14 +00:00
bors
db0c947f48
Auto merge of #12961 - GuillaumeGomez:fix-manual_unwrap_or_default, r=Alexendoo
Fix incorrect suggestion for `manual_unwrap_or_default`

Fixes #12928.

If this not a "simple" pattern, better not emit the lint.

changelog: Fix incorrect suggestion for `manual_unwrap_or_default`
2024-07-18 09:28:49 +02:00
Nikita Popov
e710f0d089
Update dist-riscv64-linux to binutils 2.40
binutils 2.40 is required by LLVM 19, as older versions do not
know about the zmmull extension.

I've had to backport some patches to glibc and gcc as well,
as they don't build with binutils 2.40. Alternatively, we could
also switch to glibc 2.35 and gcc 12 (I think). I figured we'd
want to avoid the glibc version change, but if that's fine for
riscv I can go with that instead.
2024-07-17 21:36:44 -04:00
Weihang Lo
ea24edde13
[beta-1.80] Update cargo 2024-07-16 09:11:34 -04:00
bors
b8b9158f2c Auto merge of #127618 - cuviper:beta-next, r=cuviper
[beta] backports

- Update LLVM submodule #127364
- instantiate higher ranked goals in candidate selection again #127568

r? cuviper
2024-07-12 07:44:17 +00:00
lcnr
26c00553bf instantiate higher ranked goals in candidate selection
reverts #119820

(cherry picked from commit f77394fdf3)
2024-07-11 10:19:44 -07:00
DianQK
7ecb7f6aec Update LLVM submodule
(cherry picked from commit 3d699a4fa1)
2024-07-11 10:19:38 -07:00
bors
e5da71fca9 Auto merge of #127377 - cuviper:beta-next, r=cuviper
[beta] backports

- Properly gate `safe` keyword in pre-expansion #126757
- Switch back `non_local_definitions` lint to allow-by-default #127015
- Stall computing instance for drop shim until it has no unsubstituted const params #127068
- Update LLVM submodule #127190
-  Change to the NetBSD archive URL rather than the CDN #127232

r? cuviper
2024-07-06 18:17:07 +00:00
Trevor Gross
c822bf2486 Change to the NetBSD archive URL rather than the CDN
The CDN has been down for a few hours. Switch to an alternative for the
time being so we can unblock CI.

It appears that the CDN is quite a bit faster, so we will likely want to
switch back when available.

(cherry picked from commit 42ac903f4f)
2024-07-05 23:00:06 -07:00
DianQK
cd1d94b574 Update LLVM submodule
(cherry picked from commit da81d0d940)
2024-07-05 09:48:45 -07:00
Michael Goulet
bb458674f0 Don't inline drop shims with unsubstituted generic consts in MIR inliner
(cherry picked from commit f17b27b301)
2024-07-05 09:48:45 -07:00
Michael Goulet
e1f26a6260 Failing test for computing drop shim that has const param
(cherry picked from commit 90c2b238e6)
2024-07-05 09:34:52 -07:00
Urgau
aa82d2e492 Switch back non_local_definitions lint to allow-by-default
as request T-lang is requesting some major changes in the lint inner
workings in #126768#issuecomment-2192634762

(cherry picked from commit 0c0dfb88ee)
2024-07-05 09:34:49 -07:00
Michael Goulet
00583a64ee Properly gate safe keyword in pre-expansion
(cherry picked from commit 108b3f214a)
2024-07-05 09:34:45 -07:00
bors
64a1fe6711 Auto merge of #126772 - cuviper:beta-next, r=cuviper
[beta] backports

- Only compute `specializes` query if (min)specialization is enabled in the crate of the specializing impl #126139
- Add pub struct with allow(dead_code) into worklist #126315
- ci: Update centos:7 to use vault repos #126352

r? cuviper
2024-06-21 21:31:13 +00:00
Josh Stone
c67b09538d ci: Update centos:7 to use vault repos
CentOS 7 is going EOL on June 30, after which its package repos will no
longer exist on the regular mirrors. We'll still be able to access
packages from the vault server though, and can start doing so now. This
affects `dist-i686-linux` and `dist-x86_64-linux`.

I also removed `epel-release` because we were only using that for its
`cmake3`, but we've been building our own version for a while.

(cherry picked from commit 6d2493bf5d)
2024-06-21 09:51:26 -07:00
r0cky
303ab0fac4 Add pub struct with allow(dead_code) into worklist
(cherry picked from commit 64450732be)
2024-06-20 17:51:31 -07:00
Michael Goulet
24c34cb315 Only compute specializes query if specialization is enabled in the crate of the specialized impl
(cherry picked from commit 4b188d9d66)
2024-06-20 17:44:53 -07:00
Michael Goulet
319b8c1481 Failing test
(cherry picked from commit 1653a2d34a)
2024-06-20 17:44:53 -07:00
bors
105fc5ccc9 Auto merge of #126453 - cuviper:beta-next, r=cuviper
[beta] backports and stage0 bump

- Bump stage0 to 1.79.0
- Do not define opaque types when selecting impls #126258
- Remove failing GUI test to stop blocking CI until it is fixed #126445

r? cuviper
2024-06-14 20:17:23 +00:00
Guillaume Gomez
b78497cf7a Remove failing GUI test to stop blocking CI until it is fixed
(cherry picked from commit 9e466d3361)
2024-06-14 09:22:07 -07:00
Oli Scherer
f1dd0974dc Also test under next solver
(cherry picked from commit 03fa9b8073)
2024-06-13 18:14:12 -07:00
Oli Scherer
85ca09b7c2 Revert "When checking whether an impl applies, constrain hidden types of opaque types."
This reverts commit 29a630eb72.

(cherry picked from commit 6cca6da126)
2024-06-13 18:14:12 -07:00
Oli Scherer
11495decd5 Add regression test
(cherry picked from commit fe55c0091d)
2024-06-13 18:14:12 -07:00
Josh Stone
f0a3643af1 Bump stage0 to 1.79.0 2024-06-13 18:13:44 -07:00
bors
544e5fb73e Auto merge of #126278 - lqd:beta, r=Mark-Simulacrum
[beta] Ensure self-contained linker is only enabled on dev/nightly

It seems the self-contained linker is enabled on beta. Let's fix that.

```console
$ cargo clean && cargo +beta build && readelf -p .comment target/debug/helloworld
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.15s

String dump of section '.comment':
  [     0]  Linker: LLD 18.1.7
  [    14]  GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
  [    3f]  rustc version 1.80.0-beta.1 (75ac3b633 2024-06-10)
```

I will open a PR to fix it on master as well, right after I test CI's behavior on beta.
2024-06-13 09:47:29 +00:00
Rémy Rakic
50cb2efdc5 ensure the self-contained linker is only enabled on nightly/dev 2024-06-11 17:08:12 +00:00
Rémy Rakic
ba643c50b3 fix rustfmt issue in libstd 2024-06-11 17:07:45 +00:00
bors
75ac3b6331 Auto merge of #126220 - ferrocene:pa-beta-1.80.0, r=pietroalbini
[beta] Prepare Rust 1.80.0

r? `@ghost`
2024-06-10 13:16:23 +00:00
Pietro Albini
2ccb6e4a56
replace version placeholder 2024-06-10 14:50:54 +02:00
Pietro Albini
ef609b0618
bump channel to beta 2024-06-10 14:50:10 +02:00
Pietro Albini
4ee097f71e
squash release notes from master 2024-06-10 14:49:53 +02:00
bors
804421dff5 Auto merge of #126134 - matthiaskrgr:rollup-vzlegsc, r=matthiaskrgr
Rollup of 11 pull requests

Successful merges:

 - #124012 (Stabilize `binary_heap_as_slice`)
 - #124214 (Parse unsafe attributes)
 - #125572 (Detect pub structs never constructed and unused associated constants)
 - #125781 (prefer `compile::stream_cargo` for building tools)
 - #126030 (Update `./x fmt` command in library/std/src/sys/pal/windows/c/README.md)
 - #126047 (Simplify the rayon calls in the installer)
 - #126052 (More `rustc_parse` cleanups)
 - #126077 (Revert "Use the HIR instead of mir_keys for determining whether something will have a MIR body.")
 - #126089 (Stabilize Option::take_if)
 - #126112 (Clean up source root in run-make tests)
 - #126119 (Improve docs for using custom paths with `--emit`)

r? `@ghost`
`@rustbot` modify labels: rollup
2024-06-07 20:12:49 +00:00
Matthias Krüger
df35d7a117
Rollup merge of #126119 - Zalathar:emit-filename, r=ehuss
Improve docs for using custom paths with `--emit`

Recently I found myself concluding that this feature didn't exist (https://github.com/rust-lang/rust/pull/126111#discussion_r1630707215), despite having read the documentation, because it was hidden away in the middle of a paragraph full of other information.

Giving this documentation more space of its own should make it easier to find.
2024-06-07 20:14:32 +02:00
Matthias Krüger
b8e28d1426
Rollup merge of #126112 - Kobzol:runmake-source-root, r=jieyouxu
Clean up source root in run-make tests

The name `S` isn't exactly the most descriptive, and we also shouldn't need to pass it when building (actually I think that most of the env. vars that we pass to `cargo` here are probably not really needed).

Related issue: https://github.com/rust-lang/rust/issues/126071

r? ```@jieyouxu```
2024-06-07 20:14:32 +02:00
Matthias Krüger
ccbd6c29b4
Rollup merge of #126089 - wutchzone:option_take_if, r=scottmcm
Stabilize Option::take_if

Closes #98934

ed: FCP complete in https://github.com/rust-lang/rust/issues/98934#issuecomment-2104627082
2024-06-07 20:14:31 +02:00
Matthias Krüger
2e82d7f569
Rollup merge of #126077 - oli-obk:revert_is_mir_available, r=BoxyUwU
Revert "Use the HIR instead of mir_keys for determining whether something will have a MIR body."

This reverts commit e5cba17b84.

turns out SMIR still needs it (https://github.com/model-checking/kani/issues/3218). I'll create a full plan and MCP for what I intended this to be a part of. Maybe my plan is nonsense anyway.
2024-06-07 20:14:31 +02:00