about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2025-09-01Revert "dates: refresh infra/tooling date annotations to Aug 2025"Tshepang Mbambo-12/+12
2025-09-01Merge pull request #2565 from rust-lang/revert-2558-date-sweep-2025-08-queriesTshepang Mbambo-3/+3
Revert "dates: refresh query-system date annotations to 2025-08 (preserve style)"
2025-09-01Revert "dates: refresh query-system date annotations to 2025-08 (preserve ↵Tshepang Mbambo-3/+3
style)"
2025-09-01Merge pull request #2564 from ↵Tshepang Mbambo-9/+9
rust-lang/revert-2559-date-sweep-2025-08-types-traits Revert "dates: refresh type system & traits date annotations to Aug/2025"
2025-09-01Revert "dates: refresh type system & traits date annotations to Aug/2025"Tshepang Mbambo-9/+9
2025-08-30Merge pull request #2536 from apiraino/no-typofixes-plsapiraino-0/+3
2025-08-29Merge pull request #2560 from ehuss/update-mdbookTshepang Mbambo-1/+1
Update mdbook
2025-08-29Update mdbookEric Huss-1/+1
This updates mdbook to 0.4.52, which includes a number of fixes and enhancements since 0.4.48. Changelog: https://github.com/rust-lang/mdBook/blob/master/CHANGELOG.md#mdbook-0452
2025-08-28Merge pull request #2553 from ali90h/fix-stab-guide-gating-v2jyn-1/+1
stabilization_guide: fix macro name and syntax in gating example
2025-08-28Merge pull request #2556 from ali90h/date-sweep-2025-08-diag-testsjyn-9/+9
dates: refresh diagnostics/ and tests/ annotated dates to August 2025
2025-08-28Merge pull request #2559 from ali90h/date-sweep-2025-08-types-traitsjyn-9/+9
dates: refresh type system & traits date annotations to Aug/2025
2025-08-28Merge pull request #2558 from ali90h/date-sweep-2025-08-queriesjyn-3/+3
dates: refresh query-system date annotations to 2025-08 (preserve style)
2025-08-28Merge pull request #2557 from ali90h/date-sweep-2025-08-infrajyn-12/+12
dates: refresh infra/tooling date annotations to Aug 2025
2025-08-28dates(types,traits): refresh date-check annotations for Aug/2025-08; ↵Ali Nazzal-9/+9
preserve local style
2025-08-28dates(queries): refresh date-check annotations to 2025-08; preserve local styleAli Nazzal-3/+3
2025-08-28dates(infra): refresh date-check annotations for Aug 2025; preserve local styleAli Nazzal-12/+12
2025-08-28dates(diagnostics,tests): refresh annotated dates to Aug 2025; preserve ↵Ali Nazzal-9/+9
local style
2025-08-27Mention our policy on typofixes for internal docsapiraino-0/+3
2025-08-26Merge pull request #2554 from ali90h/clarify-keep-branch-up-to-datejyn-5/+3
contributing: clarify when to update a branch vs avoid during review
2025-08-26contributing: restore tests/intro.md link; avoid 'this repo' wordingAli Nazzal-2/+2
2025-08-26contributing: clarify when to update a branch vs avoid during reviewAli Nazzal-6/+4
2025-08-26Merge pull request #2555 from jieyouxu/rm-rotation许杰友 Jieyou Xu (Joe)-1/+0
2025-08-26Remove myself from adhoc_groupJieyou Xu-1/+0
2025-08-26stabilization_guide: fix macro name and syntax in gating exampleAli Nazzal-1/+1
2025-08-25Merge pull request #2551 from rust-lang/rustc-pullTshepang Mbambo-18742/+34537
Rustc pull update
2025-08-25Merge ref 'a1dbb443527b' from rust-lang/rustThe rustc-josh-sync Cronjob Bot-18741/+34536
Pull recent changes from https://github.com/rust-lang/rust via Josh. Upstream ref: a1dbb443527bd126452875eb5d5860c1d001d761 Filtered ref: c2339048a82c55166f9b9ee83fd618be252a6e23 This merge was created using https://github.com/rust-lang/josh-sync.
2025-08-25Prepare for merging from rust-lang/rustThe rustc-josh-sync Cronjob Bot-1/+1
This updates the rust-version file to a1dbb443527bd126452875eb5d5860c1d001d761.
2025-08-24Auto merge of #145262 - compiler-errors:prefer-only-param, r=lcnrbors-0/+223
Make sure to treat only param where clauses as inherent See the description in the test file. This PR fixes a bug introduced by rust-lang/rust#141333, where we considered non-`Param` where clauses to be "inherent" for the purpose of method probing, which leads to both changes in method ambiguity (see test) and also import usage linting (and thus fixes https://github.com/rust-lang/rust/issues/145185). r? `@lcnr`
2025-08-24Make sure to treat only param where clauses as inherentMichael Goulet-0/+223
2025-08-24Auto merge of #137229 - GuillaumeGomez:expand-macro, r=lolbinarycatbors-93/+795
Add support for macro expansion in rustdoc source code pages This is what it looks like: ![Screenshot From 2025-02-18 18-08-51](https://github.com/user-attachments/assets/ce2b3806-6218-47df-94bf-e9e9ed40cd41) ![image](https://github.com/user-attachments/assets/891042db-8632-4dba-9343-e28570c058fe) You can test it [here](https://rustdoc.crud.net/imperio/macro-expansion/src/lib/lib.rs.html). In this case, I also enabled the `--generate-link-to-definition` to show that both options work well together. Note: <del>There is a bug currently in firefox where the line numbers are not displayed correctly if they're inside the "macro expansion" span: https://bugzilla.mozilla.org/show_bug.cgi?id=1949948<del> Found a workaround around this bug. r? `@notriddle`
2025-08-24Auto merge of #145812 - karolzwolak:attrs-in-fields-and-variants-section, ↵bors-4/+26
r=GuillaumeGomez rustdoc: render attributes in Field and Variants sections Follow up to rust-lang/rust#145782. Render attributes in Field and Variants sections. Associated constants and methods are already rendered with attributes in their sections, so I figured out fields and variants should too. (no change here) <img width="378" height="265" alt="image" src="https://github.com/user-attachments/assets/b4f45c42-0146-486e-8881-138d2a7ad1c4" /> r? `@GuillaumeGomez` --- Before (left) / after (right): <img width="396" height="519" alt="image" src="https://github.com/user-attachments/assets/18288e13-09e7-448c-ba98-2023fa6df597" /> <img width="382" height="597" alt="image" src="https://github.com/user-attachments/assets/e624dc84-d169-41cc-bb89-7a1c2b2bb3e3" /> <img width="371" height="313" alt="image" src="https://github.com/user-attachments/assets/29833645-0b93-4900-80a8-c5a1e0b541b4" /> <img width="371" height="331" alt="image" src="https://github.com/user-attachments/assets/d5ce4b9e-f7f1-4f36-8ac0-08b0b5077e48" /> <img width="362" height="309" alt="image" src="https://github.com/user-attachments/assets/0436a51d-29a5-4403-a27c-7697524f807a" /> <img width="357" height="332" alt="image" src="https://github.com/user-attachments/assets/9a759fc5-30e7-4bbb-a88a-a3e3d1ed02aa" />
2025-08-24Merge pull request #2550 from WaffleLapkin/try-borswaffle-37/+28
Suggest using `@bors try jobs=...`
2025-08-24Auto merge of #145384 - ywxt:parallel-tests, r=jieyouxubors-19/+722
Add more tests for the parallel rustc At the moment, the parallel frontend test cases are severely lacking. Althought some reported issues have been resolved, they haven't been added into the tests. This PR arranges the resolved ICE issues and adds tests for them. Whether it is worthwhile to add a separate test suite for the paralel frontend still requires futher discussion. But we are trying coveraging issues being resolved through capability of the existing UI test suite. Discussion: [Zulip](https://rust-lang.zulipchat.com/#narrow/channel/233931-t-compiler.2Fmajor-changes/topic/Proposal.20for.20a.20dedicated.20test.20suite.20for.20t.E2.80.A6.20compiler-team.23906) Related issues: - rust-lang/rust#120760 - rust-lang/rust#124423 fixed by rust-lang/rust#140358 - rust-lang/rust#127971 fxied by rust-lang/rust#140358 - rust-lang/rust#120601 fixed by rust-lang/rust#127311 cc `@jieyouxu`
2025-08-24rustdoc: render attributes in Field and Variants sectionsKarol Zwolak-4/+26
2025-08-24Auto merge of #137729 - jdonszelmann:fix-137687, r=fmeasebors-228/+440
Port `#[crate_name]` to the new attribute parsing infrastructure r? `@fmease` Closes rust-lang/rust#137687
2025-08-24fix ICE on stable related to attrs on macrosJana Dönszelmann-30/+58
2025-08-24Port crate name to the new attribute systemJana Dönszelmann-156/+248
2025-08-24Support lints in early attribute parsingJana Dönszelmann-45/+93
2025-08-24Allow errors to be emitted as fatal during attribute parsingJana Dönszelmann-22/+66
2025-08-24Auto merge of #145805 - jhpratt:rollup-h1bm4z7, r=jhprattbors-246/+688
Rollup of 5 pull requests Successful merges: - rust-lang/rust#144531 (Add lint against integer to pointer transmutes) - rust-lang/rust#145307 (Fix `LazyLock` poison panic message) - rust-lang/rust#145554 (rustc-dev-guide subtree update) - rust-lang/rust#145798 (Use unnamed lifetime spans as primary spans for `MISMATCHED_LIFETIME_SYNTAXES`) - rust-lang/rust#145799 (std/src/lib.rs: mention "search button" instead of "search bar") r? `@ghost` `@rustbot` modify labels: rollup
2025-08-23Rollup merge of #145799 - ada4a:patch-3, r=GuillaumeGomezJacob Pratt-1/+1
std/src/lib.rs: mention "search button" instead of "search bar" r? ```@GuillaumeGomez```
2025-08-23Rollup merge of #145798 - compiler-errors:unnamed-lt-primary, r=lqdJacob Pratt-125/+122
Use unnamed lifetime spans as primary spans for `MISMATCHED_LIFETIME_SYNTAXES` Fixes https://github.com/rust-lang/rust/issues/145772 This PR changes the primary span(s) of the `MISMATCHED_LIFETIME_SYNTAXES` to point to the *unnamed* lifetime spans in both the inputs and *outputs* of the function signature. As reported in rust-lang/rust#145772, this should make it so that IDEs highlight the spans of the actionable part of this lint, rather than just the (possibly named) input spans like they do today. This could be tweaked further perhaps, for example for `fn foo(_: T<'_>) -> T`, we don't need to highlight the elided lifetime if the actionable part is to change only the return type to `T<'_>`, but I think it's improvement on what's here today, so I think that should be follow-up since I think the logic might get a bit hairy. cc ```@shepmaster```
2025-08-23Rollup merge of #145554 - tshepang:rdg-sync, r=BoxyUwUJacob Pratt-18/+16
rustc-dev-guide subtree update Subtree update of `rustc-dev-guide` to https://github.com/rust-lang/rustc-dev-guide/commit/c22150808bc96df8c8666d2f4b89cbab10e1ce0d. Created using https://github.com/rust-lang/josh-sync. r? ```@ghost```
2025-08-23Rollup merge of #145307 - connortsui20:lazylock-poison-msg, r=AmanieuJacob Pratt-34/+59
Fix `LazyLock` poison panic message Fixes the issue raised in https://github.com/rust-lang/rust/pull/144872#issuecomment-3151100248 r? ```@Amanieu```
2025-08-23Rollup merge of #144531 - Urgau:int_to_ptr_transmutes, r=jackh726Jacob Pratt-68/+490
Add lint against integer to pointer transmutes # `integer_to_ptr_transmutes` *warn-by-default* The `integer_to_ptr_transmutes` lint detects integer to pointer transmutes where the resulting pointers are undefined behavior to dereference. ### Example ```rust fn foo(a: usize) -> *const u8 { unsafe { std::mem::transmute::<usize, *const u8>(a) } } ``` ``` warning: transmuting an integer to a pointer creates a pointer without provenance --> a.rs:1:9 | 158 | std::mem::transmute::<usize, *const u8>(a) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is dangerous because dereferencing the resulting pointer is undefined behavior = note: exposed provenance semantics can be used to create a pointer based on some previously exposed provenance = help: if you truly mean to create a pointer without provenance, use `std::ptr::without_provenance_mut` = help: for more information about transmute, see <https://doc.rust-lang.org/std/mem/fn.transmute.html#transmutation-between-pointers-and-integers> = help: for more information about exposed provenance, see <https://doc.rust-lang.org/std/ptr/index.html#exposed-provenance> = note: `#[warn(integer_to_ptr_transmutes)]` on by default help: use `std::ptr::with_exposed_provenance` instead to use a previously exposed provenance | 158 - std::mem::transmute::<usize, *const u8>(a) 158 + std::ptr::with_exposed_provenance::<u8>(a) | ``` ### Explanation Any attempt to use the resulting pointers are undefined behavior as the resulting pointers won't have any provenance. Alternatively, `std::ptr::with_exposed_provenance` should be used, as they do not carry the provenance requirement or if the wanting to create pointers without provenance `std::ptr::without_provenance_mut` should be used. See [std::mem::transmute] in the reference for more details. [std::mem::transmute]: https://doc.rust-lang.org/std/mem/fn.transmute.html -------- People are getting tripped up on this, see https://github.com/rust-lang/rust/issues/128409 and https://github.com/rust-lang/rust/issues/141220. There are >90 cases like these on [GitHub search](https://github.com/search?q=lang%3Arust+%2Ftransmute%3A%3A%3Cu%5B0-9%5D*.*%2C+%5C*const%2F&type=code). Fixes https://github.com/rust-lang/rust-clippy/issues/13140 Fixes https://github.com/rust-lang/rust/issues/141220 Fixes https://github.com/rust-lang/rust/issues/145523 `@rustbot` labels +I-lang-nominated +T-lang cc `@traviscross` r? compiler
2025-08-24Merge pull request #2548 from joshtriplett/macro-parser许杰友 Jieyou Xu (Joe)-35/+21
2025-08-23Auto merge of #145796 - samueltardieu:rollup-linfi86, r=samueltardieubors-439/+723
Rollup of 14 pull requests Successful merges: - rust-lang/rust#143898 (opt-dist: rebuild rustc when doing static LLVM builds) - rust-lang/rust#144452 (std/sys/fd: Relax `READ_LIMIT` on Darwin) - rust-lang/rust#145234 (match exhaustiveness diagnostics: show a trailing comma on singleton tuple consructors in witness patterns (and clean up a little)) - rust-lang/rust#145515 (Optimize `char::encode_utf8`) - rust-lang/rust#145540 (interpret/allocation: get_range on ProvenanceMap) - rust-lang/rust#145670 (port `sanitize` attribute to the new parsing infrastructure) - rust-lang/rust#145713 (next-solver: fix `feature(const_trait_impl)` bootstrap) - rust-lang/rust#145729 (Remove two duplicated crates) - rust-lang/rust#145744 (miri: also detect aliasing of in-place argument and return place) - rust-lang/rust#145774 (Remove default opts from config) - rust-lang/rust#145781 (Remove profile section from Clippy) - rust-lang/rust#145782 (rustdoc: make attributes render consistently) - rust-lang/rust#145787 (citool: cleanup `mismatched_lifetime_syntaxes` warnings) - rust-lang/rust#145791 (Fix ICE when validating transmuting ZST to inhabited enum) r? `@ghost` `@rustbot` modify labels: rollup
2025-08-23Use unnamed lifetime spans as primary spans for MISMATCHED_LIFETIME_SYNTAXESMichael Goulet-125/+122
2025-08-24Prefer verbose suggestions for `integer_to_ptr_transmutes` lintUrgau-38/+76
2025-08-24Adjust clippy lints for rustc `integer_to_ptr_transmutes` lintUrgau-67/+32