about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
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
2025-05-25fmtThe Miri Cronjob Bot-1/+3
2025-05-25Merge from rustcThe Miri Cronjob Bot-242/+201
2025-05-25Preparing for merge from rustcThe Miri Cronjob Bot-1/+1
2025-05-25Rollup merge of #139831 - lolbinarycat:rustdoc-mobile-sidebar, r=GuillaumeGomezJacob Pratt-1/+4
rustdoc: on mobile, make the sidebar full width and linewrap this is because the mobile sidebar cannot be resized, unlike on desktop.
2025-05-25bootstrap: clippy: set TESTNAME based on given pathsxtex-1/+18
This addresses issue 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-24document existing setupjyn-0/+8
2025-05-24Rollup merge of #141511 - Noratrieb:codegen-fn-attrs, r=compiler-errorsGuillaume Gomez-2/+2
Cleanup CodegenFnAttrFlags - Rename `USED` to `USED_COMPILER` to better reflect its behavior. - Reorder some items to group the used and allocator flags together - Renumber them without gaps
2025-05-24Rollup merge of #141505 - RalfJung:catch_unwind, r=NoratriebGuillaume Gomez-23/+23
rename internal panicking::try to catch_unwind The public function is called `catch_unwind`, the intrinsic at some point got renamed to `catch_unwind` -- there's no reason to have the internal implementation of this still be called `try`, so let's rename it to match the rest.
2025-05-24Rollup merge of #141487 - GuillaumeGomez:update-askama, r=notriddleGuillaume Gomez-10/+10
Update askama to `0.14.0` [Askama 0.14.0 release notes](https://github.com/askama-rs/askama/releases/tag/v0.14.0) Just one change needed for a filter in rustdoc. r? ```@notriddle```
2025-05-24rustdoc: use descriptive tooltip if doctest is conditionally ignoredbinarycat-10/+41
fixes https://github.com/rust-lang/rust/issues/141092
2025-05-24Cleanup CodegenFnAttrFlagsNoratrieb-2/+2
- Rename `USED` to `USED_COMPILER` to better reflect its behavior. - Reorder some items to group the used and allocator flags together - Renumber them without gaps