Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
128c8a9
Fix HIR lowering of params of trait assoc fns
ChayimFriedman2 Aug 17, 2026
7c99e94
Push a generic params scope for consts
ChayimFriedman2 Aug 17, 2026
a52423a
Fix unsafeck of `&raw *`
ChayimFriedman2 Aug 18, 2026
b055fad
Switch from `temp-dir` to a homemade `NamedTempFile` implementation
ChayimFriedman2 Aug 20, 2026
1c2b8a1
minor: offer 'add_return_type' after l_curly
A4-Tacks Aug 22, 2026
dee480f
fix: adds-arrow unmap ranges when fn inside macro
A4-Tacks Aug 22, 2026
37c18db
Merge pull request #23215 from A4-Tacks/ret-ty-after-curly
ChayimFriedman2 Aug 24, 2026
04b6536
fix outdated comments
BenjaminBrienen Aug 24, 2026
e4adf9d
Merge pull request #23222 from BenjaminBrienen/outdated-comments
lnicola Aug 24, 2026
4a21a99
Remove callback
A4-Tacks Aug 24, 2026
f5c0420
Merge pull request #23216 from A4-Tacks/arrow-in-macro
ChayimFriedman2 Aug 24, 2026
c5c0004
Remove non-longer-needed remnants from previous versions of the tt en…
ChayimFriedman2 Aug 24, 2026
44ecb1e
Merge pull request #23226 from ChayimFriedman2/remnants-tt
ChayimFriedman2 Aug 24, 2026
1df776d
fix: Panic on accessing numeric fields in unions
Wilfred Aug 25, 2026
0ecada9
internal: Improve panic messages on invalid AST nodes
Wilfred Aug 25, 2026
81a8ebe
Merge pull request #23229 from Wilfred/fix/union-tuple-index-panic
ChayimFriedman2 Aug 25, 2026
8dfc9c7
Merge pull request #23230 from Wilfred/ast_node_panics
ChayimFriedman2 Aug 25, 2026
bceece1
fix: Panic on deref of unresolved aliases
Wilfred Aug 21, 2026
68c2ddf
Merge pull request #23212 from Wilfred/fix/deref-projection-panic
ChayimFriedman2 Aug 25, 2026
610f6ff
fix: reinfer never type in array repeat expressions
phpont Aug 25, 2026
e732f6d
Add tests for `extract_variable` assist not applying to patterns.
kpreid Aug 21, 2026
aef7e8b
feat: Allow “Extract variable” to be invoked on field names in record…
kpreid Aug 21, 2026
d7e9e51
Merge pull request #23184 from ChayimFriedman2/raw-ref-deref-twice
ShoyuVanilla Aug 26, 2026
b0b43b4
Merge pull request #23162 from ChayimFriedman2/trait-fn-param
ShoyuVanilla Aug 26, 2026
9acfd1e
Merge pull request #23206 from ChayimFriedman2/tempfile
ShoyuVanilla Aug 26, 2026
f803acc
Merge pull request #23176 from ChayimFriedman2/const-is-type-owner
ShoyuVanilla Aug 26, 2026
75c1da3
Require rustc citation for analysis changes when using AI
ChayimFriedman2 Aug 25, 2026
bbf7921
Change relationship to uv's AI policy from "adapted from" to "inspire…
ChayimFriedman2 Aug 26, 2026
2a525f3
Merge pull request #23233 from rust-lang/require-rustc-citation
ChayimFriedman2 Aug 26, 2026
aa4f033
Merge pull request #23232 from phpont/fix/23177-array-repeat-never
ChayimFriedman2 Aug 26, 2026
1c026c4
fix: Panic when computing extract_variable with macros
Wilfred Aug 26, 2026
5cca6c2
Merge pull request #23213 from kpreid/extract
A4-Tacks Aug 26, 2026
8787b0c
fix: strip leading asterisk decoration from block doc comments
kivancgnlp Aug 26, 2026
0882b29
Merge pull request #22901 from kivancgnlp/fix-block-doc-asterisks
ChayimFriedman2 Aug 26, 2026
f9cb5fd
Re-use `substr_range()` in docs
ChayimFriedman2 Aug 26, 2026
6fbb86d
Merge pull request #23238 from Wilfred/fix/extract-variable-multiarg-…
ChayimFriedman2 Aug 26, 2026
650a526
Merge pull request #23239 from ChayimFriedman2/fixup-doc
ChayimFriedman2 Aug 26, 2026
1cbc439
Fix some subtle bugs in docs rendering
ChayimFriedman2 Aug 26, 2026
15bea68
Add `rustup toolchain install nightly` to Miri CI
ChayimFriedman2 Aug 26, 2026
2114c7e
Merge pull request #23241 from rust-lang/ChayimFriedman2-patch-1
ChayimFriedman2 Aug 26, 2026
8e8e72c
fix: range pattern inside a parenthesis parsed as tuple pattern
dfireBird Aug 26, 2026
486fec6
Merge pull request #23242 from dfireBird/push-vrtuqvnutkrn
A4-Tacks Aug 28, 2026
d0f5f03
Print the ABI for fn pointers (if not the default)
ChayimFriedman2 Aug 28, 2026
3f504af
Merge pull request #23245 from ChayimFriedman2/extern-fnptr-display
ChayimFriedman2 Aug 28, 2026
e72874d
fix: Panic when hovering a dyn trait with a binder
Wilfred Aug 28, 2026
dd4a7cf
Merge pull request #23235 from ChayimFriedman2/docs-sugar-rustdoc
Veykril Aug 29, 2026
eb87088
Fix `NamedTempFile`
ChayimFriedman2 Aug 30, 2026
2c64e0a
Merge pull request #23257 from ChayimFriedman2/tmp-file
ChayimFriedman2 Aug 30, 2026
7b2fc49
Merge pull request #23250 from Wilfred/dyn_panic_scip
ChayimFriedman2 Aug 30, 2026
e77df4c
fix: hover on generic output now shows correct type, instead of impl …
j-ricardo-goncalves Aug 29, 2026
f5798ce
Merge pull request #23256 from j-ricardo-goncalves/master
ChayimFriedman2 Aug 30, 2026
8517e0f
Also proc-macro-srv tests on Windows
lnicola Aug 31, 2026
61f12cc
Fix proc-macro-srv on Windows
lnicola Aug 31, 2026
6b1b19c
Merge pull request #23264 from lnicola/proc-macro-srv-win-ci
ChayimFriedman2 Aug 31, 2026
5d441ff
fix `overprovisioned-secrets` zizmor finding
marcoieni Aug 31, 2026
3d677d3
Merge pull request #23265 from marcoieni/overprovisioned-secrets
lnicola Aug 31, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions src/tools/rust-analyzer/.github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,11 @@ jobs:
proc-macro-srv:
if: github.repository == 'rust-lang/rust-analyzer'
name: proc-macro-srv
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest, windows-latest]

