Commit graph

315541 commits

Author SHA1 Message Date
BD103
b57c249333 fix: make Type::of supported unsized types 2026-01-12 14:42:00 -05:00
Guilherme Luiz
6b5a1a51e5
Switch from ffi to ſt ligature for better visual clarity 2026-01-12 16:39:54 -03:00
Tshepang Mbambo
419655be81 sembr src/tests/directives.md 2026-01-12 20:52:54 +02:00
Tshepang Mbambo
ef5bae8393
Merge pull request #2723 from rust-lang/tshepang/sembr
sembt borrow_check/opaque-types-region-inference-restrictions
2026-01-12 20:51:32 +02:00
Tshepang Mbambo
98e65aa454 handle another numbered list notation 2026-01-12 20:43:48 +02:00
Tshepang Mbambo
9a81699f06 use a stronger pause 2026-01-12 20:43:48 +02:00
Tshepang Mbambo
c4b05c3883 fix sembr tool limitation 2026-01-12 20:43:48 +02:00
Tshepang Mbambo
2204cbd987 "in tree" should be "in-tree" 2026-01-12 20:43:48 +02:00
Tshepang Mbambo
52a5023e76 sembr src/external-repos.md 2026-01-12 20:43:48 +02:00
Tshepang Mbambo
ffe359fe2b another corner case 2026-01-12 20:43:48 +02:00
Jonathan Brouwer
573c3097a3
Fix perf of check_crate_level refactor 2026-01-12 18:42:17 +01:00
Edvin Bryntesson
418cff3ec0
Port #[must_not_suspend] to attribute parser 2026-01-12 18:16:37 +01:00
rustbot
439da07453 Update books 2026-01-12 18:01:10 +01:00
bors
aefa10405d Auto merge of #151003 - matthiaskrgr:rollup-wvnF9sN, r=matthiaskrgr
Rollup of 8 pull requests

Successful merges:

 - rust-lang/rust#150861 (Folding/`ReErased` cleanups)
 - rust-lang/rust#150869 (Emit error instead of delayed bug when meeting mismatch type for const tuple)
 - rust-lang/rust#150920 (Use a hook to decouple `rustc_mir_transform` from `rustc_mir_build`)
 - rust-lang/rust#150941 (rustc_parse_format: improve diagnostics for unsupported python numeric grouping)
 - rust-lang/rust#150972 (Rename EII attributes slightly (being consistent in naming things foreign items, not extern items))
 - rust-lang/rust#150980 (Use updated indexes to build reverse map for delegation generics)
 - rust-lang/rust#150986 (std: Fix size returned by UEFI tcp4 read operations)
 - rust-lang/rust#150996 (Remove `S-waiting-on-bors` after a PR is merged)

r? @ghost
2026-01-12 16:43:20 +00:00
Ayush Singh
50b60aaff3
std: sys: net: uefi: Make TcpStream Send
- Since UEFI has no threads, this should be safe.
- Makes compiling remote-test-server simpler.

Signed-off-by: Ayush Singh <ayush@beagleboard.org>
2026-01-12 19:52:54 +05:30
Tobias Bucher
90b32e731b Fix typo in MaybeUninit docs
–- → – (extra ASCII minus after endash)

Introduced in https://github.com/rust-lang/rust/pull/140463 (11627f00c0).
2026-01-12 14:56:04 +01:00
bors
137716908d Auto merge of #150786 - reddevilmidzy:mgca-array, r=BoxyUwU
mGCA: Support array expression as direct const arguments

tracking issue: rust-lang/rust#132980
resolve: rust-lang/rust#150612

Support array expression as direct const arguments (e. g. [1, 2, N]) in min_generic_const_args.

todo:
* [x] Rebase another mGCA PR
* [x] Add more test case
* [x] Modify clippy code
2026-01-12 13:26:21 +00:00
Matthias Krüger
db4c095147
Rollup merge of #150996 - bors-merged-label, r=jieyouxu
Remove `S-waiting-on-bors` after a PR is merged

