Commit graph

314796 commits

Author SHA1 Message Date
The Miri Cronjob Bot
199aa6813e Prepare for merging from rust-lang/rust
This updates the rust-version file to 44a5b55557.
2026-01-12 05:04:54 +00:00
Ralf Jung
decd472454
Merge pull request #4811 from RalfJung/readme
readme: clarify 'single-threaded interpreter'
2026-01-10 15:06:45 +00:00
Ralf Jung
8029c44bef
Merge pull request #4773 from hulxv/refactor/simplify-libc-tests/libc-time
Refactor libc time tests to use errno_check for error handling
2026-01-10 14:43:45 +00:00
Ralf Jung
7a1b8bf9ee
Merge pull request #4771 from hulxv/refactor/simplify-libc-tests/libc-affinity
Refactor CPU affinity tests to use errno_check for error handling
2026-01-10 14:41:42 +00:00
Ralf Jung
03ad5b07ee readme: clarify 'single-threaded interpreter' 2026-01-10 15:40:04 +01:00
Ralf Jung
ded9a2bbcf
Merge pull request #4770 from hulxv/refactor/simplify-libc-tests/libc-socketpair
Refactor socketpair tests to use utility functions for reading/writing
2026-01-10 13:51:49 +00:00
Ralf Jung
bd31b9d3bc use io::Result for read/write helpers, and add read_until_eof_into_slice 2026-01-10 14:22:56 +01:00
Ralf Jung
fab0a65131
Merge pull request #4807 from loftyinclination/master
Add miri specific extern functions for managing threads
2026-01-10 13:21:36 +00:00
Lofty Inclination
1caf7b2228 Add miri specific shims for managing threads in no_std projects 2026-01-10 12:54:50 +00:00
Ralf Jung
7dc794291f
Merge pull request #4808 from folkertdev/pmaddwd
add `pmaddwd` shim
2026-01-08 18:48:10 +00:00
hulxv
fb9b6bd535
Refactor socketpair tests to use utility functions for reading and writing
inline byte slices for data writes

Refactor socketpair tests to use utility functions for reading and writing
2026-01-08 02:01:17 +02:00
Folkert de Vries
6750919d47
add pmaddwd shim 2026-01-07 20:23:33 +01:00
Ralf Jung
078712ba19
Merge pull request #4779 from CraftSpider/windows-shim-sig
Convert Windows to use check_shim_sig instead of check_shim_sig_lenient
2026-01-05 14:45:45 +00:00
Ralf Jung
00693a8b25 tweak shim_sig 2026-01-05 15:17:45 +01:00
Rune Tynan
c5f67830c2 Convert Windows to use check_shim_sig instead of check_shim_sig_lenient 2026-01-05 15:17:41 +01:00
Ralf Jung
ff2acf0eca update lockfile 2026-01-04 12:44:38 +01:00
Ralf Jung
dbf2ef7c45
Merge pull request #4803 from RalfJung/check_only
add check_only feature for faster check builds
2026-01-04 11:04:27 +00:00
Ralf Jung
0557c759a9 add check_only feature for faster check builds 2026-01-04 11:37:29 +01:00
Ralf Jung
f65c5812c7
Merge pull request #4802 from rust-lang/rustup-2026-01-04
Automatic Rustup
2026-01-04 08:51:35 +00:00
The Miri Cronjob Bot
bd26cf72d4 Merge ref 'f57b9e6f56' from rust-lang/rust
Pull recent changes from https://github.com/rust-lang/rust via Josh.

Upstream ref: f57b9e6f56
Filtered ref: dd835ad11d6c5cea520a087bb620e3643e2dbf0f
Upstream diff: e8f3cfc0de...f57b9e6f56

This merge was created using https://github.com/rust-lang/josh-sync.
2026-01-04 05:11:45 +00:00
The Miri Cronjob Bot
9302232add Prepare for merging from rust-lang/rust
This updates the rust-version file to f57b9e6f56.
2026-01-04 05:03:43 +00:00
bors
f57b9e6f56 Auto merge of #150564 - rwardd:rwardd/option_or_codegen_tests, r=scottmcm
Added codegen tests for different forms of `Option::or`

