Commit graph

169796 commits

Author SHA1 Message Date
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]
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
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
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
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 6a1246b69c.

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
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
Shoyu Vanilla
7dbe12ec72 fix: Suppress false positive missing assoc item diag on specialization 2026-01-05 02:16:12 +09:00
bors
e29fcf45e4 Auto merge of #150674 - matthiaskrgr:rollup-tnkgbcx, r=matthiaskrgr
Rollup of 5 pull requests

Successful merges:

 - rust-lang/rust#150554 (test: add regression cases for valtree hashing ICE)
 - rust-lang/rust#150597 (make specialization of `Vec::extend` and `VecDeque::extend_front` work for vec::IntoIter with any `Allocator`, not just `Global`)
 - rust-lang/rust#150619 (alloc: Move Cow impl to existing ones)
 - rust-lang/rust#150660 (THIR pattern building: Pass HIR nodes instead of loose types/spans)
 - rust-lang/rust#150671 (miri subtree update)

r? `@ghost`
`@rustbot` modify labels: rollup
2026-01-04 16:58:33 +00:00
Shoyu Vanilla (Flint)
b1ed7e6184
Merge pull request #21369 from A4-Tacks/migrate-move-guard
Migrate `move_arm_cond_to_match_guard` assist to use `SyntaxEditor`
2026-01-04 15:41:17 +00:00
Kivooeo
05afcb6d26 init impl 2026-01-04 15:12:39 +00:00
Lukas Wirth
50b78f1bb4 Add a README.md to proc-macro-srv-cli 2026-01-04 12:09:44 +01:00
Lukas Wirth
d4b9ea2e86 internal: Clean up proc-macro-srv callback trait 2026-01-04 11:46:34 +01:00
Ralf Jung
0557c759a9 add check_only feature for faster check builds 2026-01-04 11:37:29 +01:00
Stuart Cook
336c6658e4
Rollup merge of #150201 - Enselic:debugger-tests-revisions-2, r=Zalathar
compiletest: Support revisions in debuginfo (read: debugger) tests

And start using revisions in `tests/debuginfo/macro-stepping.rs` to prevent regressing both with and without `SingleUseConsts` MIR pass.

I recommend commit-by-commit review.

## ~TODO~

- [x] Verify this more carefully.
- [x] Possibly do some preparatory PRs before taking this PR out of draft.
    - [x] Rebase on https://github.com/rust-lang/rust/pull/150205 once merged so we don't have to add another "`+ 1`".

## CC

CC ``@Zalathar`` since you might have opinions about that I expose a helper function to reduce duplication

CC ``@saethlin`` since this is what we will use for `tests/debuginfo/basic-stepping.rs` in https://github.com/rust-lang/rust/pull/147426 (in the same way I use it in `tests/debuginfo/macro-stepping.rs` here)
2026-01-04 21:37:02 +11: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
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
bit-aloo
f3b06a10f2
remove serde from span 2026-01-03 20:13:41 +05:30
bit-aloo
ce19860f80
remove span related API from proc-macro-srv/cli/api and remove span from procmacrosrvcli 2026-01-03 20:10:00 +05:30
bit-aloo
4f5502e8fb
Add span to callbacks and correct the source_text implementation 2026-01-03 19:18:36 +05:30
bit-aloo
be566f4e6b
refactor subreq/resp variants to carry span 2026-01-03 19:15:42 +05:30
bit-aloo
3941fed501
add span to proc-macro-srv-cliy 2026-01-03 19:13:06 +05:30
usamoi
5e4168b162 partially revert 8d597aa365 2026-01-03 21:36:43 +08:00