about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2025-01-30Rework rustc_dump_vtableMichael Goulet-1/+1
2025-01-30ci: refactor how directories are removed in free-disk-space diskMarcoIeni-30/+64
2025-01-30Fix a typo in profile-guided-optimization.mdZeeshan Ali Khan-1/+1
It's either "profile-guided" or "profiled-guided" and I think it'sw the former. :)
2025-01-30Rollup merge of #136199 - purplesyringa:emscripten-tests, r=jieyouxuMatthias Krüger-0/+1
Fix a couple Emscripten tests This fixes a couple Emscripten tests where the correct fix is more or less obvious. A couple UI tests are still broken with this PR: - `tests/ui/abi/numbers-arithmetic/return-float.rs` (#136197) - `tests/ui/no_std/no-std-unwind-binary.rs` (haven't debugged yet) - `tests/ui/test-attrs/test-passed.rs` (haven't debugged this either) `````@rustbot````` label +T-compiler +O-emscripten
2025-01-30Rollup merge of #135739 - wesleywiser:dwarf_version_handling, r=lqdMatthias Krüger-0/+4
Clean up uses of the unstable `dwarf_version` option - Consolidate calculation of the effective value. - Check the target `DebuginfoKind` instead of using `is_like_msvc`. - Add the tracking issue to the unstable book page for this feature. cc #103057
2025-01-30Rollup merge of #135434 - dianne:match-2024-for-edition-2024, r=NadrierilMatthias Krüger-0/+38
Match Ergonomics 2024: update edition 2024 behavior of feature gates This updates the edition 2024 behavior of the feature gates `ref_pat_eat_one_layer_2024_structural` and `ref_pat_eat_one_layer_2024` to correspond to the left and right typing rules compared [here](https://nadrieril.github.io/typing-rust-patterns/?compare=true&opts2=AQEBAAABAQABAgIAAQEBAAEBAAABAAA%3D&opts1=AQEBAgEBAQEBAgIAAAAAAAAAAAAAAAA%3D&mode=rules&do_cmp=true&ty_d=3&style=SequentBindingMode), respectively. I'll implement the proposed new behavior for editions ≤ 2021 in another PR. The tests are split up a bit awkwardly for practical reasons, but I've added new tests from 3 places: - I got tests for where the typing rules differ from the "Compare" tab of the page linked above. These had to be split up based on where the errors are emitted and how rustfixable they are, so they've ended up in different files to keep tidy. Within each file, though, the order of the tests matches the order the typing differences appear in that comparison (as of when this was written). - I used [this other comparison](https://nadrieril.github.io/typing-rust-patterns/?q=%5B%26mut+%26%28mut+x%29%5D%3A+%26mut+%5B%26CT%5D&compare=true&opts2=AQEBAgABAQEBAgIAAQEBAAEBAAABAAA%3D&opts1=AQEBAgEBAQEBAgIAAAAAAAAAAAAAAAA%3D&mode=compare&do_cmp=true&ty_d=3&style=SequentBindingMode) to test the `Deref(EatInner, FallbackToOuter)` rule of the left/"structural"/eat-inner ruleset. These are all in `well-typed-edition-2024.rs`. - I added some select tests for cases where the new typing rules differ from current stable Rust. I had to be pickier about what I included here, but I tried to make sure each typing rule got some coverage. That said, my approach for these tests was a bit ad-hoc, so I may have missed something. Relevant tracking issue: #123076 r? ````@ghost````
2025-01-30Rollup merge of #133636 - GuillaumeGomez:sans-serif, r=rustdocMatthias Krüger-5/+76
[rustdoc] Add sans-serif font setting Fixes https://github.com/rust-lang/rust/issues/52449. This PR adds a new setting introducing the possibility to switch to a sans-serif font (`Fira Sans`) for the text. Can be tested [here](https://rustdoc.crud.net/imperio/sans-serif/std/index.html). cc ```@rust-lang/rustdoc-frontend``` r? ```@notriddle```
2025-01-30Auto merge of #136038 - compiler-errors:outlives, r=lcnrbors-2/+2
Simplify and consolidate the way we handle construct `OutlivesEnvironment` for lexical region resolution This is best reviewed commit-by-commit. I tried to consolidate the API for lexical region resolution *first*, then change the API when it was finally behind a single surface. r? lcnr or reassign
2025-01-30feat: modify developing with nix sectionchiichen-19/+12
2025-01-30fix clippy lint manual_repeat_nRalf Jung-3/+1
2025-01-30chore: discard padding white spacechiichen-7/+7
2025-01-30Merge pull request #19072 from cessen/concat_uniquelyLaurențiu Nicola-25/+51
Fix #19071: ensure `completion_item_hash` serializes items uniquely
2025-01-30fmtThe Miri Cronjob Bot-12/+13
2025-01-30Merge from rustcThe Miri Cronjob Bot-2181/+4077
2025-01-30Preparing for merge from rustcThe Miri Cronjob Bot-1/+1
2025-01-30Auto merge of #136272 - Zalathar:rollup-6s577l5, r=Zalatharbors-41/+55
Rollup of 5 pull requests Successful merges: - #135847 (optimize slice::ptr_rotate for small rotates) - #136215 (btree/node.rs: remove incorrect comment from pop_internal_level docs) - #136252 (spastorino back from vacations) - #136254 (Rustc dev guide subtree update) - #136259 (Cleanup docs for Allocator) r? `@ghost` `@rustbot` modify labels: rollup
2025-01-29Add tracking issue to docsWesley Wiser-0/+4
2025-01-30Rollup merge of #136254 - BoxyUwU:rdg-push, r=KobzolStuart Cook-41/+55
Rustc dev guide subtree update r? `@Kobzol`
2025-01-29upstream rustc_codegen_ssa/rustc_middle changes for enzyme/autodiffManuel Drehwald-3/+29
2025-01-30Auto merge of #136035 - SpecificProtagonist:miri-zeroed-alloc, r=oli-obkbors-49/+29
miri: optimize zeroed alloc When allocating zero-initialized memory in MIR interpretation, rustc allocates zeroed memory, marks it as initialized and then re-zeroes it. Remove the last step. I don't expect this to have much of an effect on performance normally, but in my case in which I'm creating a large allocation via mmap it gets in the way.
2025-01-29Merge pull request #4159 from YohDeadfall/write-st-fstype-on-solarisRalf Jung-19/+19
Set st_fstype of stat on Solaris and Illumos OSes
2025-01-30Set the st_fstype filed on SolarisYoh Deadfall-19/+19
2025-01-29Collect directly into ThinVecMichael Howell-9/+7
2025-01-29rustdoc: use ThinVec for generic arg partsMichael Howell-8/+8
This reduces the size of both these args, and of path segments, so should measurably help with memory use.
2025-01-29Auto merge of #135818 - jieyouxu:migrate-translation, r=compiler-errorsbors-3/+14
tests: Port `translation` to rmake.rs Part of #121876. This PR partially supersedes #129011 and is co-authored with `@Oneirical.` ## Summary This PR ports `tests/run-make/translation` to rmake.rs. Notable changes from the Makefile version include: - We now actually fail if the rustc invocations fail... The Makefile did not have `SHELL=/bin/bash -o pipefail`, so all the piped rustc invocations to grep vacuously succeeded, even if the broken ftl test case actually regressed over time and ICEs on current master. - That test case is converted to assert it fails with a FIXME backlinking to #135817. - The test coverage is expanded to not ignore windows. Instead, the test now uses symlink capability detection to gate test execution. - Added some backlinks to relevant tracking issues and the initial translation infra implementation PR. ## Review advice Best reviewed commit-by-commit. r? compiler try-job: aarch64-apple try-job: i686-mingw
2025-01-29ci: use windows 2025 for i686-mingwMarcoIeni-1/+5
2025-01-29Use `to_ne_bytes` instead of `to_le_bytes`Nathan Vegdahl-9/+9
2025-01-29Auto merge of #134248 - oli-obk:patkind-path-removal, r=BoxyUwUbors-68/+153
Merge `PatKind::Path` into `PatKind::Expr` Follow-up to #134228 We always had a duplication where `Path`s could be represented as `PatKind::Path` or `PatKind::Lit(ExprKind::Path)`. We had to handle both everywhere, and still do after #134228, so I'm removing it now.
2025-01-29Merge pull request #4162 from rust-lang/rustup-2025-01-29Ralf Jung-826/+5765
Automatic Rustup
2025-01-29Merge pull request #4122 from tiif/fnabiRalf Jung-53/+184
Check fixed args number for variadic function
2025-01-29make struct-variant matches less future-proof, and other clippy fixesRalf Jung-5/+8
2025-01-30Check fixed arg number for variadic function.tiif-53/+184
2025-01-29Fix typoNathan Vegdahl-2/+2
2025-01-29Rustc pullBoxy-4352/+10674
2025-01-29rustdoc: run css and html minifier at build instead of runtimeMichael Howell-32/+35
This way, adding a bunch of comments to the JS files won't make rustdoc slower.
2025-01-29Fix #19071: ensure `completion_item_hash` serializes items uniquelyNathan Vegdahl-24/+50
Previously it may have been possible for different completion items to produce colliding hashes, not because of the hash but because of how the items were serialized into byte streams for hashing. See #19071 for details. The chances of that happening were low, if it was actually possible at all. Nevertheless, this commit ensures that it definitely can't happen. This commit uses a handful of techniques used to fix this, but they all boil down to "ensure this could be re-parsed". If it's possible to parse to recreate the original item, then by construction there is no chance of two different items getting serialized to identical byte streams.
2025-01-29Auto merge of #136248 - matthiaskrgr:rollup-leaxgfd, r=matthiaskrgrbors-33/+29
Rollup of 8 pull requests Successful merges: - #133382 (Suggest considering casting fn item as fn pointer in more cases) - #136092 (Test pipes also when not running on Windows and Linux simultaneously) - #136190 (Remove duplicated code in RISC-V asm bad-reg test) - #136192 (ci: remove unused windows runner) - #136205 (Properly check that array length is valid type during built-in unsizing in index) - #136211 (Update mdbook to 0.4.44) - #136212 (Tweak `&mut self` suggestion span) - #136214 (Make crate AST mutation accessible for driver callback) r? `@ghost` `@rustbot` modify labels: rollup
2025-01-29Eliminate PatKind::PathOli Scherer-68/+153
2025-01-29Rollup merge of #136214 - momvart:driver_callback_crate_mut, r=bjorn3Matthias Krüger-2/+2
Make crate AST mutation accessible for driver callback Following #134130, this brings back the ability to mutate AST before lowering.
2025-01-29Rollup merge of #136211 - ehuss:update-mdbook, r=ehussMatthias Krüger-27/+27
Update mdbook to 0.4.44 Updates to mdbook 0.4.44. Changelog: https://github.com/rust-lang/mdBook/blob/master/CHANGELOG.md#mdbook-0444
2025-01-29Rollup merge of #136192 - marcoieni:remove-windows-unused-runner, r=KobzolMatthias Krüger-4/+0
ci: remove unused windows runner
2025-01-29Improve check for `--output-format` combinations and add ui regression testGuillaume Gomez-31/+35
2025-01-29Merge pull request #19070 from Veykril/push-wpqzmznymtrnLukas Wirth-71/+148
Remove mutable syntax tree shenanigans from adjustment hints
2025-01-29Remove mutable syntax tree shenanigans from adjustment hintsLukas Wirth-71/+148
2025-01-29Improve code and add missing docs for new `doctest::extracted` moduleGuillaume Gomez-17/+26
2025-01-29Add documentation for `--output-format=doctest`Guillaume Gomez-0/+64
2025-01-29Mention the tracking issue of `--output-format=doctest`Guillaume Gomez-0/+2
2025-01-29Move extracted doctest code and types into its own fileGuillaume Gomez-60/+138
2025-01-29Add new output-formatGuillaume Gomez-12/+105
2025-01-29override build profile for bootstrap testsonur-ozkan-8/+23
Signed-off-by: onur-ozkan <work@onurozkan.dev>