I just noticed that we have 50k+ PRs marked as waiting on bors, even though they have been merged, lol.
2026-01-12 13:32:13 +01:00
Matthias Krüger
db5ac01aba
Rollup merge of #150986 - bishop-fix-read, r=ChrisDenton
std: Fix size returned by UEFI tcp4 read operations

The read and read_vectored methods were returning the length of the input buffer, rather than the number of bytes actually read. Fix by changing read_inner to return the correct value, and have both read and read_vectored return that.
2026-01-12 13:32:12 +01:00
Matthias Krüger
1ff682edcd
Rollup merge of #150980 - fix-ice-150673, r=fee1-dead
Use updated indexes to build reverse map for delegation generics

Fixes rust-lang/rust#150673.

This was a bug that built the `param_def_id_to_index` map with indexes before the new generics were renumbered.

r? @petrochenkov
2026-01-12 13:32:12 +01:00
Matthias Krüger
681058ee88
Rollup merge of #150972 - rename-attrs, r=kivooeo
Rename EII attributes slightly (being consistent in naming things foreign items, not extern items)

r? @Kivooeo
2026-01-12 13:32:11 +01:00
Matthias Krüger
2caeb9ff59
Rollup merge of #150941 - ua/numeric, r=workingjubilee
rustc_parse_format: improve diagnostics for unsupported python numeric grouping

Detect Python-style numeric grouping syntax in format strings (e.g. `{x:,}`)
and emit a clear diagnostic explaining that it is not supported in Rust.
This helps users coming from Python understand the error without exposing
the full set of valid Rust format specifiers.
2026-01-12 13:32:11 +01:00
Matthias Krüger
12b1f3f145
Rollup merge of #150920 - hook-build-mir, r=tiif
Use a hook to decouple `rustc_mir_transform` from `rustc_mir_build`

I noticed that the only point of direct contact between the `rustc_mir_transform` and `rustc_mir_build` crates is a single `build_mir` function, which could easily be changed to a hook function instead.

By making that function a hook, we can make `rustc_mir_transform` no longer have a dependency on `rustc_mir_build`, allowing them to be built/rebuilt independently. That should hopefully allow slightly more parallelism in clean builds and incremental rebuilds of the compiler.
2026-01-12 13:32:09 +01:00
Matthias Krüger
43c084ea61
Rollup merge of #150869 - fix/150841, r=BoxyUwU
Emit error instead of delayed bug when meeting mismatch type for const tuple

And rename some tests

Fixes rust-lang/rust#150841

r? @BoxyUwU
2026-01-12 13:32:08 +01:00
Matthias Krüger
79445c315e
Rollup merge of #150861 - folding-cleanups, r=lcnr
Folding/`ReErased` cleanups

Various cleanups I found while reading this code closely, mostly involving folding and the use of `ReErased`.

r? @lcnr
2026-01-12 13:32:07 +01:00
bjorn3
c451e9bac6 Remove a workaround for a bug
I don't think it is necessary anymore. As I understand it from issue
39504 the original problem was that rustbuild changed a hardlink in the
cargo build dir to point to copy in the sysroot while cargo may have
hardlinked it to the original first. I don't think this happens anymore
and as such this workaround is no longer necessary.
2026-01-12 12:18:28 +00:00
nora
d2cd1ff18d
Merge pull request #2722 from reddevilmidzy/ambig
Fix indent in rust code
2026-01-12 12:05:23 +01:00
rust-bors[bot]
b115ea2e6a
Auto merge of #150959 - Kobzol:bors-email-3, r=marcoieni
Use the old homu bors e-mail address again

