niacdoial
2d95dfd5a9
unused_must_use: Add extra test for types that are still generic
2025-10-10 13:09:49 -07:00
Josh Triplett
339caa11c7
unused_must_use: Rename test functions to reflect what they test
...
This makes it easier to review without cross-referencing each test
function with its invocation.
2025-10-10 13:09:49 -07:00
Josh Triplett
39f59bf6a2
unused_must_use: Suppress warnings for ControlFlow<Uninhabited, ()> too
2025-10-10 13:09:49 -07:00
Josh Triplett
efd76c910e
unused_must_use: Add test for a method using an associated error type
2025-10-10 13:09:49 -07:00
Josh Triplett
6f89cecf37
unused_must_use: Don't warn on Result<(), Uninhabited>
...
This suppresses warnings on things like `Result<(), !>`, which helps
simplify code using the common pattern of having an `Error` associated
type: code will only have to check the error if there is a possibility
of error.
2025-10-10 13:09:46 -07:00
Samuel Tardieu
70d5c8c9e4
Autolabel PR touching declared_lints.rs with needs-fcp ( #15859 )
...
changelog: none
2025-10-10 20:09:34 +00:00
Weihang Lo
9c6c702431
Update cargo submodule
2025-10-10 15:45:46 -04:00
Stepan Koltsov
dff4561f59
Fix documentation of Instant::now on mac
2025-10-10 20:01:03 +01:00
Samuel Tardieu
6a08a85b06
Autolabel PR touching declared_lints.rs with needs-fcp
2025-10-10 18:19:00 +02:00
Asger Hautop Drewsen
4eccd02229
Stabilize unsigned_nonzero_div_ceil
2025-10-10 18:18:27 +02:00
Chayim Refael Friedman
35142a6ab8
Migrate MIR to next solver
2025-10-10 17:40:15 +03:00
dianqk
1ee2c58e89
Replace locals in debuginfo records during dest_prop
2025-10-10 22:06:04 +08:00
bjorn3
88e9820683
Fix review comments
2025-10-10 13:51:52 +00:00
AMS21
0abecda9ed
Replace LLVMRustContextCreate with normal LLVM-C API calls
...
Since `LLVMRustContextCreate` can easily be replaced with a call to
`LLVMContextCreate` and `LLVMContextSetDiscardValueNames`.
2025-10-10 15:45:40 +02:00
Jakub Beránek
ce671f998f
Update rustc-perf submodule
2025-10-10 15:42:42 +02:00
bjorn3
2e25b5876f
Add a couple of comments
...
Co-Authored-By: Ralf Jung <post@ralfj.de>
2025-10-10 13:04:55 +00:00
bjorn3
7e467cd132
Move computation of allocator shim contents to cg_ssa
...
In the future this should make it easier to use weak symbols for the
allocator shim on platforms that properly support weak symbols. And it
would allow reusing the allocator shim code for handling default
implementations of the upcoming externally implementable items feature
on platforms that don't properly support weak symbols.
2025-10-10 13:04:55 +00:00
bjorn3
116f4ae171
Support #[alloc_error_handler] without the allocator shim
...
Currently it is possible to avoid linking the allocator shim when
__rust_no_alloc_shim_is_unstable_v2 is defined when linking rlibs
directly as some build systems need. However this requires liballoc to
be compiled with --cfg no_global_oom_handling, which places huge
restrictions on what functions you can call and makes it impossible to
use libstd. Or alternatively you have to define
__rust_alloc_error_handler and (when using libstd)
__rust_alloc_error_handler_should_panic
using #[rustc_std_internal_symbol]. With this commit you can either use
libstd and define __rust_alloc_error_handler_should_panic or not use
libstd and use #[alloc_error_handler] instead. Both options are still
unstable though.
Eventually the alloc_error_handler may either be removed entirely
(though the PR for that has been stale for years now) or we may start
using weak symbols for it instead. For the latter case this commit is a
prerequisite anyway.
2025-10-10 13:04:53 +00:00
Camille Gillot
15575602da
Remove StatementKind::Deinit.
2025-10-10 12:57:24 +00:00
Camille Gillot
b7c2b3dc80
Remove StatementKind::Deinit.
2025-10-10 12:57:24 +00:00
Vitali Borsak
c86474ca07
Adding a regression test (const promotion with Option<Ordering>)
2025-10-10 12:23:45 +00:00
dianqk
4c6caaa3a6
Always print disk usage
2025-10-10 20:02:50 +08:00
Ben Kimock
6660d75710
Move to the tier 3 table
2025-10-10 07:52:49 -04:00
A4-Tacks
d1ecdca22f
Migrate raw_string assist to use SyntaxEditor
2025-10-10 19:04:48 +08:00
A4-Tacks
ddf8dd7875
Fix not applicable c-str and byte-str for raw_string
...
Example
---
Assist: `make_raw_string`
```rust
fn f() {
let s = $0b"random\nstring";
}
```
->
```rust
fn f() {
let s = br#"random
string"#;
}
```
---
Assist: `make_raw_string`
```rust
fn f() {
let s = $0c"random\nstring";
}
```
->
```rust
fn f() {
let s = cr#"random
string"#;
}
```
---
Assist: `add_hash`
```rust
fn f() {
let s = $0cr"random string";
}
```
->
```rust
fn f() {
let s = cr#"random string"#;
}
```
---
Assist: `remove_hash`
```rust
fn f() {
let s = $0cr#"random string"#;
}
```
->
```rust
fn f() {
let s = cr"random string";
}
```
---
Assist: `make_usual_string`
```rust
fn f() {
let s = $0cr#"random string"#;
}
```
->
```rust
fn f() {
let s = c"random string";
}
```
2025-10-10 19:04:48 +08:00
Folkert de Vries
5ab4e18dfc
remove #[rustc_inherit_overflow_checks] from is_multiple_of
2025-10-10 12:51:41 +02:00
dianqk
b2e81b00e5
Replace locals in debuginfo records during ref_prop
2025-10-10 18:30:53 +08:00
dianqk
9462e7301f
MIR validation: ensure that debuginfo records are not emitted for locals that are not in debuginfo
2025-10-10 18:30:53 +08:00
dianqk
690071c28a
Add regression test for 147485
2025-10-10 18:30:53 +08:00
Ralf Jung
f3c08df150
Merge pull request #4620 from RalfJung/miri-driver
...
readme: document how to directly invoke the driver
2025-10-10 10:25:08 +00:00
Ralf Jung
328fec4710
Merge pull request #4618 from vishruth-thimmaiah/add_memset
...
feat: add support for libc::memset
2025-10-10 10:24:51 +00:00
Shoyu Vanilla (Flint)
986bb35e75
Merge pull request #20526 from A4-Tacks/postfix-let-in-let-chain
...
Fix .let completion not work for let-chain
2025-10-10 10:07:31 +00:00
yukang
ca8020a7c4
Fix ice 141592, change diverge assertion to struct error with delay
2025-10-10 18:01:16 +08:00
vishruth-thimmaiah
afea346b35
feat: add failing test for zero-sized memset
...
Signed-off-by: vishruth-thimmaiah <vishruththimmaiah@gmail.com>
2025-10-10 14:55:09 +05:30
Shoyu Vanilla (Flint)
65920fefee
Merge pull request #20801 from ChayimFriedman2/fix-insert-use
...
minor: Small fixes for import insertion
2025-10-10 08:28:42 +00:00
Shoyu Vanilla (Flint)
31ffd29024
Merge pull request #20816 from A4-Tacks/add-ret-ty-adjusted
...
Fix closure coerced return type for add_return_type
2025-10-10 08:25:25 +00:00
Shoyu Vanilla (Flint)
d8b67b0fb6
Merge pull request #20817 from A4-Tacks/explicit-ty-param-in-let
...
Fix not applicable on param in let-stmt for add_explicit_type
2025-10-10 08:18:32 +00:00
Chayim Refael Friedman
7ca507dd6f
Merge pull request #20824 from A4-Tacks/empty-closure-analysis
...
Fix empty closure completion analysis
2025-10-10 07:10:24 +00:00
A4-Tacks
45ca9b5a4c
Fix empty closure completion analysis
...
Example
---
```rust
fn foo() {
bar(|| $0);
}
fn bar(f: impl FnOnce() -> u32) {}
```
**Before this PR**:
```
ty: impl FnOnce() -> u32, name: ?
```
**After this PR**:
```
ty: u32, name: ?
```
2025-10-10 12:53:32 +08:00
Alejandra González
844fadbb7e
Check structs and enums for use_self ( #15566 )
...
Closes rust-lang/rust-clippy#15555
changelog: [`use_self`]: Check structs and enums
2025-10-09 23:42:49 +00:00
Nick Drozd
b71fe9254d
Check structs and enums for use_self
2025-10-09 18:23:12 -05:00
Alejandra González
57913b4737
Honor allow/expect attributes on ADT and impl Clone nodes ( #15849 )
...
changelog: [`expl_impl_clone_on_copy`]: honor `allow`/`expect`
attributes on both the type declaration and the `impl`
Fixes rust-lang/rust-clippy#15842
r? @blyxyas
2025-10-09 22:09:37 +00:00
Alejandra González
77ce8b81f0
Mark blyxyas on vacation ( #15856 )
...
I'll still take care of my currently-assigned reviews.
Edit: Sorry Philipp, I forgot to r? ghost
changelog:none
2025-10-09 21:59:58 +00:00
llogiq
e6febbd13b
Add lint unnecessary_option_map_or_else ( #14662 )
...
changelog: [`unnecessary_option_map_or_else`]: Added lint
unnecessary_option_map_or_else. As suggested in the issue description,
the implementation takes as reference the issue
rust-lang/rust-clippy#7328 . The tests for lints `option_if_let_else` and
`or_fun_call` needed to be adjusted to comply with new lint.
fixes rust-lang/rust-clippy#14588
2025-10-09 21:56:14 +00:00
blyxyas
343e7806ea
Mark blyxyas on vacation
2025-10-09 23:54:11 +02:00
bors
9725c4baac
Auto merge of #147537 - matthiaskrgr:rollup-2mfhpg4, r=matthiaskrgr
...
Rollup of 2 pull requests
Successful merges:
- rust-lang/rust#147479 (cmse: improve error messages)
- rust-lang/rust#147523 (x86_64-bigint-helpers test: update test assertion to cover registers r8 and r9)
r? `@ghost`
`@rustbot` modify labels: rollup
2025-10-09 21:08:39 +00:00
Vadim Petrochenkov
204508d928
resolve: Use primitives for conditional mutability more consistently
2025-10-09 23:10:25 +03:00
Ada Alakbarova
0535908499
final refactor and docs
2025-10-09 21:52:12 +02:00
Ada Alakbarova
dd7f6058bf
inline {first,last}_{attrs,expr,pat,guard} into all callers
2025-10-09 20:48:11 +02:00
Ada Alakbarova
0efe3cfca5
split arms into first, last, and middle pats as slice
2025-10-09 20:48:11 +02:00