about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2025-03-05Merge pull request #19279 from Natural-selection1/masterLukas Wirth-1/+51
Improve keyword completion for 'let' and 'let mut'
2025-03-05Merge pull request #19274 from Veykril/push-pouwrwwrlrltLukas Wirth-537/+547
Highlight unsafe operations as unsafe, not definitions
2025-03-05Use HIR unsafety information for unsafe syntax highlightngLukas Wirth-537/+547
2025-03-05add test cases for 'letm' keyword completionTongjun Gao-0/+19
2025-03-05Merge pull request #19288 from thaliaarchi/use-prelude-size-ofLukas Wirth-34/+30
Use `size_of` from the prelude instead of imported
2025-03-05Use size_of from the prelude instead of importedThalia Archibald-34/+24
Use `std::mem::{size_of, size_of_val, align_of, align_of_val}` from the prelude instead of importing or qualifying them. These functions were added to all preludes in Rust 1.80.
2025-03-05minicore: Add size_of to prelude and add rust_2024 preludeThalia Archibald-0/+6
2025-03-05Merge pull request #19286 from lnicola/twiddle-ciLaurențiu Nicola-2/+1
Twiddle with the `rustup` invocation on CI
2025-03-05Merge pull request #19265 from Shourya742/2025-03-01-add-dangling-dyn-diagnosticLaurențiu Nicola-9/+103
feat: Add diagnostic for dangling dyn and impl
2025-03-05Twiddle with the rustup invocation on CILaurențiu Nicola-2/+1
2025-03-04change 'let mut' keyword completion into 'ietm' snippetTongjun Gao-2/+2
2025-03-04Improve keyword completion for 'let' and 'let mut'Tongjun Gao-1/+32
2025-03-03Merge pull request #19275 from lnicola/min-1-82Lukas Wirth-1/+1
Bump minimum supported toolchain to 1.82
2025-03-03Bump minimum supported toolchain to 1.82Laurențiu Nicola-1/+1
2025-03-03Merge pull request #19261 from Veykril/push-rnqlyrvqpolsLukas Wirth-293/+496
Support tuple struct patterns for expand_rest_pattern assist
2025-03-03Merge pull request #19243 from Veykril/push-qrrqsywkwyzpLukas Wirth-64/+96
Allow unsetting default cfgs
2025-03-03Merge pull request #19244 from Veykril/push-nmnrnlysvyvkLukas Wirth-114/+140
Warn when the used toolchain looks too old for rust-analyzer
2025-03-03Support tuple struct patterns for expand_rest_pattern assistLukas Wirth-25/+217
2025-03-03Add dangling implbit-aloo-31/+54
- Adds dangling impl diagnostics - Rename validation test from dangling_impl to dangling_iml_ref
2025-03-03Merge pull request #19269 from lnicola/sync-from-rustLaurențiu Nicola-30117/+53328
minor: sync from downstream
2025-03-03Bump rustc cratesLaurențiu Nicola-20/+20
2025-03-03Merge from rust-lang/rustLaurențiu Nicola-30096/+53307
2025-03-03Preparing for merge from rust-lang/rustLaurențiu Nicola-1/+1
2025-03-03Merge pull request #19226 from Shourya742/2025-02-25-fix-completion-ref-matchingChayim Refael Friedman-3/+25
completion-ref-matching
2025-03-02Auto merge of #137704 - nnethercote:opt-empty-prov-range-checks, r=oli-obkbors-10/+60
Optimize empty provenance range checks. Currently it gets the pointers in the range and checks if the result is empty, but it can be done faster if you combine those two steps. r? `@oli-obk`
2025-03-02Auto merge of #137661 - nikic:llvm20-rc3, r=cuviperbors-0/+0
Update to LLVM 20 rc 3 Fixes a compiler-builtins miscompile (see https://github.com/rust-lang/compiler-builtins/pull/760).
2025-03-02Merge pull request #19266 from the-mikedavis/lsp-pull-diagnostics-identifierLaurențiu Nicola-1/+1
Add `identifier` to pull diagnostic LSP capabilities
2025-03-02Add `identifier` to pull diagnostic LSP capabilitiesMichael Davis-1/+1
This field in the server capabilities instructs the client to maintain the diagnostics received from a `textDocument/diagnostic` pull request as a separate set from other diagnostics: namely those sent with classic "push" diagnostics, `textDocument/publishDiagnostic`. rust-analyzer emits "native" diagnostics (computed by rust-analyzer itself) in pull diagnostics and separately emits cargo-based diagnostics with push, so push and pull diagnostics should be different sets. Setting this field instructs the client to avoid clearing push diagnostics when new pull diagnostics arrive and vice versa.
2025-03-02Merge pull request #19264 from lnicola/theme-colorLaurențiu Nicola-6/+1
minor: Fix transparent diagnostics
2025-03-02add diagnostic for dangling implbit-aloo-3/+40
2025-03-02add diagnostic for dangling dynbit-aloo-9/+43
2025-03-02Fix transparent diagnosticsLaurențiu Nicola-6/+1
2025-03-02Auto merge of #137425 - yotamofek:pr/rustdoc/return-impl-display-redux, ↵bors-2274/+2476
r=GuillaumeGomez `librustdoc`: return `impl fmt::Display` in more places instead of writing to strings Continuation of #136784 , another attempt at landing the larger parts of #136748 . I'd like to, gradually, make all of the building blocks for rendering docs in `librustdoc` return `impl fmt::Display` instead of returning `Strings`, or receiving a `&mut String` (or `&mut impl fmt::Write`). Another smaller end goal is to be able to get rid of [`write_str`](https://github.com/rust-lang/rust/blob/8dac72bb1d12b2649acd0c190e41524f83da5683/src/librustdoc/html/format.rs#L40-L42). This PR is a large step in that direction. Most of the changes are quite mechanical, and split up into separate commits for easier reviewing (hopefully). I took `print_item` and then started by converting all the functions it called (and their dependencies), and the last commit does the conversion for `print_item` itself. Ignoring whitespace should make reviewing a bit easier. And most importantly, perf run shows pretty good results locally, hopefully CI will also show green 😁 r? `@GuillaumeGomez` , if you feel like it.
2025-03-02Auto merge of #136864 - Kobzol:citool, r=marcoienibors-328/+1049
Rewrite the `ci.py` script in Rust It would seem that I would learn by now that any script written in Python will become unmaintainable sooner or later, but alas.. r? `@marcoieni` try-job: aarch64-gnu try-job: dist-x86_64-linux-alt try-job: x86_64-msvc-ext2 Fixes: https://github.com/rust-lang/rust/issues/137013
2025-03-02Normalize some assist namesLukas Wirth-288/+299
2025-03-02Merge pull request #19259 from Veykril/push-skmvrmtorqsoLukas Wirth-45/+162
Add flip or-pattern assist
2025-03-02Merge pull request #19253 from ShoyuVanilla/migrate-convert-bool-thenLukas Wirth-60/+174
internal: Migrate `convert_bool_then` to `SyntaxEditor`
2025-03-02Add flip or-pattern assistLukas Wirth-45/+162
2025-03-02Auto merge of #137855 - matthiaskrgr:rollup-uh7f3fi, r=matthiaskrgrbors-264/+374
Rollup of 10 pull requests Successful merges: - #137804 (rename BackendRepr::Vector → SimdVector) - #137807 (Fully qualify `Result` in generated doctest code) - #137809 (Use correct error message casing for `io::const_error`s) - #137818 (tests: adapt for LLVM 21 changes) - #137822 (Update query normalizer docs to not position it as the greatest pioneer in the space of normalization) - #137824 (Tweak invalid RTN errors) - #137828 (Fix inaccurate `std::intrinsics::simd` documentation) - #137830 (Fix link failure on AVR (incompatible ISA error)) - #137837 (Update `const_conditions` and `explicit_implied_const_bounds` docs) - #137840 (triagebot: only ping me for constck) r? `@ghost` `@rustbot` modify labels: rollup
2025-03-01Auto merge of #137752 - flip1995:clippy-subtree-update, r=Manishearthbors-15397/+34676
Clippy subtree update ? `@Manishearth` Cargo.lock change because of Clippy version bump and rustc_tool_utils new release. Fixes #137640 Would be nice, if we could this merged before nightly is being build, so that this ICE is fixed tomorrow.
2025-03-01Merge pull request #19251 from Veykril/push-tkmpqtzxynxkLukas Wirth-87/+50
Remove syntax editing from parenthesis computation
2025-03-01Merge pull request #19257 from Veykril/push-myvwxskworsnLukas Wirth-590/+485
internal: Cleanup some syntax highlighting things
2025-03-01Remove syntax editing from parenthesis computationLukas Wirth-87/+50
2025-03-01Fix `test_keyword_highlighting` testLukas Wirth-38/+107
2025-03-01Cleanup string handling in syntax highlightingLukas Wirth-58/+27
2025-03-01More precise macro modifiers for syntax highlightingLukas Wirth-231/+231
2025-03-01Cleanup highlighting macro-def handlingLukas Wirth-340/+197
2025-03-01Rollup merge of #137840 - fee1-dead-contrib:push-uwkzouvnrnvs, r=oli-obkMatthias Krüger-3/+7
triagebot: only ping me for constck Per the [Zulip thread](https://rust-lang.zulipchat.com/#narrow/channel/146212-t-compiler.2Fconst-eval/topic/rustbot.20pings). cc `@rust-lang/wg-const-eval.`
2025-03-01Rollup merge of #137837 - fee1-dead-contrib:push-pvqvwuvrnwsy, r=compiler-errorsMatthias Krüger-7/+17
Update `const_conditions` and `explicit_implied_const_bounds` docs Move documentation to query definitions, and add docs to `explicit_implied_const_bounds`. r? project-const-traits
2025-03-01Rollup merge of #137830 - LuigiPiucco:incompatible-isa-fix, r=workingjubileeMatthias Krüger-1/+5
Fix link failure on AVR (incompatible ISA error) Fixes #137739. A reproducer of the issue is present there. I believe the root cause was introducing the avr-none target (which has no CPU by default) while also trying to get the ISA revision from the target spec. This commit uses the `target-cpu` option instead, which is already required to be present for the target. r? compiler cc ``@Patryk27``