Commit graph

169698 commits

Author SHA1 Message Date
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
The rustc-josh-sync Cronjob Bot
874cbe6836 Merge ref '85c8ff69cb' from rust-lang/rust
Pull recent changes from https://github.com/rust-lang/rust via Josh.

Upstream ref: 85c8ff69cb
Filtered ref: 7940f951867cc2e07cc21c36c56c0775db6951e9
Upstream diff: 7fefa09b90...85c8ff69cb

This merge was created using https://github.com/rust-lang/josh-sync.
2026-01-02 23:35:45 +00:00
The rustc-josh-sync Cronjob Bot
c27addbc2b Prepare for merging from rust-lang/rust
This updates the rust-version file to 85c8ff69cb.
2026-01-02 23:35:36 +00:00
bors
e8f3cfc0de Auto merge of #150628 - JonathanBrouwer:rollup-zy040xr, r=JonathanBrouwer
Rollup of 4 pull requests

Successful merges:

 - rust-lang/rust#149991 (Add checks for gpu-kernel calling conv)
 - rust-lang/rust#150047 (std: merge `sys::pal::common` and `sys_common` into `sys::helpers`)
 - rust-lang/rust#150441 (do not suggest method call removal if it changes receiver type)
 - rust-lang/rust#150616 (Update `browser-ui-test` version to `0.23.0`)

r? `@ghost`
`@rustbot` modify labels: rollup
2026-01-02 23:01:27 +00:00
Jonathan Brouwer
58f5089d8a
Rollup merge of #150444 - Sa4dUs:offload-intrinsic2, r=ZuseZ4
Expose kernel launch options as offload intrinsic args

Allows modifying the workgroup and thread grid dimensions directly from the intrinsic call.

```rust
core::intrinsics::offload(_kernel_1, [256, 1, 1], [32, 1, 1], (x,))
```

r? `@ZuseZ4`
2026-01-02 19:00:15 +01:00
Jonathan Brouwer
51faf00dee
Rollup merge of #150425 - Shunpoco:map-npm-install-error, r=Mark-Simulacrum
mapping an error from cmd.spawn() in npm::install

If the tool (yarn) has a problem, spawn in the install() raises an error, but the error message is hard to understand which/how application/file/directory has a problem. This commit enhances the error to explain why it fails.

For example, when I ran `./x test tidy --extra-checks=js`:
```bash
...
tidy check
tidy [extra_checks]: IO error: No such file or directory (os error 2)
tidy [extra_checks]: FAIL
tidy: The following check failed: extra_checks
```
.. It doesn't explain yarn has a problem (in that case, my env didn't have yarn).

After this PR, the same command prints:
```bash
tidy check
can not run yarn install
tidy [extra_checks]: IO error: unable to run yarn: entity not found
tidy [extra_checks]: FAIL
tidy: The following check failed: extra_checks
```
2026-01-02 19:00:14 +01:00
joboet
fc9f0fbf56
bless UI test referencing outdated paths 2026-01-02 18:32:34 +01:00
joboet
d8489c1ea0
std: remove outdated documentation in sys 2026-01-02 18:23:40 +01:00
bors
8a24a202aa Auto merge of #150534 - Kobzol:dist-test-rustdoc, r=Urgau
Run rustdoc tests in opt-dist tests

Context: https://github.com/rust-lang/rust/issues/150287

try-job: dist-x86_64-linux
2026-01-02 13:12:34 +00:00
Marcelo Domínguez
58e2610f71 Expose workgroup/thread dims as intrinsic args 2026-01-02 11:50:32 +01:00
bors
fcd630976c Auto merge of #150565 - RalfJung:miri, r=RalfJung
miri subtree update

Subtree update of `miri` to cb3bfe8ef4.

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

r? `@ghost`
2026-01-01 14:25:01 +00:00
Jonathan Brouwer
cef03a789a
Rollup merge of #150529 - rustbot:docs-update, r=ehuss
Update books

## rust-lang/reference