Adds tests to check the output of the different ways of writing `Option::or`

Fixes rust-lang/rust#124533
2026-01-03 22:47:35 +00:00
bors
7ecabfaaf1 Auto merge of #150639 - usamoi:stdarch, r=sayantn
stdarch subtree update

Subtree update of `stdarch` to 67cdf8433d.

Created using https://github.com/rust-lang/josh-sync.

r? `@ghost`
2026-01-03 19:31:11 +00:00
Ralf Jung
cb36523253
Merge pull request #4768 from hulxv/refactor/simplify-libc-tests/libc-pipe
Refactor libc pipe tests to use utility functions for error handling and data operations
2026-01-03 15:48:25 +00:00
Ralf Jung
b692fcbb4b minor tweaks 2026-01-03 16:24:18 +01:00
hulxv
aec6b9b7bf Refactor libc pipe tests to use utility functions for error handling and data operations 2026-01-03 16:24:18 +01:00
bors
1d22b964df Auto merge of #150644 - matthiaskrgr:rollup-ey900sr, r=matthiaskrgr
Rollup of 2 pull requests

Successful merges:

 - rust-lang/rust#145339 (std: sys: net: uefi: tcp: Initial TcpListener support)
 - rust-lang/rust#150641 (std: remove manual bindings on NetBSD)

r? `@ghost`
`@rustbot` modify labels: rollup
2026-01-03 15:04:57 +00:00
usamoi
5e4168b162 partially revert 8d597aa365 2026-01-03 21:36:43 +08:00
Matthias Krüger
1fe83d5b91
Rollup merge of #150641 - joboet:netbsd-bindings, r=tgross35
std: remove manual bindings on NetBSD

These have been added to `libc`, so there's no need to redefine them in `std`.
2026-01-03 12:43:37 +01:00
Matthias Krüger
01141eae58
Rollup merge of #145339 - Ayush1325:uefi-tcp4-accept, r=tgross35
std: sys: net: uefi: tcp: Initial TcpListener support

Add support for binding and accepting TCP4 connections.

While testing, the following network options were used with QEMU + OVMF: -nic user,hostfwd=tcp::12345-:12345

The default localhost address on qemu seems to be 10.0.2.15.

UEFI spec does not seem to state that the TCP Handle returned by the Accept method has a ServiceBinding Protocol. So have made the ServiceBinding Protocol optional.

cc `@nicholasbishop`
2026-01-03 12:43:36 +01:00
joboet
0e5a4fb302
std: remove manual bindings on NetBSD 2026-01-03 11:46:06 +01:00
bors
4c3310a6db Auto merge of #150638 - matthiaskrgr:rollup-924nozj, r=matthiaskrgr
Rollup of 5 pull requests

Successful merges:

 - rust-lang/rust#150558 (Detect cases where `?` is applied on a type that could be coming from a different crate version than expected)
 - rust-lang/rust#150570 (Removed confusing diagnostics note for trait required for `?` operator use)
 - rust-lang/rust#150589 (Remove unneeded `forbid_generic` field from `Res::SelfTyAlias`)
 - rust-lang/rust#150635 (triagebot: Add a mention for `dec2flt`, `flt2dec`, and `fmt/num.rs`)
 - rust-lang/rust#150637 (Fix broken edit links in Unstable and rustc books)

r? `@ghost`
`@rustbot` modify labels: rollup
2026-01-03 10:44:30 +00:00
Matthias Krüger
689e74d944
Rollup merge of #150637 - vsriramv:fix/edit-url-template, r=Kobzol
Fix broken edit links in Unstable and rustc books

Updated the edit-url-template for the unstable book and the rustc book.

Fixes rust-lang/rust#150593

The "Suggest an edit" links were pointing to HEAD, which resulted in a 404. Changed these to point to main.

r? `@Kobzol`
2026-01-03 10:09:31 +01:00
Matthias Krüger
f7d67d7b92
Rollup merge of #150635 - tgross35:float-format-parse-mention, r=jieyouxu
triagebot: Add a mention for `dec2flt`, `flt2dec`, and `fmt/num.rs`
2026-01-03 10:09:30 +01:00
Matthias Krüger
cd502ff78e
Rollup merge of #150589 - AprilNEA:remove-unneeded-forbid-generic-field, r=camelid,BoxyUwU
Remove unneeded `forbid_generic` field from `Res::SelfTyAlias`

