Commit graph

315740 commits

Author SHA1 Message Date
Lukas Bergdoll
506762f3ff Explicitly export core and std macros
Currently all core and std macros are automatically added to the prelude
via #[macro_use]. However a situation arose where we want to add a new macro
`assert_matches` but don't want to pull it into the standard prelude for
compatibility reasons. By explicitly exporting the macros found in the core and
std crates we get to decide on a per macro basis and can later add them via
the rust_20xx preludes.
2026-01-13 08:47:48 +01:00
bors
b2a322beb2 Auto merge of #145343 - Kobzol:dogfood-z-no-embed-metadata, r=bjorn3
Dogfood `-Zno-embed-metadata` in the standard library

This PR dogfoods the [`-Zno-embed-metadata`](https://github.com/rust-lang/cargo/issues/15495) flag in the standard library. This removes the .rmeta portion out of the `libstd.so` file, thus reducing its filesize on disk. Notably, this reduces the amount of MiB that we ship to people who download the standard library.

I think that the only way to find out what this breaks is to try to run full CI, and then try to land it on nightly :)

r? @ghost
2026-01-13 07:30:35 +00:00
Jakub Beránek
c263d36539
Fix citool tests 2026-01-13 07:35:24 +01:00
Martin Nordholts
8a8b31a4d1 compiler: Make Externally Implementable Item (eii) macros "semiopaque"
Otherwise eiis defined by std will produce large amounts of `missing
stability attribute` errors.
2026-01-13 06:27:55 +01:00
Marco Trevisan
1e69091403
armv7-unknown-linux-uclibceabihf.md: Update toolchain download link
The old toolchain is not working with recent rustc, as it does not
defining `getauxval`
2026-01-13 04:17:51 +01:00
Marco Trevisan
e5dbb3b1a2
armv7-unknown-linux-uclibceabihf.md: Fix build-toml syntax
With the suggested value we were getting instead:

```
ERROR: Failed to parse '/tmp/rust/bootstrap.toml': unknown field `stage`, expected one of `build`, `description`, `host`, `target`, `build-dir`, `cargo`, `rustc`, `rustfmt`, `cargo-clippy`, `docs`, `compiler-docs`, `library-docs-private-items`, `docs-minification`, `submodules`, `gdb`, `lldb`, `nodejs`, `npm`, `yarn`, `python`, `windows-rc`, `reuse`, `locked-deps`, `vendor`, `full-bootstrap`, `bootstrap-cache-path`, `extended`, `tools`, `tool`, `verbose`, `sanitizers`, `profiler`, `cargo-native-static`, `low-priority`, `configure-args`, `local-rebuild`, `print-step-timings`, `print-step-rusage`, `check-stage`, `doc-stage`, `build-stage`, `test-stage`, `install-stage`, `dist-stage`, `bench-stage`, `patch-binaries-for-nix`, `metrics`, `android-ndk`, `optimized-compiler-builtins`, `jobs`, `compiletest-diff-tool`, `compiletest-allow-stage0`, `compiletest-use-stage0-libtest`, `tidy-extra-checks`, `ccache`, `exclude` for key `build`
```
2026-01-13 04:01:45 +01:00
Esteban Küber
9b7f612d44 Update main label 2026-01-13 02:57:40 +00:00
Augusto César Perin
1123177498 Unify and deduplicate From<T> float tests
Co-authored-by: ericinB <ericbncer@gmail.com>
2026-01-12 23:49:20 -03:00
Esteban Küber
47089856ab Update run-make test output 2026-01-13 02:14:31 +00:00
Esteban Küber
45edce26d3 Update rustc_on_unimplemented message for Step 2026-01-13 01:28:28 +00:00
Esteban Küber
89713fcef5 Mention Range when Step trait bound is unmet 2026-01-13 01:16:58 +00:00
Esteban Küber
cafe91749f On unmet trait bound, mention if trait is unstable 2026-01-13 01:16:58 +00:00
Heath Dutton🕴️
afe76df79c Don't suggest replacing closure parameter with type name
When a closure has an inferred parameter type like `|ch|` and the
expected type differs in borrowing (e.g., `char` vs `&char`), the
suggestion code would incorrectly suggest `|char|` instead of the
valid `|ch: char|`.

This happened because the code couldn't walk explicit `&` references
in the HIR when the type is inferred, and fell back to replacing the
entire parameter span with the expected type name.

Fix by only emitting the suggestion when we can properly identify the
`&` syntax to remove.
2026-01-12 18:07:38 -05:00
KaiTomotake
d697b4d7ab
Improve std::path::Path::join documentation
Adapt `PathBuf::push` documentation for `Path::join` and add it to `join`'s docs

Fix to comply with tidy

Remove unnecessary whitespace
2026-01-13 07:48:06 +09:00
Urgau
dd2b0a8e92 Update compiletest for new --print=check-cfg output 2026-01-12 23:46:22 +01:00
Urgau
feb44c3f48 Make --print=check-cfg output compatible --check-cfg arguments 2026-01-12 23:46:22 +01:00
Nicholas Bishop
c98b90eaad std: Change UEFI env vars to volatile storage
The UEFI variables set by the env vars should be volatile, otherwise
they will persist after reboot and use up scarce non-volatile storage.
2026-01-12 17:29:12 -05:00
Jayan Sunil
2d49cfe6aa
fix: added missing type in triagebot.toml 2026-01-13 03:17:32 +05:30
Tshepang Mbambo
46ea5b4a0b
Merge pull request #2725 from rust-lang/tshepang/sembr
sembr a few files
2026-01-12 22:29:58 +02:00
Tshepang Mbambo
da5aa2825a sembr src/tests/perf.md 2026-01-12 22:26:55 +02:00
Tshepang Mbambo
579e2b3009 some improvements to tests/best-practices.md 2026-01-12 22:26:30 +02:00
Tshepang Mbambo
d89da80448 sembr src/tests/best-practices.md 2026-01-12 22:19:30 +02:00
Tshepang Mbambo
2d9616a5d7 add missing pause 2026-01-12 22:18:33 +02:00
Tshepang Mbambo
c451d97ce1 a more natural continuation 2026-01-12 22:18:18 +02:00
Tshepang Mbambo
328942672d sembr src/profiling/with_rustc_perf.md 2026-01-12 22:15:18 +02:00
Tshepang Mbambo
d442a793b2 sembr src/rustdoc-internals/rustdoc-html-test-suite.md 2026-01-12 22:13:40 +02:00
Tshepang Mbambo
31c0191395 sembr src/building/new-target.md 2026-01-12 22:10:04 +02:00
bors
2f1bd3f378 Auto merge of #150844 - fmease:mv-ace-tests, r=BoxyUwU
mGCA: Move tests for assoc const bindings (formerly ACE) into dedicated directory & replace more mentions of ACE

Split out of PR rust-lang/rust#150843.
As discussed.

Somewhat obvious underlying principle: If the test checks basic or core parts of assoc const bindings and nothing else, move it, otherwise leave it even if it contains ACEs.

Motivation: It makes a lot easier for me to continue working on ACE efficiently.

r? @BoxyUwU
2026-01-12 20:08:40 +00:00
Tshepang Mbambo
257f629ea5
Merge pull request #2724 from rust-lang/tshepang/sembr
sembr tests/directives.md
2026-01-12 22:08:12 +02:00
Tshepang Mbambo
e0d9c079ee add missing pause 2026-01-12 22:06:43 +02:00
BD103
1bde2f4705 chore: test Type::of on unsized types
I chose to simply extend `dump.rs`, rather than create a new UI test.
2026-01-12 14:43:21 -05:00
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