Now that new bors knows how to use the old homu e-mail address (https://github.com/rust-lang/bors/pull/614), we can revert to the old address. I modified the code to keep compatibility with both addresses, so that everything should still work for every merged commit in the past few days. In a few weeks/months, we could remove the temporary bors e-mail address, as at that point no one will likely care about these few merged commits anymore.

Should not be merged until https://github.com/rust-lang/bors/pull/614 is deployed, although the current version in `main` should already mostly work with both addresses, except for CI postprocessing statistics.

Should be backported.
2026-01-12 10:04:23 +00:00
Hans Wennborg
6ca950136d Relax test expectation for @__llvm_profile_runtime_user
After https://github.com/llvm/llvm-project/pull/174174 it has profile
info marking it cold.
2026-01-12 11:03:07 +01:00
Akshit Gaur
e03cb1f0a6
run-make-support: resolve .rmeta companion for .rlib stubs
Add .rmeta resolution for run-make/sysroot-crates-are-unstable test
2026-01-12 10:52:14 +01:00
Jakub Beránek
284d1361e4
Dogfood -Zno-embed-metadata for the standard library 2026-01-12 10:52:13 +01:00
Jakub Beránek
3ca709c745
Remove S-waiting-on-bors after a PR is merged 2026-01-12 09:57:05 +01:00
Tshepang Mbambo
a40e48495f
Merge pull request #2721 from rust-lang/rustc-pull
Rustc pull update
2026-01-12 10:24:10 +02:00
Leon Schuermann
b327e309b9 core: ptr: split_at_mut: fix typo in safety doc
Removes the double subject "it" in the safety documentation of
`core::ptr::split_at_mut` for raw slice pointers, as it does not refer
to anything.

Reported-by: Johnathan Van Why <jrvanwhy@betterbytes.org>
2026-01-12 03:21:16 -05:00
Jana Dönszelmann
6d0f23adad
rename extern item to foreign item 2026-01-12 08:07:23 +01:00
Jana Dönszelmann
322bbdfaaf
rename eii-extern-target 2026-01-12 08:07:23 +01:00
rust-bors[bot]
561364e4d5
Auto merge of #150758 - ColinFinck:rust-mingw-package-as-extensions, r=jieyouxu
build-manifest: Add `rust-mingw` also as extension for "pc-windows-gnu" hosts.

This should enable `rustup component add --target aarch64-pc-windows-gnullvm rust-mingw` when running an `x86_64-pc-windows-gnullvm` toolchain (and vice-versa).

Which itself enables proper cross-compiling of Windows ARM64 binaries on a Windows x64 host without using commercial MSVC.

CC @mati865
2026-01-12 05:35:38 +00:00
The rustc-josh-sync Cronjob Bot
d53ec2a0c8 Merge ref '44a5b55557' from rust-lang/rust
Pull recent changes from https://github.com/rust-lang/rust via Josh.

Upstream ref: rust-lang/rust@44a5b55557
Filtered ref: rust-lang/rustc-dev-guide@df5b7c44b8
Upstream diff: 85c8ff69cb...44a5b55557

This merge was created using https://github.com/rust-lang/josh-sync.
2026-01-12 04:29:34 +00:00
The rustc-josh-sync Cronjob Bot
e20d903c1c Prepare for merging from rust-lang/rust
This updates the rust-version file to 44a5b55557.
2026-01-12 04:29:24 +00:00
rust-bors[bot]
840245e91b
Auto merge of #150981 - matthiaskrgr:rollup-px5fFnj, r=matthiaskrgr
Rollup of 9 pull requests

Successful merges:

 - rust-lang/rust#147938 (Add const cloning of slices and tests)
 - rust-lang/rust#149718 (Add freeze file times on Windows)
 - rust-lang/rust#150438 (Remove mentions of debootstrap and chroots from the m68k-unknown-none-elf platform support doc)
 - rust-lang/rust#150790 (feat: invisible character help string)
 - rust-lang/rust#150906 (Simplify `#[eii]` macro using methods on ecx)
 - rust-lang/rust#150938 (Port `#[collapse_debuginfo]` to the new attribute parsing system)
 - rust-lang/rust#150953 (std: sys: fs: uefi: Implement copy)
 - rust-lang/rust#150964 (Completely list all unparsed attributes)
 - rust-lang/rust#150975 (ui: add test for normalizing const projections with assoc const equality)

Failed merges:

 - rust-lang/rust#150972 (Rename EII attributes slightly (being consistent in naming things foreign items, not extern items))

r? @ghost
2026-01-12 02:14:38 +00:00
Nicholas Bishop
63481058f7 std: Fix size returned by UEFI tcp4 read operations
The read and read_vectored methods were returning the length of the
input buffer, rather than the number of bytes actually read. Fix by
changing read_inner to return the correct value, and have both read and
read_vectored return that.
2026-01-11 20:08:42 -05:00
Asuna
e555d2c44b Use updated indexes to build reverse map for delegation generics 2026-01-12 00:11:55 +01:00
Matthias Krüger
c31e68ffc4
Rollup merge of #150975 - add-test-norm-const-projections-mgca, r=fmease
ui: add test for normalizing const projections with assoc const equality

This adds a UI test to associated-const-bindings (created new) directory to  ensure that constant projections with associated const equality bounds are correctly normalized.

File added:
- `tests/ui/const-generics/associated-const-bindings/normalization-via-param-env.rs`

r? @fmease
r? @camelid

Fixes rust-lang/rust#120905
2026-01-12 00:02:56 +01:00
Matthias Krüger
565c663413
Rollup merge of #150964 - list_all_attrs, r=jdonszelmann
Completely list all unparsed attributes

Also introduce a `SPECIAL_ATTRIBUTES` list, since `cfg` was incorrectly being detected as an unparsed attribute in `check_attr`.

I will also update https://github.com/rust-lang/rust/issues/131229#issuecomment-2971351163

r? @jdonszelmann
2026-01-12 00:02:55 +01:00
Matthias Krüger
4ea3e90883
Rollup merge of #150953 - uefi-fs-copy, r=joboet
std: sys: fs: uefi: Implement copy

- Using the implementation from sys::fs::common since ther is no built-in copy implementation in UEFI.
- Tested with OVMF on QEMU.

@rustbot label +O-UEFI
2026-01-12 00:02:55 +01:00
Matthias Krüger
d6621f07ae
Rollup merge of #150938 - collapse_debuginfo, r=jdonszelmann
Port `#[collapse_debuginfo]` to the new attribute parsing system

Tracking issue: https://github.com/rust-lang/rust/issues/131229

Felt like doing one again, has been a while :3

r? @jdonszelmann
2026-01-12 00:02:54 +01:00
Matthias Krüger
a44a2d3232
Rollup merge of #150906 - eii-ecx-mehods, r=Kivooeo
Simplify `#[eii]` macro using methods on ecx
2026-01-12 00:02:54 +01:00
Matthias Krüger
66d18446fc
Rollup merge of #150790 - lexer/help-invisible-character, r=Kivooeo,tgross35
feat: invisible character help string

I was playing around with zero width spaces in different programming languages and thought that this error message could be more helpful. Hopefully it's a good first contribution! :)
2026-01-12 00:02:53 +01:00
Matthias Krüger
0a7d5f9f73
Rollup merge of #150438 - m68k-elf-platform-doc-update, r=Noratrieb
Remove mentions of debootstrap and chroots from the m68k-unknown-none-elf platform support doc

I left the mentions of qemu-user-static as it's one of the only easily accessible emulators for m68k, even though you would have to write your own `_start` and such. The C toolchain that is mentioned is also the easiest way I've found so far to get a linker, which is still needed unless I'm missing something.

closes rust-lang/rust#150414

r? @Noratrieb
2026-01-12 00:02:53 +01:00
Matthias Krüger
e1c13ff160
Rollup merge of #149718 - windows_freeze_file_times, r=ChrisDenton
Add freeze file times on Windows

This PR add two new methods on [OpenOptionsExt](https://doc.rust-lang.org/stable/std/os/windows/fs/trait.OpenOptionsExt.html) in order to not change the "last access time" and "last write time" of the file on Windows.

- Tracking Issue: https://github.com/rust-lang/rust/issues/149715
- ACP: https://github.com/rust-lang/libs-team/issues/708
2026-01-12 00:02:52 +01:00