Following rust-lang/rust#150519, the `forbid_generic` field in `Res::SelfTyAlias` is no longer needed and can be removed.

- Remove the `forbid_generic: bool` field from `Res::SelfTyAlias`
- Simplify the ConstantItem rib handling in `rustc_resolve` - no longer need to mutate res to set `forbid_generic: true`
- Update all pattern matches and constructors of `SelfTyAlias`

Closes rust-lang/rust#150579

r? ``@camelid``
2026-01-03 10:09:30 +01:00
Matthias Krüger
7af208fe0b
Rollup merge of #150570 - Human9000-bit:main, r=jieyouxu
Removed confusing diagnostics note for trait required for `?` operator use

- **test: modified `bad-question-mark-on-trait-objects` to match expected behavior**
- **removed confusing message from diagnostics**

fixes [#150527](https://github.com/rust-lang/rust/issues/150527)
2026-01-03 10:09:29 +01:00
Matthias Krüger
78376fd39c
Rollup merge of #150558 - estebank:multiple-dep-versions, r=jieyouxu
Detect cases where `?` is applied on a type that could be coming from a different crate version than expected

```
error[E0277]: `?` couldn't convert the error to `dependency::Error`
  --> replaced
   |
LL | fn main() -> Result<(), Error> {
   |              ----------------- expected `dependency::Error` because of this
...
LL |     Err(Error2)?;
   |     -----------^ the trait `From<Error2>` is not implemented for `dependency::Error`
   |     |
   |     this can't be annotated with `?` because it has type `Result<_, Error2>`
   |
   = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait
help: the trait `From<Error2>` is not implemented for `dependency::Error`
      but trait `From<()>` is implemented for it
  --> replaced
   |
LL | impl From<()> for Error {
   | ^^^^^^^^^^^^^^^^^^^^^^^
   = help: for that trait implementation, expected `()`, found `Error2`
   = note: there are multiple different versions of crate `dependency` in the dependency graph
   = help: you can use `cargo tree` to explore your dependency tree
```

The existing checks rely on having access to the actual types/traits that diverged to detect they are called the same, come from different crates with the same name. The new check is less specific, merely looking to see if the crate name the involved type belongs has multiple crates.

CC rust-lang/rust#78552.
2026-01-03 10:09:29 +01:00
vsriram
d79fa3ca3d Fixed edit-url-template by pointing to main instead of HEAD in both unstable book and the rustc book 2026-01-03 12:58:36 +05:30
bors
00f49d2204 Auto merge of #145948 - a4lg:riscv-stabilize-target-features-v2, r=Amanieu
Stabilize 29 RISC-V target features (`riscv_ratified_v2`)

This commit stabilizes RISC-V target features with following constraints:

*   Describes a ratified extension.
*   Implemented on Rust 1.88.0 or before.
    Waiting for four+ version cycles seems sufficient.
*   Does not disrupt current rustc's target feature (cf. rust-lang/rust#140570) + ABI (cf. rust-lang/rust#132618) handling.
    It excludes `E` and all floating point-arithmetic extensions.  The `Zfinx` family does not involve floating point registers but not stabilizing for now to avoid possible confusion between the `F` extension family.
*   Not vector-related (floating point and integer).
    While integer vector subsets should not cause any ABI issues (as they don't use ABI-dependent floating point registers), we need to discuss before stabilizing them.
*   Supported by the lowest LLVM version supported by rustc (LLVM 20).

List of target features to be stabilized:

1.  `b`
2.  `za64rs` (no-RT)
3.  `za128rs` (no-RT)
4.  `zaamo`
5.  `zabha`
6.  `zacas`
7.  `zalrsc`
8.  `zama16b` (no-RT)
9.  `zawrs`
10.  `zca`
11. `zcb`
12. `zcmop`
13. `zic64b` (no-RT)
14. `zicbom`
15. `zicbop` (no-RT)
16. `zicboz`
17. `ziccamoa` (no-RT)
18. `ziccif` (no-RT)
19. `zicclsm` (no-RT)
20. `ziccrse` (no-RT)
21. `zicntr`
22. `zicond`
23. `zicsr`
24. `zifencei`
25. `zihintntl`
26. `zihintpause`
27. `zihpm`
28. `zimop`
29. `ztso`

Of which, 20 of them (29 minus 9 "no-RT" target features) support runtime detection through `std::arch::is_riscv_feature_detected!()`.

Corresponding PR for the Reference: rust-lang/reference#1987
2026-01-03 07:26:35 +00:00
Trevor Gross
a8c23c86f0 triagebot: Add a mention for dec2flt, flt2dec, and fmt/num 2026-01-03 01:42:53 -05:00
Oli Scherer
efdd3131a9
Merge pull request #4801 from rust-lang/rustup-2026-01-03
Automatic Rustup
2026-01-03 06:20:55 +00:00
The Miri Cronjob Bot
0b222488cb Merge ref 'e8f3cfc0de' from rust-lang/rust
Pull recent changes from https://github.com/rust-lang/rust via Josh.

Upstream ref: e8f3cfc0de
Filtered ref: 5837f859c413e836e4fd1eb4985632c2f62c7db0
Upstream diff: 7fefa09b90...e8f3cfc0de

This merge was created using https://github.com/rust-lang/josh-sync.
2026-01-03 05:05:42 +00:00
The Miri Cronjob Bot
b80a3ea6d6 Prepare for merging from rust-lang/rust
This updates the rust-version file to e8f3cfc0de.
2026-01-03 04:57:40 +00:00
bors
50d59402bf Auto merge of #150633 - JonathanBrouwer:rollup-lfp28cm, r=JonathanBrouwer
Rollup of 2 pull requests

Successful merges:

 - rust-lang/rust#150627 (Add diagnostic items for `without_provenance` and `without_provenance_mut`)
 - rust-lang/rust#150632 (rustc-dev-guide subtree update)

r? `@ghost`
`@rustbot` modify labels: rollup
2026-01-03 04:03:08 +00:00
Sayantan Chakraborty
7434dd6a2d
Merge pull request #1984 from rust-lang/rustc-pull
Rustc pull update
2026-01-03 03:33:46 +00:00
Ryan Ward
a2fcb0de18 fix: add CHECK directives to ret comments and be more pervasive with directive contents 2026-01-03 12:50:38 +10:30
AprilNEA
cc563d5315
Remove unneeded forbid_generic field from Res::SelfTyAlias
The `forbid_generic` field in `Res::SelfTyAlias` is no longer needed.
The check for generic `Self` types in anonymous constants is now handled
by `check_param_uses_if_mcg` in HIR type lowering, making this field
redundant.

This removes:
- The `forbid_generic` field from `Res::SelfTyAlias`
- The hack in `rustc_resolve` that set `forbid_generic: true` when
encountering `Self` in constant items
- Related pattern matching and field propagation code
2026-01-03 09:02:46 +08:00
Jonathan Brouwer
d00729b4ba
Rollup merge of #150632 - tshepang:rdg-sync, r=tshepang
rustc-dev-guide subtree update

Subtree update of `rustc-dev-guide` to 545f281f70.

Created using https://github.com/rust-lang/josh-sync.

r? `@ghost`
2026-01-03 01:28:41 +01:00
Jonathan Brouwer
e75d14917d
Rollup merge of #150627 - Coca162:without_provenance_diagnostics, r=Urgau
Add diagnostic items for `without_provenance` and `without_provenance_mut`

Adds diagnostic items for `core::ptr::without_provenance` and `core::ptr::without_provenance_mut`. Will be used to enhance clippy lint `transmuting_null`, see https://github.com/rust-lang/rust-clippy/pull/16336.
2026-01-03 01:28:40 +01:00
Ryan
3df06f5083
fix: use std::num::NonZero instead of extern crate and extend information in CHECK- directives
Co-authored-by: scottmcm <scottmcm@users.noreply.github.com>
2026-01-03 10:53:54 +10:30