Commit Graph

169825 Commits

Author SHA1 Message Date
Matthias Krüger 74ab9a4784 Rollup merge of #150809 - update-literal-escaper, r=Urgau
Update `literal-escaper` version to `0.0.7`

It removes the `std` dependency for this crate (which doesn't change anything for rustc 😄 ).

cc @bjorn3
r? @Urgau
2026-01-08 22:21:21 +01:00
Matthias Krüger d763ffaf04 Rollup merge of #150721 - deprecated-doc-intra-link, r=GuillaumeGomez
Deprecated doc intra link

fixes https://github.com/rust-lang/rust/issues/98342
r? @GuillaumeGomez

Renders intra-doc links in the note text of the `#[deprecated]` attribute. It is quite natural to suggest some other function to use there. So e.g.

```rust
#[deprecated(since = "0.0.0", note = "use [`std::mem::size_of`] instead")]
```

renders as

<img width="431" height="74" alt="Screenshot from 2026-01-06 12-08-21" src="https://github.com/user-attachments/assets/8f608f08-13ee-4bbf-a631-6008058a51e2" />
2026-01-08 22:21:19 +01:00
Matthias Krüger cb3b2d8655 Rollup merge of #150699 - literals-as-direct-const-args, r=BoxyUwU
MGCA: Support literals as direct const arguments

Fixes [#150168](https://github.com/rust-lang/rust/issues/150618)

- **initial changes for mcga literals**
- **rustfmt**

r? @BoxyUwU
2026-01-08 22:21:17 +01:00
Matthias Krüger aee575713d Rollup merge of #149961 - add-optional-spellcheck-in-pre-hook, r=lolbinarycat
tidy: add if-installed prefix condition to extra checks system

Ref: https://rust-lang.zulipchat.com/#narrow/channel/326414-t-infra.2Fbootstrap/topic/Should.20Spellcheck.20check.20all.20files.3F/with/543227610

tidy now runs spellcheck (typos-cli) without adding `--extra-checks=spellcheck` option if the tool is already installed under ./build/misc-tools and the version is expected.
It will improve code quality without bothering engineers who doesn't want to use typos or who cleans up ./build directory frequently.
2026-01-08 22:21:14 +01:00
human9000 9f3956f378 MGCA: literals support 2026-01-08 20:29:00 +05:00
Matthias Krüger 0b98c6024b Rollup merge of #150787 - s390x-musl-co-maintainer, r=Noratrieb
Add myself as co-maintainer for s390x-unknown-linux-musl

Having two dedicated target maintainers is a prerequisite for promoting this target to tier 2. I've been in contact with Ulrich and he's agreed to having me as a co-maintainer in preparation for a MCP to promote it to tier 2.

cc @uweigand
2026-01-08 16:25:32 +01:00
Matthias Krüger 7a11f8baee Rollup merge of #150717 - jobs, r=Kobzol
Thread `--jobs` from `bootstrap` -> `compiletest` -> `run-make-support`

Context is https://github.com/rust-lang/rust/pull/150524#issuecomment-3712701586, where we would like to thread the `--jobs` config from bootstrap explicitly through to run-make tests without relying on an "external env var" that bypasses the build/test infra.

Note that this PR currently intentionally couples the jobs configured for *builds*, versus for `TestMode::RunMake` tests. We can further specialize some kind of `run-make-jobs` bootstrap config *if actually needed*; I will keep this configuration naive for now.

r? @Kobzol
2026-01-08 16:25:31 +01:00
Matthias Krüger 219d95e9bc Rollup merge of #150694 - miri-check, r=clubby789,bjorn3
./x check miri: enable check_only feature

With this, we should no longer need to turn off the default features, so we can undo https://github.com/rust-lang/rust/pull/149550.

@bjorn3 you seem to have a test setup to check if this works properly in terms of skipping all the work that should not be required -- could you test if this PR works as intended?

FWIW we could now remove `default_features` from `run_tool_check_step`. Not sure if that's worth it.
2026-01-08 16:25:30 +01:00
Matthias Krüger 3481c0d3cb Rollup merge of #150569 - check_static_initializer_acyclic, r=workingjubilee
Ensure that static initializers are acyclic for NVPTX

NVPTX does not support cycles in static initializers (see rust-lang/rust#146787). LLVM produces an error when attempting to generate code for such constructs, like self-referential structs.

To avoid LLVM UB, we emit a post-monomorphization error on the Rust side before reaching codegen.

This is achieved by analyzing a subgraph of the "mono item graph" that only contains statics.
1. Calculate the strongly connected components (SCCs) of the graph.
2. Check for cycles (more than one node in an SCC or one node that references itself).
2026-01-08 16:25:30 +01:00
Guillaume Gomez 27b1083a96 Update literal-escaper version to 0.0.7 2026-01-08 14:10:33 +01:00
Folkert de Vries 3be74a7441 render intra-doc links in the #[deprectated] note 2026-01-08 11:35:33 +01:00
Folkert de Vries 64c78f6e74 make MarkdownItemInfo a field struct 2026-01-08 11:33:31 +01:00
rust-bors[bot] 32fe406b5e Auto merge of #150538 - Kobzol:dist-cg-gcc-component, r=jieyouxu
Add a dist component for cg_gcc

try-job: dist-x86_64-linux
2026-01-08 09:53:23 +00:00
rust-bors[bot] bca37a20bd Auto merge of #150798 - matthiaskrgr:rollup-ANxstUE, r=matthiaskrgr
Rollup of 6 pull requests

Successful merges:

 - rust-lang/rust#150675 (MGCA: Support tuple expressions as direct const arguments)
 - rust-lang/rust#150696 (enrich error info when tries to dlopen Enzyme)
 - rust-lang/rust#150747 (tests/ui/runtime/on-broken-pipe/with-rustc_main.rs: Not needed so remove)
 - rust-lang/rust#150757 (Fix `alloc_error_handler` signature mismatch)
 - rust-lang/rust#150777 (Stabilize `slice::element_offset`)
 - rust-lang/rust#150791 (Remove out of date FIXME comment.)

r? @ghost
2026-01-08 06:38:08 +00:00
Matthias Krüger db2ab90c05 Rollup merge of #150675 - mgca/tuple-expr, r=BoxyUwU
MGCA: Support tuple expressions as direct const arguments

Tracking issue: rust-lang/rust#132980

Fixes rust-lang/rust#133965
Fixes rust-lang/rust#150613

r? @BoxyUwU
2026-01-08 07:27:54 +01:00
rust-bors[bot] 598c7bde38 Auto merge of #150783 - Kobzol:bors-email-update, r=jieyouxu
Update bors e-mail lookup

This should hopefully fix the post-merge CI workflow and git change detection in bootstrap.
2026-01-08 03:13:07 +00:00
Aelin Reidel 600102c09b Add myself as co-maintainer for s390x-unknown-linux-musl
Having two dedicated target maintainers is a prerequisite for promoting
this target to tier 2. I've been in contact with Ulrich and he's agreed
to having me as a co-maintainer in preparation for a MCP to promote it to
tier 2.
2026-01-08 02:21:44 +01:00
Jakub Beránek dbf905fea9 Rollup merge of #150761 - patch-1, r=wesleywiser
rustc book: fix grammar
2026-01-07 23:15:51 +01:00
Jakub Beránek 4cb5ccb53f Rollup merge of #150738 - triagebot-first-glob-use, r=tgross35
Factorize `triagebot.toml` float parsing mentions with a glob matching

Related to https://github.com/rust-lang/triagebot/pull/2244.

r? @tgross35
2026-01-07 23:15:51 +01:00
Jakub Beránek f2d0d52c2f Remove unused environment variable
Its last use was removed in https://github.com/rust-lang/rust/pull/142827.
2026-01-07 22:50:35 +01:00
Jakub Beránek 138cc27f49 Update bors e-mail lookup 2026-01-07 22:45:41 +01:00
Urgau bbdba48aeb Update tidy check for triagebot path mentions with glob support 2026-01-07 18:28:22 +01:00
rust-bors[bot] fc546b94ad Auto merge of #150645 - GuillaumeGomez:rename-rustdoc-tests, r=Kobzol,Zalathar
Rename `tests/rustdoc` into `tests/rustdoc-html`

As discussed on [zulip](https://rust-lang.zulipchat.com/#narrow/channel/266220-t-rustdoc/topic/rename.20tests.2Frustdoc.20to.20rustdoc-html.3F/with/566142388), renaming this testsuite better reflects what they actually test. Later on, it could also allow us to add an alias to run all rustdoc tests at once.

r? @camelid
2026-01-07 16:21:28 +00:00
Guillaume Gomez 8256623ab4 Update rustc-dev-guide about tests/rustdoc renamed into tests/rustdoc-html 2026-01-07 14:23:30 +01:00
Guillaume Gomez a928f3352d Rename tests/rustdoc into tests/rustdoc-html 2026-01-07 14:23:30 +01:00
Tshepang Mbambo 5b4dbe0213 add missing commas 2026-01-07 14:53:21 +02:00
Tshepang Mbambo 43e1604def rustc book: fix grammar 2026-01-07 14:51:18 +02:00
Jakub Beránek 6f7313e8ad Make verify-channel.sh script compatible with new bors 2026-01-07 13:06:27 +01:00
mu001999 d572e6d415 Add span field for ConstArg 2026-01-07 08:44:32 +08:00
mu001999 af76a2456d MGCA: Support tuple expressions as direct const arguments 2026-01-07 08:44:23 +08:00
bors d9617c8d9a Auto merge of #150310 - JonathanBrouwer:cfg_trace2, r=jdonszelmann
Port `#[cfg]` and `#[cfg_attr]` trace attributes to the new attribute parsers

This PR converts `cfg` and `cfg_trace` attributes to the new parsed representation.

The primary challenge is that re-parsing these attributes in the HIR is a performance regression, since these attributes were only used in rustdoc and clippy parsing them in the HIR is extra work that was not done in the compiler before. To solve this, we only parse the attributes once and then store their parsed representation in the AST.
2026-01-06 22:59:32 +00:00
Shunpoco 0dfff23114 address reviews 2026-01-06 21:46:14 +00:00
kulst 630c7596e9 Ensure that static initializers are acyclic for NVPTX
NVPTX does not support cycles in static initializers. LLVM produces an error when attempting to codegen such constructs (like self referential structs).

To not produce LLVM UB we instead emit a post-monomorphization error on
Rust side before reaching codegen.

This is achieved by analysing a subgraph of the "mono item graph" that
only contains statics:
1. Calculate the strongly connected components (SCCs) of the graph
2. Check for cycles (more than one node in a SCC or exactly one node
   which references itself)
2026-01-06 17:00:21 +01:00
Jonathan Brouwer 0d9ea4f74a Rollup merge of #150706 - alexcrichton:update-wasm-component-ld, r=Mark-Simulacrum
Update wasm-component-ld

Same as rust-lang/rust#147495, just keeping it up-to-date.
2026-01-06 16:19:43 +01:00
Jonathan Brouwer e9fdf11c66 Convert clippy to use the new parsed representation 2026-01-06 09:04:56 +01:00
Jonathan Brouwer 4429814412 Convert librustdoc to use the new parsed representation 2026-01-06 09:04:46 +01:00
Jieyou Xu dd948f96f3 Thread --jobs from bootstrap -> compiletest -> run-make-support 2026-01-06 14:51:51 +08:00
bors da476f1942 Auto merge of #150640 - AprilNEA:mgca-merge-associated-const-equality, r=BoxyUwU
Merge `associated_const_equality` feature gate into MGCA

Tracking Issues: rust-lang/rust#132980 rust-lang/rust#92827

Merge `associated_const_equality`(ACE) feature gate into `min_generic_const_args`(MGCA).

- Replaces `features().associated_const_equality()` checks with `features().min_generic_const_args()`
- Updates the parser to gate associated const equality under `min_generic_const_args`
- Moves `associated_const_equality` to the removed features list
- Removes the `associated_const_equality` method from the `Features` trait
- Updates all affected tests and tools (rust-analyzer, clippy)

Closes rust-lang/rust#150617

r? `@BoxyUwU`
2026-01-06 01:36:53 +00:00
bors 7c04f5d216 Auto merge of #150702 - lnicola:sync-from-ra, r=lnicola
`rust-analyzer` subtree update

Subtree update of `rust-analyzer` to https://github.com/rust-lang/rust-analyzer/commit/6a1246b69ca761480b9278df019f717b549cface.

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

r? `@ghost`
2026-01-05 22:21:47 +00:00
Alex Crichton ba13bb44ed Update wasm-component-ld
Same as 147495, just keeping it up-to-date.
2026-01-05 08:07:07 -08:00
Jakub Beránek b198dffd98 Rollup merge of #149790 - JonathanBrouwer:attr-path-perf, r=jdonszelmann
Remove `Span` from segments of `AttrPath`

r? jdonszelmann
2026-01-05 15:54:12 +01:00
Jakub Beránek 04707f4f86 Only keep old cg_gcc if the stamp file actually exists 2026-01-05 10:52:27 +01:00
Jakub Beránek 9b789f0bd0 Dist cg_gcc on CI 2026-01-05 10:52:27 +01:00
Jakub Beránek 2b53ecaff4 Add a dist step for the GCC codegen backend 2026-01-05 10:52:27 +01:00
Jakub Beránek 75eaa45268 Allow building cg_gcc without building libgccjit 2026-01-05 10:52:27 +01:00
Ralf Jung 38ab51943c ./x check miri: enable check_only feature 2026-01-05 09:28:05 +01:00
bors 0d162b25ed Auto merge of #150535 - Kobzol:rename-ci-gcc, r=jieyouxu
Rename the gcc component to gcc-dev

In preparation for https://rust-lang.zulipchat.com/#narrow/channel/242791-t-infra/topic/Safe.20rustup.20distribution.20of.20rustc_codegen_gcc/with/565801325.

try-job: dist-x86_64-linux
2026-01-05 05:02:20 +00:00
AprilNEA 4421270516 Merge associated_const_equality feature gate into MGCA
This removes `associated_const_equality` as a separate feature gate and makes it part of `min_generic_const_args` (mgca).

Key changes:
  - Remove `associated_const_equality` from unstable features, add to removed
  - Update all test files to use `min_generic_const_args` instead
  - Preserve the original "associated const equality is incomplete" error message by specially handling `sym::associated_const_equality` spans in `feature_gate.rs`
  - Rename FIXME(associated_const_equality) to FIXME(mgca)
2026-01-05 12:31:42 +08:00
bors 6885bdf1af Auto merge of #150603 - Kivooeo:tuple-struct, r=BoxyUwU
MGCA: Support for tuple constructors

r? BoxyUwU

part of https://github.com/rust-lang/rust/issues/132980

fixes rust-lang/rust#136379
fixes rust-lang/rust#138132

i tried to keep implementation very minimal and it's very similar to how structs was implemented with small adjustments

this does not make const constructor like None works, just something like Some(n)

todo:
* ~~tests~~
* write a better description (not sure if needed)
* add more comments and FIXMEs from structs code
2026-01-05 01:45:18 +00:00
Chayim Refael Friedman 8ddb153cd1 Merge pull request #21403 from ShoyuVanilla/missing-assoc-specialize
fix: Suppress false positive missing assoc item diag on specialization
2026-01-04 18:36:03 +00:00