about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2025-09-21move most of the test to new testCtxbit-aloo-191/+152
2025-09-21allow symlinking during testbit-aloo-1/+1
2025-09-21remove using default toml config for test in get_toml, we handle it via ↵bit-aloo-4/+0
using the temp directory created via the testCtx
2025-09-21let verify method run in test settingsbit-aloo-1/+1
2025-09-21add an API in ConfigBuilder to point to config file for toml parsingbit-aloo-0/+8
2025-09-21walk up the ancestorsbit-aloo-6/+7
2025-09-21make cargo test work for bootstrap self testbit-aloo-73/+17
2025-09-21Port #[macro_export] to the new attribute parsing infrastructureJonathan Brouwer-24/+30
Co-authored-by: Anne Stijns <anstijns@gmail.com>
2025-09-21Implement output of colored messages with optional check contextJakub Beránek-55/+152
2025-09-21Migrate the remaining tidy checks to diagnosticsJakub Beránek-572/+560
2025-09-21Add `CheckId`, migrate the `alphabetical` check to diagnosticsJakub Beránek-45/+63
2025-09-21Add diagnostics context and migrate the `style` check to itJakub Beránek-89/+187
2025-09-21Support ctr and lr as clobber-only registers in PowerPC inline assemblyTaiki Endo-2/+4
2025-09-21fix a crash in rustdoc merge finalize without input fileIris Shi-2/+4
2025-09-21Fix not applicable on trailing comma for remove_dbgA4-Tacks-1/+16
`remove_dbg` not applicable for whitespaces after trailing comma Example --- ```rust fn foo() { dbg!( bar(), ); } ``` **Before this PR**: Assist not applicable **After this PR**: ```rust fn foo() { bar(); } ```
2025-09-21Update list of good combinations (inc. beta + nightly)Igor S. Gerasimov-2/+5
2025-09-20Rollup merge of #146774 - Kobzol:bootstrap-relative-path, r=jieyouxuMatthias Krüger-5/+17
Allow running `x <cmd> <path>` from a different directory Fixes: https://github.com/rust-lang/rust/issues/146772 r? ``@jieyouxu``
2025-09-20Rollup merge of #146762 - madsmtm:test-apple-sim, r=jieyouxuMatthias Krüger-45/+66
Fix and provide instructions for running test suite on Apple simulators The following now works: ```sh ./x test --host='' --target aarch64-apple-ios-sim --skip tests/debuginfo ./x test --host='' --target aarch64-apple-tvos-sim --skip tests/debuginfo ./x test --host='' --target aarch64-apple-watchos-sim --skip tests/debuginfo ./x test --host='' --target aarch64-apple-visionos-sim --skip tests/debuginfo ``` I have documented the setup I used [in the `rustc-dev-guide`](https://rustc-dev-guide.rust-lang.org/tests/running.html#testing-on-emulators), it's fairly standard use of `remote-test-server` (with a small fix to library load paths which I've made in the first commit). I first tried the somewhat simpler `target.aarch64-apple-ios-sim.runner = "xcrun simctl spawn $UDID"`, but that doesn't work as required libraries etc. also need to be copied to the device. The debuginfo tests fail, I think because the debug info in `.dSYM` isn't available. I am yet unsure exactly how to fix this, either we need to copy that directory to the target as well, or we need to configure `lldb` somehow to read it from the host. I decided to not add this to our CI, since I suspect we wouldn't gain much from it? Running on the simulator still uses the host Darwin kernel, it's basically just configured to run in another mode with more restricted permissions and different system libraries. r? jieyouxu CC ``@simlay,`` you're a lot more familiar with `xcrun simctl` than I.
2025-09-20allow take union field addresses in safe rustKivooeo-1/+60
2025-09-20Merge pull request #20706 from A4-Tacks/stdx-replace-inplaceShoyu Vanilla (Flint)-3/+41
Fix to implements in-place stdx::replace
2025-09-20Add some test for stdx::replaceA4-Tacks-0/+30
2025-09-20Merge pull request #20661 from A4-Tacks/suggest-if-bodyShoyu Vanilla (Flint)-8/+82
Fix IfExpr branches suggests
2025-09-20Fix to implements in-place stdx::replaceA4-Tacks-3/+11
2025-09-20Fix IfExpr then branch suggestA4-Tacks-8/+82
- And add logic operation suggest Example --- In the old implementation, it always suggested conditions, this is a lot of noise, e.g `contract_checks()~(use std::intrinsics::contract_checks) const fn() -> bool` ```rust fn foo() { if true { c$0 } } ```
2025-09-20Merge pull request #20710 from A4-Tacks/unused-var-shorthandShoyu Vanilla (Flint)-11/+57
Fix unused_variables fixes shorthand record field
2025-09-20Merge pull request #20709 from ↵Shoyu Vanilla (Flint)-2/+48
A4-Tacks/destruct-panic-on-not-add-deref-and-paren Fix panic `!self.data().mutable` for destructure_struct_binding
2025-09-20Merge pull request #20686 from A4-Tacks/gen-default-not-apply-selectedShoyu Vanilla (Flint)-0/+46
Fix selected applicable generate_default_from_enum_variant
2025-09-20Merge pull request #20689 from ShoyuVanilla/accurate-flycheckDavid Barsky-43/+213
fix: Make flycheck clearing dependency-aware
2025-09-20Fix selected multi variants applicable generate_default_from_enum_variantA4-Tacks-0/+46
2025-09-20Merge pull request #20688 from ↵Shoyu Vanilla (Flint)-0/+18
A4-Tacks/fix-applicable-after-l-curly-replace-is-method-with-if-let Fix applicable after l_curly for replace_is_method_with_if_let_method
2025-09-20Merge pull request #20700 from A4-Tacks/extract-var-let-exprShoyu Vanilla (Flint)-1/+28
Fix extract_variable on LetExpr
2025-09-20Merge pull request #20702 from A4-Tacks/else-not-before-elseShoyu Vanilla (Flint)-3/+133
Fix `else` completion before else keyword
2025-09-20Merge pull request #20708 from A4-Tacks/destruct-ref-mut-panicsShoyu Vanilla (Flint)-9/+96
Fix panics on `Foo{mut x}` for destructure_struct_binding
2025-09-20Auto merge of #146805 - lnicola:sync-from-ra, r=lnicolabors-9245/+38642
`rust-analyzer` subtree update Subtree update of `rust-analyzer` to https://github.com/rust-lang/rust-analyzer/commit/0c62c01aae05639bbc0605ade5435dfa6da96307. Created using https://github.com/rust-lang/josh-sync. r? `@ghost`
2025-09-20Fix unused_variables fixes shorthand record fieldA4-Tacks-11/+57
Example --- ```rust struct S { field : u32 } fn main() { let s = S { field : 2 }; let S { $0field } = s } ``` **Before this PR**: ```rust struct S { field : u32 } fn main() { let s = S { field : 2 }; let S { _field } = s } ``` **After this PR**: ```rust struct S { field : u32 } fn main() { let s = S { field : 2 }; let S { field: _field } = s } ```
2025-09-20Fix panic `!self.data().mutable` for destructure_struct_bindingA4-Tacks-2/+48
When the reference type does not require adding a dereference or parentheses, it will panic Example --- ```rust struct Foo { bar: i32, baz: i32 } fn main() { let $0foo = &Foo { bar: 1, baz: 2 }; let _ = &foo.bar; } ``` **Before this PR**: Panic: ``` assertion failed: !self.data().mutable ``` **After this PR**: ```rust struct Foo { bar: i32, baz: i32 } fn main() { let Foo { bar, baz } = &Foo { bar: 1, baz: 2 }; let _ = bar; } ```
2025-09-20Fix panics on `Foo{mut x}` for destructure_struct_bindingA4-Tacks-9/+96
Example --- ```rust struct Foo { x: () } struct Bar { foo: Foo } fn f(Bar { mut $0foo }: Bar) {} ``` **Before this PR**: Panic `Option::unwrap` **After this PR**: ```rust struct Foo { x: () } struct Bar { foo: Foo } fn f(Bar { foo: Foo { mut x } }: Bar) {} ```
2025-09-20CI: test bootstrap buildRalf Jung-2/+37
2025-09-20Auto merge of #146771 - Kobzol:download-ci-llvm-default-value, r=jieyouxubors-11/+4
Simplify default value of `download-ci-llvm` Just set it to true, rather than having different default values on CI and locally, and then only deny `true` on our own CI, not elsewhere. Closes: https://github.com/rust-lang/rust/issues/146768 r? `@jieyouxu`
2025-09-20clippyRalf Jung-4/+4
2025-09-20Bump rustc crates once moreLaurențiu Nicola-34/+32
2025-09-20Merge ref 'ec3867107526' from rust-lang/rustThe Miri Cronjob Bot-2798/+4943
Pull recent changes from https://github.com/rust-lang/rust via Josh. Upstream ref: ec38671075266e9cee0348701da2e133379e7c6c Filtered ref: ed8e25574abf50600d9d2fd61eda90708ccce6c2 Upstream diff: https://github.com/rust-lang/rust/compare/3f1552a273e43e15f6ed240d00e1efdd6a53e65e...ec38671075266e9cee0348701da2e133379e7c6c This merge was created using https://github.com/rust-lang/josh-sync.
2025-09-20Prepare for merging from rust-lang/rustThe Miri Cronjob Bot-1/+1
This updates the rust-version file to ec38671075266e9cee0348701da2e133379e7c6c.
2025-09-19[win] Use find-msvc-tools instead of cc to find the linker and rc on WindowsDaniel Paoliello-0/+1
2025-09-19chore(compiletest): Use newest anstyle-svg versionScott Schafer-1/+1
2025-09-19Simplify default value of `download-ci-llvm`Jakub Beránek-11/+4
2025-09-19Stop linking rs{begin,end} on x86_64-*-windows-gnuMateusz Mikuła-0/+2
Until now, x86_64-pc-windows-gnu linked `rsbegin.o` and `rsend.o` just like i686-pc-windows-gnu, even though they were no-ops for it. This was likely done for the simplicity back when it was introduced. Today the things are different and these startup/end objects harm other features, like `build-std`. Given the demotion of i686-pc-windows-gnu from tier 1, there is no point in hurting x86_64-pc-windows-gnu, which remains a tier 1. The files are still shipped in case downstream crates expect them, as in case of the unmaintained `xargo`.
2025-09-20fix: Make flycheck clearing dependency-awareShoyu Vanilla-43/+213
2025-09-19Merge pull request #20701 from A4-Tacks/track-caller-assist-testChayim Refael Friedman-0/+1
Add `#[track_caller]` for check_assist_by_label
2025-09-19Allow running `x <cmd> <path>` from a different directoryJakub Beránek-5/+17