about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2025-03-10Merge pull request #19334 from Veykril/push-oynrurllmwtkLukas Wirth-5346/+1
internal: Remove generated md book files
2025-03-10Remove generated md book filesLukas Wirth-5346/+1
2025-03-10Merge pull request #19326 from Veykril/push-vovuxzkzrowpLukas Wirth-10/+11
Add missing name-ref parents to syntactic highlighting
2025-03-10Merge pull request #19294 from alibektas/better_build_script_err_msgsLukas Wirth-0/+1
minor: Show build scripts errors in server status
2025-03-10Add missing name-ref parents to syntactic highlightingLukas Wirth-10/+11
2025-03-10Merge pull request #19332 from Veykril/push-trvznlqsvtyqLukas Wirth-84/+53
Make change annotations per text-edit
2025-03-10Merge pull request #19333 from alexkirsz/alexkirsz/fix-diagnosticsLukas Wirth-1/+3
fix: Fix diagnostics being cleared right after being received
2025-03-10Make change annotations per text-editLukas Wirth-84/+53
2025-03-10Fix diagnostics being cleared right after being receivedAlex Kirszenberg-1/+3
2025-03-10Merge pull request #19331 from lnicola/sync-from-rustLaurențiu Nicola-16953/+21900
minor: Sync from downstream
2025-03-10Format codeLaurențiu Nicola-35/+43
2025-03-10Merge pull request #19328 from Veykril/push-umwykvoskvypLukas Wirth-25/+45
internal: Run proc-macro server tests as separate CI job
2025-03-10Fix simd layout testLaurențiu Nicola-1/+1
2025-03-10Bump rustc cratesLaurențiu Nicola-25/+20
2025-03-10Run proc-macro server tests are separate CI jobLukas Wirth-25/+45
Touch tt
2025-03-10Merge pull request #19330 from ChayimFriedman2/normalize-projectionLukas Wirth-503/+869
fix: Normalize projections in evaluated const display and layout calculation
2025-03-10Merge pull request #19079 from ChayimFriedman2/rename-conflictLukas Wirth-59/+509
feat: Warn the user when a rename will change the meaning of the program
2025-03-10Merge pull request #19327 from Veykril/push-qyyvkulltzpzLukas Wirth-2/+6
Fix `path` macro hygiene
2025-03-10Merge from rust-lang/rustLaurențiu Nicola-16902/+21846
2025-03-10Preparing for merge from rust-lang/rustLaurențiu Nicola-1/+1
2025-03-10Fix `path` macro hygieneLukas Wirth-2/+6
2025-03-10Merge pull request #19311 from aibaars/log-build-script-errorLukas Wirth-0/+8
Log build script error output in `load_cargo::load_workspace_at`
2025-03-10Merge pull request #19314 from snprajwal/variantdef-implLukas Wirth-1/+68
fix(hir): `VariantDef` is `impl HasSource`
2025-03-10Merge pull request #19316 from snprajwal/git-commit-ecLukas Wirth-0/+3
fix: do not apply editorconfig to git commit msg
2025-03-10Merge pull request #19252 from flodiebold/fix-fixup-delimitersLukas Wirth-88/+105
Fix syntax fixup producing invalid punctuation
2025-03-10Merge pull request #19232 from ShoyuVanilla/issue-19196Lukas Wirth-12/+59
Bump chalk for built-in supports of async closures
2025-03-10Merge pull request #19325 from Veykril/push-sxyvwwsmtxrrLukas Wirth-12/+102
Rank ADT constructors as constructors for completion scoring
2025-03-10Auto merge of #136780 - joboet:move_pal_stdio, r=Amanieubors-150/+77
std: move stdio to `sys` As per #117276, this moves the platform definitions of `Stdout` and friends into `sys`. This PR also unifies the UNIX and Hermit implementations and moves the `__rust_print_err` function needed by libunwind on SGX into the dedicated module for such helper functions.
2025-03-10Auto merge of #137899 - notriddle:merged-doctests-stable, ↵bors-59/+221
r=fmease,GuillaumeGomez doctests: fix merging on stable Fixes #137898 The generated multi-test harness relies on nightly-only APIs, so the only way to run it on stable is to enable them. To prevent the executing test case from getting at any of the stuff that the harness uses, they're built as two separate crates. The test bundle isn't built with RUSTC_BOOTSTRAP, while the runner harness is.
2025-03-10doctests: build test bundle and harness separatelyMichael Howell-64/+221
This prevents the included test case from getting at nightly-only features when run on stable. The harness builds with RUSTC_BOOTSTRAP, but the bundle doesn't.
2025-03-10doctests: fix merging on stableMichael Howell-1/+6
Fixes #137898 The generated multi-test harness relies on nightly-only APIs, so the only way to run it on stable is to enable them. Since tests that use crate attrs don't be merged, there's no way to use nightly-only features on it anyway.
2025-03-09std: move stdio to `sys`joboet-150/+77
As per #117276, this moves the platform definitions of `Stdout` and friends into `sys`. This PR also unifies the UNIX and Hermit implementations and moves the `__rust_print_err` function needed by libunwind on SGX into the dedicated module for such helper functions.
2025-03-09Auto merge of #137695 - nnethercote:always-inline-query_get_at, r=saethlinbors-1/+1
Always inline `query_get_at`. r? `@saethlin`
2025-03-09Auto merge of #138279 - matthiaskrgr:rollup-ndnoipr, r=matthiaskrgrbors-115/+160
Rollup of 7 pull requests Successful merges: - #122790 (Apply dllimport in ThinLTO) - #137650 (Move `fs` into `sys`) - #138228 (Use `disjoint_bitor` inside `borrowing_sub`) - #138233 (Windows: Don't link std (and run-make) against advapi32, except on win7) - #138253 (Continue to check attr if meet empty repr for adt) - #138263 (Fix `repr128-dwarf` test) - #138276 (Lazy load NtOpenFile for UWP) r? `@ghost` `@rustbot` modify labels: rollup
2025-03-09Rollup merge of #138276 - bdbai:fix-uwp-ntopenfile, r=ChrisDentonMatthias Krüger-0/+11
Lazy load NtOpenFile for UWP Lazily load `NtOpenFile` to allow libraries targeting UWP to build and link. Fixes #138257 . r? `@ChrisDenton`
2025-03-09Rollup merge of #138263 - beetrees:fix-repr128-dwarf, r=jieyouxuMatthias Krüger-7/+8
Fix `repr128-dwarf` test The test now correctly ignores enums from `std`. Fixes #138254 Unblocks #138200
2025-03-09Rollup merge of #138253 - mu001999-contrib:fix-138241, r=jdonszelmannMatthias Krüger-1/+37
Continue to check attr if meet empty repr for adt Fixes #138241 Returning while checking ReprEmpty results in missing the check for the next repr
2025-03-09Rollup merge of #138233 - smmalis37:no-advapi32, r=ChrisDentonMatthias Krüger-13/+19
Windows: Don't link std (and run-make) against advapi32, except on win7 Std no longer depends on any functionality provided by advapi32, so we can remove it from the list of external libraries we link against. Except, the win7 targets do still rely on advapi32-provided functionality. This PR therefore moves linking against it to only occur on win7 targets, so that no new uses of it slip in without being noticed.
2025-03-09Rollup merge of #138228 - TDecking:master, r=jhprattMatthias Krüger-3/+8
Use `disjoint_bitor` inside `borrowing_sub` This makes the definition of `borrowing_sub` consistent with that of `carrying_add`.
2025-03-09Rollup merge of #137650 - thaliaarchi:move-fs-pal, r=NoratriebMatthias Krüger-57/+72
Move `fs` into `sys` Move platform definitions of `fs` into `std::sys`, as part of https://github.com/rust-lang/rust/issues/117276. cc `@joboet`
2025-03-09Rollup merge of #122790 - Zoxc:dllimp-rev, r=ChrisDentonMatthias Krüger-34/+5
Apply dllimport in ThinLTO This partially reverts https://github.com/rust-lang/rust/pull/103353 by properly applying `dllimport` if `-Z dylib-lto` is passed. That PR should probably fully be reverted as it looks quite sketchy. We don't know locally if the entire crate graph would be statically linked. This should hopefully be sufficient to make ThinLTO work for rustc on Windows. r? ``@wesleywiser`` --- Edit: This PR is changed to just generally revert https://github.com/rust-lang/rust/pull/103353.
2025-03-09Auto merge of #137655 - nnethercote:split-edges-iterator, r=nnethercotebors-93/+132
Split the `Edges` iterator. Some nice performance wins here, mostly on the `wg-grammar` benchmark. r? `@lcnr`
2025-03-09Lazy load NtOpenFile for UWPbdbai-0/+11
2025-03-09Rank ADT constructors as constructors for completion scoringLukas Wirth-12/+102
2025-03-09Auto merge of #138267 - matthiaskrgr:rollup-vt76bhs, r=matthiaskrgrbors-1359/+2399
Rollup of 12 pull requests Successful merges: - #136127 (Allow `*const W<dyn A> -> *const dyn A` ptr cast) - #136968 (Turn order dependent trait objects future incompat warning into a hard error) - #137319 (Stabilize `const_vec_string_slice`) - #137885 (tidy: add triagebot checks) - #138040 (compiler: Use `size_of` from the prelude instead of imported) - #138084 (Use workspace lints for crates in `compiler/`) - #138158 (Move more layouting logic to `rustc_abi`) - #138160 (depend more on attr_data_structures and move find_attr! there) - #138192 (crashes: couple more tests) - #138216 (bootstrap: Fix stack printing when a step cycle is detected) - #138232 (Reduce verbosity of GCC build log) - #138242 (Revert "Don't test new error messages with the stage 0 compiler") r? `@ghost` `@rustbot` modify labels: rollup
2025-03-09Merge pull request #19324 from ShoyuVanilla/migrate-inline-varLukas Wirth-48/+174
fix: Prevent wrong invocations of `needs_parens_in` with non-ancestral "parent"s
2025-03-09fix: Prevent wrong invocations of `needs_parens_in` with non-ancestral "parent"sShoyu Vanilla-17/+120
2025-03-09Rollup merge of #138242 - tshepang:that-stage0-has-arrived, r=jieyouxuMatthias Krüger-8/+6
Revert "Don't test new error messages with the stage 0 compiler"
2025-03-09Rollup merge of #138232 - Kobzol:gcc-reduce-verbosity, r=GuillaumeGomezMatthias Krüger-2/+11
Reduce verbosity of GCC build log It was a bit too spammy before. Fixes: https://github.com/rust-lang/rust/issues/138213 r? ``@GuillaumeGomez``
2025-03-09Rollup merge of #138216 - Zalathar:any-debug, r=onur-ozkanMatthias Krüger-2/+75
bootstrap: Fix stack printing when a step cycle is detected When bootstrap detects a step dependency cycle (which represents a bootstrap bug), it is supposed to print out the contents of the step stack as part of its panic message. However, while investigating #138205 it was found that bootstrap was actually printing out several copies of `Any { .. }`, because that is the Debug implementation for `dyn Any`. This is sadly not very helpful. This PR fixes that problem by introducing a `trait AnyDebug: Any + Debug` that delegates to the underlying type's Debug implementation, while still allowing downcasting via Any. --- The fixed behaviour can be verified manually (and is tested automatically) via a new dummy command, `./x run cyclic-step`: ``` $ x run cyclic-step Building bootstrap Finished `dev` profile [unoptimized] target(s) in 0.02s thread 'main' panicked at src/bootstrap/src/core/builder/mod.rs:1521:17: Cycle in build detected when adding CyclicStep { n: 0 } CyclicStep { n: 0 } CyclicStep { n: 1 } CyclicStep { n: 2 } note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace Build completed unsuccessfully in 0:00:00 ```