mejrs
b98760ba2d
Fix links
2025-04-04 01:23:01 +02:00
Nicholas Nethercote
aa1b7bf070
Remove an unwanted comment.
...
I accidentally added this in #138740 .
2025-04-04 09:59:25 +11:00
BenjaminBrienen
3aa1b607bd
fix language-configuration.json
2025-04-04 00:26:57 +02:00
bors
4fd8c04da0
Auto merge of #139336 - matthiaskrgr:rollup-zsi8pgf, r=matthiaskrgr
...
Rollup of 9 pull requests
Successful merges:
- #138017 (Tighten up assignment operator representations.)
- #138462 (Dedup `&mut *` reborrow suggestion in loops)
- #138610 (impl !PartialOrd for HirId)
- #138767 (Allow boolean literals in `check-cfg`)
- #139068 (io: Avoid marking some bytes as uninit)
- #139255 (Remove unused variables generated in merged doctests)
- #139270 (Add a mailmap entry for myself)
- #139303 (Put Noratrieb on vacation)
- #139312 (add Marco Ieni to mailmap)
r? `@ghost`
`@rustbot` modify labels: rollup
2025-04-03 22:26:29 +00:00
mejrs
897f9e5985
unstable book: document tait
2025-04-04 00:20:49 +02:00
clubby789
303c1b45c2
Use cfg(false) in UI tests
2025-04-03 21:41:58 +00:00
Manuel Drehwald
e0c8ead880
add autodiff batching middle-end
2025-04-03 17:21:21 -04:00
Manuel Drehwald
087ffd73bf
add the autodiff batch mode frontend
2025-04-03 17:19:11 -04:00
Timo
a5a033d029
Update versions of 1.86 lints ( #14540 )
...
r? @y21
Completely forgot about the version update during CHANGELOG creation. I
have to re-learn how to do all that.
changelog: none
2025-04-03 20:49:26 +00:00
Philipp Krones
a23e8d3537
Update versions of 1.86 lints
2025-04-03 22:20:33 +02:00
Philipp Krones
7bb54d91be
Rustup ( #14539 )
...
r? @ghost
changelog: none
2025-04-03 20:12:28 +00:00
Guillaume Gomez
a1d345f93c
Merge pull request #2315 from lolbinarycat/rustdoc-gui-readme
...
add some links about the rustdoc-gui test suite
2025-04-03 22:09:48 +02:00
binarycat
ceba464c69
add some links about the rustdoc-gui test suite
2025-04-03 15:09:11 -05:00
Timo
a2251a8f1a
Changelog for Clippy 1.86 🐧 ( #14538 )
...
Violets are red,
Roses are blue,
We miss our penguin,
This is hard to do.
---
Penguin of the release

This is not a cat. But nominations are open in the comments for the next
release! 😻
---
changelog: none
2025-04-03 19:55:56 +00:00
Philipp Krones
944dfc749f
Changelog for Clippy 1.86
2025-04-03 21:42:16 +02:00
Philipp Krones
c97bd7463c
Bump Clippy version -> 0.1.88
2025-04-03 21:32:37 +02:00
Philipp Krones
c44191af48
Bump nightly version -> 2025-04-03
2025-04-03 21:31:56 +02:00
Philipp Krones
ab7e525929
Merge remote-tracking branch 'upstream/master' into rustup
2025-04-03 21:31:02 +02:00
Trevor Gross
ac34a6fcd5
Stabilize the cell_update feature
...
Included API:
impl<T: Copy> Cell<T> {
pub fn update(&self, f: impl FnOnce(T) -> T);
}
Closes: https://github.com/rust-lang/rust/issues/50186
2025-04-03 19:20:59 +00:00
Matthias Krüger
4cf6c21f3a
Rollup merge of #139312 - marcoieni:marco-mailmap, r=Kobzol
...
add Marco Ieni to mailmap
2025-04-03 21:18:33 +02:00
Matthias Krüger
42aef0c1ab
Rollup merge of #139303 - Noratrieb:Noratrieb-patch-3, r=Noratrieb
...
Put Noratrieb on vacation
My review queue has gotten a bit out of hand. I'll work on reviewing those PRs before taking up new ones.
2025-04-03 21:18:33 +02:00
Matthias Krüger
ec9aa8c36b
Rollup merge of #139270 - RossSmyth:mailmap, r=Noratrieb
...
Add a mailmap entry for myself
Turns out I have not been at all consistent. Oops.
2025-04-03 21:18:32 +02:00
Matthias Krüger
ed6efe6723
Rollup merge of #139255 - GuillaumeGomez:unused-var-merged-doctest, r=fmease
...
Remove unused variables generated in merged doctests
The variable is unused so no need to keep it around.
cc `@notriddle`
r? `@camelid`
2025-04-03 21:18:31 +02:00
Matthias Krüger
ff8f2eff3a
Rollup merge of #139068 - a1phyr:less_uninit, r=joboet
...
io: Avoid marking some bytes as uninit
These bytes were marked as uninit, which would cause them to be initialized multiple times even though it was not necessary.
2025-04-03 21:18:31 +02:00
Matthias Krüger
39c98c7301
Rollup merge of #138610 - oli-obk:no-sort-hir-ids, r=compiler-errors
...
impl !PartialOrd for HirId
revive of https://github.com/rust-lang/rust/pull/92233
Another checkbox of https://github.com/rust-lang/rust/issues/90317 , another small step in making incremental less likely to die in horrible ways
2025-04-03 21:18:30 +02:00
Matthias Krüger
9d733eca06
Rollup merge of #138767 - clubby789:check-cfg-bool, r=Urgau
...
Allow boolean literals in `check-cfg`
https://github.com/rust-lang/rust/pull/138632#issuecomment-2738114495
This makes it consistent with `--cfg`
We could alternatively add a forward-compatible lint against `--cfg true/false`
r? `@Urgau`
2025-04-03 21:18:30 +02:00
Matthias Krüger
48a3919884
Rollup merge of #138610 - oli-obk:no-sort-hir-ids, r=compiler-errors
...
impl !PartialOrd for HirId
revive of https://github.com/rust-lang/rust/pull/92233
Another checkbox of https://github.com/rust-lang/rust/issues/90317 , another small step in making incremental less likely to die in horrible ways
2025-04-03 21:18:30 +02:00
Matthias Krüger
731ce84d19
Rollup merge of #138462 - ShE3py:mut-borrow-in-loop, r=oli-obk
...
Dedup `&mut *` reborrow suggestion in loops
#73534 added a reborrow suggestion in loops; #127579 generalized this to generic parameters, making the suggestion triggers twice:
```rs
use std::io::Read;
fn decode_scalar(_reader: impl Read) {}
fn decode_array(reader: &mut impl Read) {
for _ in 0.. {
decode_scalar(reader);
}
}
```
```
error[E0382]: use of moved value: `reader`
--> src/lib.rs:6:23
|
4 | fn decode_array(reader: &mut impl Read) {
| ------ move occurs because `reader` has type `&mut impl Read`, which does not implement the `Copy` trait
5 | for _ in 0.. {
| ------------ inside of this loop
6 | decode_scalar(reader);
| ^^^^^^ value moved here, in previous iteration of loop
|
help: consider creating a fresh reborrow of `reader` here
|
6 | decode_scalar(&mut *reader);
| ++++++
help: consider creating a fresh reborrow of `reader` here
|
6 | decode_scalar(&mut *reader);
| ++++++
```
This PR removes the suggestion in loops, as it requires generic parameters anyway (i.e., the reborrow is automatic if there is no generic params).
`@rustbot` label +A-borrow-checker +A-diagnostics +A-suggestion-diagnostics +D-papercut
2025-04-03 21:18:29 +02:00
Matthias Krüger
e5c7451a10
Rollup merge of #138017 - nnethercote:tighten-assignment-op, r=spastorino
...
Tighten up assignment operator representations.
This is step 3 of [MCP 831](https://github.com/rust-lang/compiler-team/issues/831 ).
r? `@spastorino`
2025-04-03 21:18:28 +02:00
bors
00095b3da4
Auto merge of #132527 - DianQK:gvn-stmt-iter, r=oli-obk
...
gvn: Invalid dereferences for all non-local mutations
Fixes #132353 .
This PR removes the computation value by traversing SSA locals through `for_each_assignment_mut`.
Because the `for_each_assignment_mut` traversal skips statements which have side effects, such as dereference assignments, the computation may be unsound. Instead of `for_each_assignment_mut`, we compute values by traversing in reverse postorder.
Because we compute and use the symbolic representation of values on the fly, I invalidate all old values when encountering a dereference assignment. The current approach does not prevent the optimization of a clone to a copy.
In the future, we may add an alias model, or dominance information for dereference assignments, or SSA form to help GVN.
r? cjgillot
cc `@jieyouxu` #132356
cc `@RalfJung` #133474
2025-04-03 19:17:33 +00:00
Michael Goulet
64b58dd13b
Pass correct param-env to error_implies
2025-04-03 18:55:53 +00:00
clubby789
d83f415325
Add more tests for cfg_boolean_literals
2025-04-03 18:10:48 +00:00
clubby789
984c51f6a1
Stabilize cfg_boolean_literals
2025-04-03 18:10:48 +00:00
Philipp Krones
41d7e456c4
Update to new rinja version (askama) ( #14530 )
...
Askama maintenance was handed over to rinja maintainers so new `rinja`
release is actually `askama`. More information
[here](https://blog.guillaume-gomez.fr/articles/2025-03-19+Askama+and+Rinja+merge ).
r? @flip1995
changelog: none
2025-04-03 17:52:59 +00:00
Guillaume Gomez
f9927ee042
Use eprint! instead of eprintln!
2025-04-03 19:37:18 +02:00
Alan Somers
05d64b119b
Add another Miri-detected bug to README.md
...
Miri detected this bug in Mockall: https://github.com/asomers/mockall/issues/647
[skip ci]
2025-04-03 11:02:45 -06:00
Ralf Jung
6a43818ec5
Merge pull request #4249 from RalfJung/test-cargo-miri-strict-provenance
...
test-cargo-miri: permissive provenance should not be needed any more
2025-04-03 15:59:19 +00:00
Oli Scherer
6189594c0a
Deduplicate some rustc_middle function bodies by calling the rustc_type_ir equivalent
2025-04-03 15:44:37 +00:00
Laurențiu Nicola
8408e2810b
Merge pull request #19509 from snprajwal/remove-assistid-none
...
fix(ide-assists): remove `AssistKind::None`
2025-04-03 15:35:11 +00:00
Ralf Jung
e7de860c33
test-cargo-miri: permissive provenance should not be needed any more
2025-04-03 17:35:11 +02:00
bors
82eb03ec62
Auto merge of #139301 - matthiaskrgr:rollup-sa6ali8, r=matthiaskrgr
...
Rollup of 7 pull requests
Successful merges:
- #139080 (Experimental feature gate for `super let`)
- #139145 (slice: Remove some uses of unsafe in first/last chunk methods)
- #139149 (unstable book: document import_trait_associated_functions)
- #139273 (Apply requested API changes to `cell_update`)
- #139282 (rustdoc: make settings checkboxes always square)
- #139283 (Rustc dev guide subtree update)
- #139294 (Fix the `f16`/`f128` feature gates on integer literals)
r? `@ghost`
`@rustbot` modify labels: rollup
2025-04-03 15:31:20 +00:00
bjorn3
fde54c2c03
Fix testing with randomized layouts enabled
2025-04-03 15:30:01 +00:00
bjorn3
e3a8d9c6a3
Fix testing with randomized layouts enabled
2025-04-03 15:30:01 +00:00
Guillaume Gomez
fff2484700
Add regression test for #137970
2025-04-03 17:21:03 +02:00
Guillaume Gomez
a91e97c06c
Fix 2024 edition doctest panic output
2025-04-03 17:20:45 +02:00
Ralf Jung
1d4208717e
Merge pull request #4247 from RalfJung/foreign-items-comment
...
foreign_items: make comment more consistent
2025-04-03 14:52:07 +00:00
Ralf Jung
1a89c2b08e
fix comment nit
2025-04-03 16:27:10 +02:00
dianqk
7d44887374
Invalid dereferences for all non-local mutations
2025-04-03 21:59:49 +08:00
dianqk
4e05d858ad
Only preserving derefs for trivial terminators like SwitchInt and Goto
2025-04-03 21:59:49 +08:00
dianqk
ac7dd7a1b3
Remove unsound-mir-opts for simplify_aggregate_to_copy
2025-04-03 21:59:43 +08:00