about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2025-05-26Update mdbook to 0.4.51Eric Huss-3/+3
This fixes a silly regression introduced in 0.4.50 that broke the search hotkey (https://github.com/rust-lang/rust/pull/141457). Changelog: https://github.com/rust-lang/mdBook/blob/master/CHANGELOG.md#mdbook-0451
2025-05-26bootstrap: translate Windows paths in a way that works for both Cygwin and MSYS2Jeremy Drake-1/+3
Cygwin defaults to rooting Windows paths in /cygdrive/X, while MSYS2 configures them to be /X. Regardless of configuration, drives are always accessible as /proc/cygdrive/X, so use that.
2025-05-27Rollup merge of #141526 - jyn514:env-vars, r=petrochenkov许杰友 Jieyou Xu (Joe)-2/+18
add a dedicated section for compiler environment variables in the unstable book rendered: ![image](https://github.com/user-attachments/assets/dcb6e2a3-2e2d-43bb-8f45-79715705bf45) fixes https://github.com/rust-lang/rust/issues/141523
2025-05-27Rollup merge of #141513 - nia-e:allocbytes-extend, r=RalfJung许杰友 Jieyou Xu (Joe)-7/+13
interpret: add allocation parameters to `AllocBytes` Necessary for a better implementation of [rust-lang/miri#4343](https://github.com/rust-lang/miri/pull/4343). Also included here is the code from that PR, adapted to this new interface for the sake of example and so that CI can run on them; the Miri changes can be reverted and merged separately, though. r? `@RalfJung`
2025-05-27Rollup merge of #141433 - compiler-errors:unsafe-binder-captures, r=oli-obk许杰友 Jieyou Xu (Joe)-0/+2
Properly analyze captures from unsafe binders We need to represent the unsafe binder unwrap as an adjustment in HIR. Pretty straightforward b/c we already represent it as a projection elem in MIR. Fixes #141418 Fixes #141417 r? oli-obk
2025-05-27Rollup merge of #140898 - onur-ozkan:miri-run, r=Kobzol许杰友 Jieyou Xu (Joe)-3/+13
minor improvements on running miri It should be clear from the commit messages when reviewing them one by one.
2025-05-26Merge pull request #2407 from smanilov/patch-14Tshepang Mbambo-2/+5
Add time reference and tracking info for trait system refactor
2025-05-26rustdoc: refactor Tooltip rendering logicbinarycat-43/+21
2025-05-26rustc book: fix erratic sentence by making it more simpleTshepang Mbambo-2/+2
2025-05-26ci: fix llvm test coverageMarcoIeni-2/+2
2025-05-26ci: move dist-x86_64-linux job to codebuildMarcoIeni-2/+2
2025-05-26Add time reference and tracking info for trait system refactorStan Manilov-2/+5
2025-05-26Link normalization chapterStan Manilov-1/+2
2025-05-26Flesh out sections about crashes tests and update mentions of glacierLeón Orell Valerian Liehr-11/+26
2025-05-26Auto merge of #141406 - RalfJung:less-force-allocate, r=oli-obkbors-53/+54
interpret: do not force_allocate all return places A while ago I cleaned up our `PlaceTy` a little, but as a side-effect of that, return places had to always be force-allocated. That turns out to cause quite a few extra allocations, and for a project we are doing where we marry Miri with a model checker, that means a lot of extra work -- local variables are just so much easier to reason about than allocations. So, this PR brings back the ability to have the return place be just a local of the caller. To make this work cleanly I had to rework stack pop handling a bit, which also changes the output of Miri in some cases as the span for errors occurring during a particular phase of stack pop changed. With these changes, a no-std binary with a function of functions that just take and return scalar types and that uses no pointers now does not move *any* local variables into memory. :) r? `@oli-obk`
2025-05-26fix: formated to clippyvremyavnikuda-1/+1
2025-05-26remove eq_unspanned from TokenStreamyukang-1/+3
2025-05-26fix: the lines are formatted according to clippyvremyavnikuda-1/+1
2025-05-26fix: the lines are formatted according to clippyvremyavnikuda-2/+2
2025-05-26docs: add documentation for find_all_refs constructor search (#10725)vremyavnikuda-3/+158
2025-05-26Merge pull request #19792 from A4-Tacks/fix-generate-mut-trait-impl-indentLukas Wirth-3/+91
fix: ide-assists, generate mut trait impl indent
2025-05-26Merge pull request #19819 from Veykril/push-utvzwvwuuvlmLukas Wirth-3/+3
Change import prefix default to be by crate
2025-05-26Merge pull request #19785 from A4-Tacks/fix-generate-new-indentLukas Wirth-1/+136
fixes: ide-assists, generate_new indent loses
2025-05-26Merge pull request #19851 from ChayimFriedman2/normalize-exhaustivenessLukas Wirth-25/+81
fix: Normalize when checking for uninhabited types for pattern exhaustiveness checking
2025-05-26Avoid some unnecessary cloning.Nicholas Nethercote-12/+11
2025-05-26Merge pull request #19864 from ChayimFriedman2/is-in-macroLukas Wirth-85/+125
fix: Properly implement `might_be_inside_macro_call()` using semantic information instead of syntactical hacks
2025-05-26Make `{Type,Path}::generics` return iterators.Nicholas Nethercote-18/+11
Instead of a `Vec`, to avoid some allocations.
2025-05-26Simplify `make_href`.Nicholas Nethercote-5/+5
It never fails, so it doesn't need to return `Result`. And the `ItemType` in the result is just a copy of the one passed in via the `shortty` arg, so it can also be removed.
2025-05-26dist: make sure llvm-project submodule is presentonur-ozkan-0/+8
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-05-26Rename some methods.Nicholas Nethercote-25/+36
Most of the methods returning `impl Display` have `print` in their name. This commit renames a few that didn't follow that convention.
2025-05-26Rollup merge of #141502 - marcoieni:x86_64-gnu-tools-codebuild, r=KobzolJacob Pratt-1/+1
ci: move PR job x86_64-gnu-tools to codebuild
2025-05-26Rollup merge of #140863 - GuillaumeGomez:cleanup-tyalias-render, r=lolbinarycatJacob Pratt-213/+333
[rustdoc] Unify type aliases rendering with other ADT Fixes #140739. Better reviewed one commit at a time. Just one thing I'm wondering: should we also render non-`repr` attributes? If so, I wonder if we shouldn't simply change `clean::TypeAlias` to contain the other ADT directly (`Struct`, `Enum` and `Union`) and remove the `TypeAlias::generics` field. Can be done in a follow-up too. cc ``@camelid`` r? ``@notriddle``
2025-05-26Refactor the end of `generate_item_def_id_path`.Nicholas Nethercote-6/+6
To avoids the early return and duplication of `Ok((url_parts, shortty, fqp))`.
2025-05-26Simplify `make_href`.Nicholas Nethercote-3/+4
Currently it is passed an `fqp` slice which it calls `to_vec` on and returns. This is a bit odd. It's better to let the call site clone if necessary. (One call site does, one does not).
2025-05-26Avoid `Box` in `href_relative_parts`.Nicholas Nethercote-25/+20
This reverts part of #91948, going back to returning a `UrlPartsBuilder`. It makes the code simpler, and also avoids some allocations.
2025-05-26extend allocbytes with associated typeNia Espera-7/+13
2025-05-25Update tidy exceptionsbjorn3-0/+2
2025-05-25Properly implement `might_be_inside_macro_call()` using semantic information ↵Chayim Refael Friedman-85/+125
instead of syntactical hacks And rename it to `is_inside_macro_call()` accordingly.
2025-05-25Fix IDE resolution of item macrosChayim Refael Friedman-29/+74
It wasn't inside the source, because there was no source map.
2025-05-25Update to new APIGuillaume Gomez-2/+3
2025-05-25Rollup merge of #141530 - ranger-ross:unstable-feature-doc-comments, r=UrgauGuillaume Gomez-6/+38
Added unstable feature doc comments to unstable book This PR adds doc comments for unstables features in [compiler/rustc_feature/src/unstable.rs](https://github.com/rust-lang/rust/blob/d3a2440384b54664dddd56e0081ca094c444e869/compiler/rustc_feature/src/unstable.rs#L190-L191) to the unstable book feature pages. Fixes rust-lang/rust#141528 Example features rendered ![image](https://github.com/user-attachments/assets/2b65f534-26f8-441f-ba29-65554c9154b7) ![image](https://github.com/user-attachments/assets/6077491b-ddaf-447e-9519-0bc110c7a893) r? `@jyn514`
2025-05-25Rollup merge of #141508 - xtexx:gh-104200, r=onur-ozkanGuillaume Gomez-1/+18
bootstrap: clippy: set TESTNAME based on given paths This addresses #104200 by setting the TESTNAME environment variable automatically based on the paths from run configs, marking a selected set of UI tests to be run. Note that this does not filter out other unit tests using #[test].
2025-05-25Improve codeGuillaume Gomez-49/+50
2025-05-25Tweak attribute rendering depending on wether or not it is a type aliasGuillaume Gomez-79/+172
2025-05-25Rename the `document_*` argument/field into `is_type_alias`Guillaume Gomez-12/+12
2025-05-25Split `Item::attributes` method into threeGuillaume Gomez-70/+81
2025-05-25Unify rendering of type aliases without ADT itemsGuillaume Gomez-137/+151
2025-05-25Rename `clean::Enum::variants` method into `non_stripped_variants`Guillaume Gomez-3/+3
2025-05-25add "Compiler environment variables" section to the unstable bookjyn-2/+10
2025-05-25feat(unstable-book): Added unstable feature doc comments as feature descriptionsRoss Sullivan-6/+38