21 commits in ec78de0ffe2f8344bd0e222b17ac7a7d32dc7a26..6363385ac4ebe1763f1e6fb2063c0b1db681a072
2025-12-15 16:17:43 +0000 to 2025-12-31 21:12:35 +0000
- Remove cargo workspace inheritance (rust-lang/reference#2129)
- identifiers: bump Unicode from 16 to 17 (rust-lang/reference#2071)
- Fix alternation order of lexical rules (rust-lang/reference#2126)
- Fix overly greedy digits (rust-lang/reference#2124)
- Clarify UNICODE_ESCAPE valid token value (rust-lang/reference#2123)
- Fix ambiguity of RESERVED_RAW_IDENTIFIER (rust-lang/reference#2122)
- Document how closure capturing interacts with discriminant reads (rust-lang/reference#1837)
- operator-expr: remove stray word in footnote (rust-lang/reference#2118)
- await-expr: add a missing space (rust-lang/reference#2120)
- attributes: add missing punctuation to instruction_set (rust-lang/reference#2117)
- associated-items: add missing periods (rust-lang/reference#2116)
- Move tools into a consolidated cargo workspace (rust-lang/reference#2115)
- Unwrap all of the lexical chapters (rust-lang/reference#2113)
- Unwrap const_eval.md (rust-lang/reference#2112)
- Add section on expansion-time (early) name resolution (rust-lang/reference#2055)
- const_eval.md: add missing word (rust-lang/reference#2068)
- path-expr.md: use a more suitable punctuation (rust-lang/reference#2082)
- items: clarify label for type-aliases documentation (rust-lang/reference#2110)
- do not mix singular and plural (rust-lang/reference#2101)
- external-blocks: add missing "and" in list (rust-lang/reference#2111)
- conditional-compilation: add a space in `cfg.cfg_attr.attribute-list` (rust-lang/reference#2109)

## rust-lang/rust-by-example

2 commits in 7d21279e40e8f0e91c2a22c5148dd2d745aef8b6..2e02f22a10e7eeb758e6aba484f13d0f1988a3e5
2025-12-21 08:47:57 UTC to 2025-12-21 08:46:33 UTC

- docs(comments): improve readability and formatting (rust-lang/rust-by-example#1981)
- Fix HOF.MD sum of odd squares algorithm (rust-lang/rust-by-example#1980)
2026-01-01 12:04:17 +01:00
许杰友 Jieyou Xu (Joe)
da0ad305fe
Merge pull request #2712 from rust-lang/tshepang-patch-1 2026-01-01 12:34:02 +08:00
bors
4c62aa4468 Auto merge of #150520 - malbarbo:case_get_unchecked, r=jhpratt
Avoid index check in char::to_lowercase and char::to_uppercase

This generates a panic free code, with is helpful for smaller binary sizes.
2026-01-01 01:15:38 +00:00
bors
48622726c4 Auto merge of #150289 - rami3l:dist/rustc-docs-dist-path, r=jieyouxu
fix(bootstrap/dist)!: change dist path for `rustc-docs` to avoid clashing

Closes rust-lang/rust#75833, part of https://github.com/rust-lang/rustup/issues/3717:

> I'd like to know if we can assign another folder name to `rustc-docs`?
> [...]
> [`@ThePuzzlemaker](https://github.com/ThePuzzlemaker)'s` `share/doc/rust/html/nightly-rustc` does look a bit weird to me (`nightly-rustc` has nothing to do with the current `rustc`, i.e. the Rustc Book, but they somehow appear similar just looking at the names).
>
> I personally would like to see something like `share/doc/rust/html/rustc-docs` or `share/doc/rust/html/rustc-api` for this component.
_https://github.com/rust-lang/rust/issues/75833#issuecomment-2002503223_

The TLDR is that currently the "rustc book"'s path clashes with "rustc APIs" (i.e. `rustc-docs`), so we change the path of the latter to make it distributable via rustup.

I'm new to `bootstrap` so please feel free to point out any inconsistencies or any extra work I'll need to do to fully land this somewhat breaking change.
2025-12-31 22:00:15 +00:00
rustbot
a3d829175a Update books 2025-12-31 13:52:32 -08:00
Jonathan Brouwer
8dc15d2424
Rollup merge of #150543 - lnicola:sync-from-ra, r=lnicola
`rust-analyzer` subtree update

Subtree update of `rust-analyzer` to 76d44ffb3f.

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

r? `@ghost`
2025-12-31 17:32:06 +01:00
Jonathan Brouwer
15c467ba0c
Rollup merge of #150530 - Zalathar:string-deref-patterns, r=jackh726
Remove `feature(string_deref_patterns)`

The older `string_deref_patterns` feature has been superseded by the newer and more general `deref_patterns` feature. Removing string-deref-patterns allows us to get rid of a few tricky special cases in match lowering, which are different from the special cases used by deref-patterns.

The handful of existing tests for `string_deref_patterns` have been migrated to use `deref_patterns` instead. Current nightly users of the older feature should hopefully be able to migrate to the newer feature without too much trouble.

Note that `deref_patterns` is currently marked as an “incomplete” feature, because it doesn't have an accepted RFC. But `string_deref_patterns` doesn't appear to have ever had an accepted RFC either, so arguably it should have been marked incomplete too.

---
- Tracking issue for both features: https://github.com/rust-lang/rust/issues/87121
- Original implementation: https://github.com/rust-lang/rust/pull/98914
- [Zulip thread: Can we remove `#![feature(string_deref_patterns)]`?](https://rust-lang.zulipchat.com/#narrow/channel/131828-t-compiler/topic/Can.20we.20remove.20.60.23!.5Bfeature.28string_deref_patterns.29.5D.60.3F/with/565787352)
2025-12-31 17:32:06 +01:00
Ralf Jung
4ba9b739a4 fix non-determinism in os_unfair_lock test 2025-12-31 10:51:58 +01:00
Jakub Beránek
03d2bccbe5
Run rustdoc tests in opt-dist tests 2025-12-31 10:28:04 +01:00
Chayim Refael Friedman
6d0f23cbdc
Merge pull request #21375 from A4-Tacks/impl-trait-target-and-dyn-hint
Fix incorrect dyn hint in `impl Trait for`
2025-12-31 08:30:52 +00:00
A4-Tacks
c19e9ecdd9
Fix incorrect dyn hint in impl Trait for
Example
---
```rust
trait T {}
impl T for {}
```

**Before this PR**

```rust
trait T {}
impl T for {}
  // ^ dyn
```

**After this PR**

```rust
trait T {}
impl T for {}
```
2025-12-31 16:18:33 +08:00
Lukas Wirth
5bb8d5d1e3
Merge pull request #21370 from ChayimFriedman2/macro-brace-style
feat: Add #[rust_analyzer::macro_style()] attribute to control macro completion brace style
2025-12-31 07:39:54 +00:00
bors
629b092f8f Auto merge of #150525 - weihanglo:update-cargo, r=weihanglo
Update cargo submodule

9 commits in 94c368ad2b9db0f0da5bdd8421cea13786ce4412..b54051b1505281ec7a45a250140a0ff25d33f319
2025-12-26 19:39:15 +0000 to 2025-12-30 20:35:52 +0000
- fix(log): add `dependencies` field to `UnitRegistered` (rust-lang/cargo#16448)
- Implement fine grain locking for `build-dir` (rust-lang/cargo#16155)
- feat(resolver): List features when no close match (rust-lang/cargo#16445)
- feat(report): new command `cargo report sessions` (rust-lang/cargo#16428)
- feat (patch): Display where the patch was defined in patch-related error messages (rust-lang/cargo#16407)
- test(build-rs): Reduce from 'build' to 'check' where possible (rust-lang/cargo#16444)
- feat(toml): TOML 1.1 parse support (rust-lang/cargo#16415)
- feat(report): support --manifest-path in `cargo report timings` (rust-lang/cargo#16441)
- fix(vendor): recursively filter git files in subdirectories (rust-lang/cargo#16439)

r? ghost
2025-12-31 06:49:05 +00:00
Jefffrey
935e3cbb86 fix: don't fire non_camel_case_types lint for structs/enums marked with repr(C) 2025-12-31 15:29:51 +09:00
Zalathar
ef8d943ecd Remove feature(string_deref_patterns) 2025-12-31 14:21:38 +11:00
Weihang Lo
62d19109c8
Update cargo submodule 2025-12-30 17:05:59 -05:00
Chayim Refael Friedman
df998811ce Adapt macros in rust-analyzer to new attribute
`match_ast!` cannot be ported because of a weird compiler bug: https://github.com/rust-lang/rust/issues/150518.
2025-12-30 22:44:23 +02:00
Chayim Refael Friedman
975aa0dc8a Add #[rust_analyzer::macro_style()] attribute to control macro completion brace style 2025-12-30 22:44:18 +02:00
Marco A L Barbosa
262426d535 Avoid index check in char::to_lowercase and char::to_uppercase 2025-12-30 16:20:19 -03:00
Ralf Jung
58715c3cce make backtrace look a lot like panics 2025-12-30 20:14:26 +01:00
Chayim Refael Friedman
9508cd1cb7 Compress token trees for best memory usage 2025-12-30 12:56:56 +02:00
Lukas Wirth
3d9856d950
Merge pull request #21367 from ChayimFriedman2/upvars
fix: Have an `upvars_mentioned()` query that only computes what upvars a closure captures
2025-12-30 09:00:13 +00:00
Boxy
90e5a5d935
Merge pull request #2714 from reddevilmidzy/perf-run
Add link for perf run Zulip channel
2025-12-30 07:22:52 +00:00
qb42
841091b846
Remove extra columns from promoted targets 2025-12-30 06:44:28 +00:00
qb42
e330a3fab1
Make empty columns consistent 2025-12-30 06:26:01 +00:00
qb42
8cc5dc374b
Add missing columns to demoted targets 2025-12-30 06:13:43 +00:00
Jonathan Brouwer
18b3b66c01
Rollup merge of #150490 - Kobzol:gcc-bug-url, r=antoyo
Specify bug URL when building GCC

r? `@antoyo`
2025-12-30 02:07:08 +01:00
Jonathan Brouwer
1953001256
Rollup merge of #150489 - Kobzol:gcc-no-debuginfo, r=antoyo
Disable debuginfo when building GCC

To reduce size of libgccjit.so from ~400 MiB to ~50 MiB.

r? `@antoyo`
2025-12-30 02:07:08 +01:00
Jonathan Brouwer
71c248a2e1
Rollup merge of #150396 - GuillaumeGomez:fix-line-numbers-hidden, r=lolbinarycat
[rustdoc] If line number setting is disabled, do not make line numbers take space

While working on https://github.com/rust-lang/rust/pull/150395, I realized that when enabled then disabled the "show line numbers" setting, instead of looking like initially:

<img width="904" height="148" alt="Screenshot From 2025-12-26 16-51-44" src="https://github.com/user-attachments/assets/a24df2f2-61be-4db5-b60f-519b35425fd2" />

The "space" taken by line numbers was still there:

<img width="904" height="148" alt="Screenshot From 2025-12-26 16-51-41" src="https://github.com/user-attachments/assets/b44af75d-52a4-4401-98e4-602b16bf6b9b" />

This PR fixes it.

First commit cleans up the `utils.goml` file a bit, I think I'll do more cleanup because switching the settings without reloading the page should make GUI tests a bit faster.

r? `@yotamofek`
2025-12-30 02:07:07 +01:00
Ralf Jung
b12b766cf3 fix previously dead android tests and remove some dangling files 2025-12-29 23:37:09 +01:00
Ralf Jung
1514495151 always show the origin_span of the failing thread 2025-12-29 23:37:09 +01:00
Ralf Jung
8cd16cd18b adjust how backtraces get rendered; always show thread name when there are multiple threads 2025-12-29 23:14:39 +01:00
bors
56f24e00c6 Auto merge of #150488 - JonathanBrouwer:rollup-9ugn7py, r=JonathanBrouwer
Rollup of 2 pull requests

Successful merges:

 - rust-lang/rust#150394 (Accommodate LLVM PassPlugin rename)
 - rust-lang/rust#150483 (miri subtree update)

r? `@ghost`
`@rustbot` modify labels: rollup
2025-12-29 18:50:18 +00:00
Chayim Refael Friedman
edae1517f8
Merge pull request #21308 from dfireBird/runnable-subcommand-config
feat: implement configuration to change sub command for test, bench and doctest
2025-12-29 17:20:29 +00:00
Chayim Refael Friedman
192bbd1d4b Have an upvars_mentioned() query that only computes what upvars a closure captures
It's required for coercion, where we now use it, as well as for other things.
2025-12-29 19:16:07 +02:00
Tshepang Mbambo
5076810668
Merge pull request #2713 from rust-lang/rustc-pull
Rustc pull update
2025-12-29 19:09:16 +02:00
Jakub Beránek
0cc8608493
Specify bug URL when building GCC 2025-12-29 18:06:48 +01:00
dfireBird
7069629ee9 chore: add test_name placeholder in config 2025-12-29 22:32:20 +05:30
Chayim Refael Friedman
cd2c209a1c Fix Clippy 2025-12-29 18:58:25 +02:00