steps:
- name: Checkout repository
Expand Down Expand Up @@ -206,11 +210,8 @@ jobs:

- name: Install Rust toolchain
run: |
# FIXME: Pin nightly due to a regression in miri on nightly-2026-02-12.
# See https://github.com/rust-lang/miri/issues/4855.
# Revert to plain `nightly` once this is fixed upstream.
rustup toolchain install nightly-2026-02-10
rustup default nightly-2026-02-10
rustup toolchain install nightly
rustup default nightly
rustup component add miri

# - name: Cache Dependencies
Expand Down
6 changes: 3 additions & 3 deletions src/tools/rust-analyzer/.github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,7 @@ jobs:
matrix:
include:
- cmd: vsce
pat: MARKETPLACE_TOKEN
- cmd: ovsx
pat: OPENVSX_TOKEN
steps:
- name: Install Nodejs
uses: actions/setup-node@v6
Expand All @@ -277,6 +275,8 @@ jobs:

- name: Publish Extension
if: github.repository == 'rust-lang/rust-analyzer'
env:
PUBLISH_PAT: ${{ (matrix.cmd == 'vsce' && secrets.MARKETPLACE_TOKEN) || (matrix.cmd == 'ovsx' && secrets.OPENVSX_TOKEN) }}
working-directory: ./editors/code
run: npx ${{ matrix.cmd }} publish --skip-duplicate --pat ${{ secrets[matrix.pat] }} --packagePath ../../dist/rust-analyzer-*.vsix ${{ github.ref != 'refs/heads/release' && '--pre-release' || '' }}
run: npx ${{ matrix.cmd }} publish --skip-duplicate --pat "$PUBLISH_PAT" --packagePath ../../dist/rust-analyzer-*.vsix ${{ github.ref != 'refs/heads/release' && '--pre-release' || '' }}
timeout-minutes: 2
10 changes: 9 additions & 1 deletion src/tools/rust-analyzer/AI_POLICY.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@ E-easy issues are usually easier for maintainers to just fix directly than write

AI *may* be used to understand the codebase for E-easy+E-has-instructions contributions, but not to write any code.

This policy was adapted from [uv's AI policy].
When using AI to author changes to *analysis* - the code responsible for analyzing Rust code and not for implementing IDE features, including
but not limited to: type inference, MIR, name resolution, macro expansion - generally anything in the crates `parser`, `mbe`, `hir-expand`, `hir-def`, `hir-ty`,
although there are exceptions; **including when using AI only to analyze bugs and not to write code**, you are required to include a citation
of the rustc code responsible for the change you did, along with an explanation of how your change follows from it in case this is not immediately clear.

The reason for that is that it is almost impossible to be fully correct in analysis if we implement things differently from rustc. We should not guess
how to fix bugs in analysis without looking at the rustc code.

This policy was inspired by [uv's AI policy].

[uv's AI policy]: https://github.com/astral-sh/.github/blob/c5187e200db51bfe11d56e13053d29bd3793fdd8/AI_POLICY.md
9 changes: 1 addition & 8 deletions src/tools/rust-analyzer/Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1890,7 +1890,7 @@ dependencies = [
"paths",
"proc-macro-test",
"span",
"temp-dir",
"stdx",
]

[[package]]
Expand Down Expand Up @@ -1966,7 +1966,6 @@ dependencies = [
"serde_json",
"span",
"stdx",
"temp-dir",
"toml",
"toolchain",
"tracing",
Expand Down Expand Up @@ -2752,12 +2751,6 @@ dependencies = [
"tt",
]

[[package]]
name = "temp-dir"
version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "016ef9739649996fcc983b9c588fe3d557cf216d4d98503ce1b057ab5a66d689"

[[package]]
name = "tempfile"
version = "3.27.0"
Expand Down
3 changes: 1 addition & 2 deletions src/tools/rust-analyzer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ exclude = ["crates/proc-macro-srv/proc-macro-test/imp"]
resolver = "2"

[workspace.package]
rust-version = "1.95"
rust-version = "1.98"
edition = "2024"
license = "MIT OR Apache-2.0"
authors = ["rust-analyzer team"]
Expand Down Expand Up @@ -143,7 +143,6 @@ smallvec = { version = "1.15.1", features = [
"const_generics",
] }
smol_str = "0.3.2"
temp-dir = "0.2.0"
text-size = "1.1.1"
toml = "1.1.2"
tracing = { version = "0.1.41", default-features = false, features = ["std"] }
Expand Down
Loading
Loading