Skip to content

⬆️ rust-analyzer #103177

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 94 commits into from
Oct 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
94 commits
Select commit Hold shift + click to select a range
d0f2db3
fix(generate_method): correct method indentation inside generated impl
feniljain Sep 15, 2022
37ff07e
fix(generate_module): generate new impl near its ADT
feniljain Sep 15, 2022
2c666a0
Add convert_named_struct_to_tuple_struct assist
jplatte Sep 27, 2022
a3d79b5
Update outside test and generated code
jplatte Sep 27, 2022
28c21bc
internal: Allow minicore flags specification to be order independent
Veykril Oct 6, 2022
75f4c54
Add stub for cargo environment variables auto completion
btwotwo Oct 4, 2022
07621ce
Use expanded version of text for env var completion
btwotwo Oct 6, 2022
08b0c92
Add helper method to get a macro name from passed string
btwotwo Oct 6, 2022
ddf68ea
Add const list of cargo-defined env variables with descriptions
btwotwo Oct 6, 2022
bc70808
Add tests for env var completion
btwotwo Oct 6, 2022
55c5014
Replace if with option, add detail for each env variable completion
btwotwo Oct 6, 2022
386f46a
Use helper method in is_format_string
btwotwo Oct 6, 2022
c660a5c
Remove unnecessary dereference
btwotwo Oct 6, 2022
8a92910
Formatting
btwotwo Oct 6, 2022
f458ea1
Make helper method less specific
btwotwo Oct 6, 2022
e2d3c15
Restrict auto-completion for only built-in macros
btwotwo Oct 6, 2022
3732d15
Pass context to env vars completion
btwotwo Oct 6, 2022
df7d39b
Bump once_cell
lnicola Oct 2, 2022
5bbfea0
fix: in VSCode, correctly resolve relative paths to errors
matklad Oct 8, 2022
75f6417
Add `GenericParamList::to_generic_args`
DropDemBits Oct 9, 2022
bfe6ec9
Add `{TypeParam, ConstParam}::remove_default`
DropDemBits Oct 9, 2022
1015a17
Have `to_generic_args` return `ast::GenericArgList`
DropDemBits Oct 10, 2022
a69cccf
Underline only the intra-doc link instead of the whole doc comment
DropDemBits Oct 10, 2022
910c565
Auto merge of #13376 - DropDemBits:strip-generic-bounds-and-defaults,…
bors Oct 10, 2022
05a6bc4
Auto merge of #13377 - DropDemBits:doc-link-underline-range, r=Veykril
bors Oct 10, 2022
63ed71b
Honor cfg attributes on params when lowering their patterns
Veykril Oct 10, 2022
79a3f84
Auto merge of #13367 - matklad:fix-problem-matchers, r=Veykril
bors Oct 10, 2022
dcf1d71
Auto merge of #13303 - jplatte:convert-named-struct-to-tuple-struct, …
bors Oct 10, 2022
1574fe0
Use $crate instead of std for panic builtin_fn_macro
Veykril Oct 1, 2022
3a69435
Auto merge of #13333 - feniljain:fix_assists, r=Veykril
bors Oct 10, 2022
78f33c0
Expand unmatched mbe fragments to reasonable default token trees
Veykril Oct 10, 2022
4ac3f2c
Auto merge of #13384 - Veykril:macro-fallbacks, r=Veykril
bors Oct 10, 2022
fd9cd84
Don't report build-scripts and proc-macros are metadata progress
Veykril Oct 10, 2022
f3ae5e5
Refactor completions expansion
Veykril Oct 10, 2022
ef014aa
Auto merge of #13385 - Veykril:progress, r=Veykril
bors Oct 10, 2022
deddad3
Auto merge of #13380 - Veykril:cfg-pat-params, r=Veykril
bors Oct 10, 2022
d235373
Auto merge of #13386 - Veykril:completions-ref, r=Veykril
bors Oct 10, 2022
76be44e
Update manual now stable can be installed with rustup
dvdsk Oct 10, 2022
43c7f3c
Auto merge of #13391 - dvdsk:update-manual, r=lnicola
bors Oct 10, 2022
c069f1b
Prefer similar tokens when expanding macros speculatively
Veykril Oct 10, 2022
99c205c
Auto merge of #13392 - Veykril:spec-pref, r=Veykril
bors Oct 10, 2022
21319d1
Auto merge of #13329 - Veykril:rustc-proc-macro, r=Veykril
bors Oct 10, 2022
5d49951
Auto merge of #13357 - Veykril:minicore, r=Veykril
bors Oct 10, 2022
11a335d
fix link in syntax.md
zyctree Oct 11, 2022
5e43ea9
fix: reorder dyn bounds on render
lowr Oct 10, 2022
3497799
Update docs/dev/syntax.md
zyctree Oct 11, 2022
d08f1c3
Auto merge of #13382 - lowr:fix/reorder-dyn-bounds-on-render, r=lowr
bors Oct 11, 2022
3c39668
Remove extra parameter, access Db through semantics
btwotwo Oct 11, 2022
a807cc3
Rename `get_outer_macro` to `macro_call_for_string_token`
btwotwo Oct 11, 2022
b5e87ac
Fix formatting for cargo vars list
btwotwo Oct 11, 2022
2b2b9f8
Formatting
btwotwo Oct 11, 2022
a0ab61f
Auto merge of #13358 - btwotwo:feature/env-vars-autocompletion, r=Vey…
bors Oct 11, 2022
73e91dd
Set opt-level = 1 on dev profile
lnicola Oct 12, 2022
82a8774
Avoid format! in favor of to_string
lnicola Oct 12, 2022
983ae1b
Cast runnableEnv items to string
HKalbasi Oct 12, 2022
58e5452
fix formatting
HKalbasi Oct 12, 2022
4adf09b
Run analysis-stats on CI
lnicola Oct 13, 2022
36a70b7
Auto merge of #13401 - lnicola:opt-tests, r=lnicola
bors Oct 14, 2022
55fdcbe
Revert "fix: in VSCode, correctly resolve relative paths to errors"
jonas-schievink Oct 14, 2022
44fbe52
Auto merge of #13413 - rust-lang:revert-13367-fix-problem-matchers, r…
bors Oct 14, 2022
d2d1c1e
Bump Swatinem/rust-cache to move off Node 12
lnicola Oct 14, 2022
af987da
Auto merge of #13414 - lnicola:bump-cache, r=lnicola
bors Oct 14, 2022
f94d8d8
Set a timeout when publishing to OVSX
lnicola Oct 14, 2022
018b842
Auto merge of #13415 - lnicola:ovsx-timeout, r=lnicola
bors Oct 14, 2022
cbce0cd
Bump anyhow, arbitrary, itertools, semver, serde
lnicola Oct 3, 2022
50f990c
Bump smallvec
lnicola Oct 6, 2022
bb6990c
Bump tracing
lnicola Oct 8, 2022
6e74a22
Bump home
lnicola Oct 15, 2022
3a5f6a7
Bump dashmap
lnicola Oct 15, 2022
e294640
Bump libc
lnicola Oct 15, 2022
97eebbf
Bump url
lnicola Oct 15, 2022
39777bf
Bump rowan
lnicola Oct 15, 2022
2758488
Bump mimalloc
lnicola Oct 15, 2022
792920f
Bump pulldown-cmark-to-cmark
lnicola Oct 15, 2022
f5bbf9a
Bump proc-macro2
lnicola Oct 15, 2022
119e1ba
Bump notify
lnicola Oct 15, 2022
b513111
Bump the rest of the deps
lnicola Oct 15, 2022
342764d
Add new license
lnicola Oct 15, 2022
855cd5c
Auto merge of #13418 - lnicola:bump-deps, r=lnicola
bors Oct 15, 2022
7bf6f18
Bump actions/setup-node
lnicola Oct 15, 2022
5174d3d
Auto merge of #13419 - lnicola:bump-setup-node, r=lnicola
bors Oct 15, 2022
dd4d3f0
fix #13105: Ignore auto-import assist on parameter names
volsa Oct 15, 2022
8267966
Auto merge of #13420 - volsa:master, r=Veykril
bors Oct 16, 2022
c09151c
Auto merge of #13402 - HKalbasi:patch-1, r=Veykril
bors Oct 16, 2022
88d0efc
Update guide.md to reflect support for proc-macros
Veykril Oct 16, 2022
8406380
Auto merge of #13421 - rust-lang:Veykril-patch-1, r=Veykril
bors Oct 16, 2022
310a72b
Bump chalk to 0.86
lowr Oct 13, 2022
4876693
Auto merge of #13408 - lowr:patch/bump-chalk-0.86, r=Veykril
bors Oct 16, 2022
381366f
Diagnose incorrect usages of the question mark operator
Veykril Oct 5, 2022
ee2d9ed
Auto merge of #13354 - Veykril:try-stuff, r=Veykril
bors Oct 16, 2022
5df03c2
update link in syntax.md
zyctree Oct 16, 2022
ea8b62f
update link in syntax.md
zyctree Oct 16, 2022
0531aab
Auto merge of #13397 - zyctree:zyctree-patch-2, r=lnicola
bors Oct 16, 2022
cb8fdff
:arrow_up: rust-analyzer
lnicola Oct 18, 2022
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
27 changes: 22 additions & 5 deletions src/tools/rust-analyzer/.github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,31 @@ jobs:
rustup component add rustfmt rust-src

- name: Cache Dependencies
uses: Swatinem/rust-cache@ce325b60658c1b38465c06cc965b79baf32c1e72
uses: Swatinem/rust-cache@76686c56f2b581d1bb5bda44b51f7e24bd9b8b8e

- name: Compile
- name: Bump opt-level
if: matrix.os == 'ubuntu-latest'
run: sed -i '/\[profile.dev]/a opt-level=1' Cargo.toml

- name: Compile (tests)
run: cargo test --no-run --locked

# It's faster to `test` before `build` ¯\_(ツ)_/¯
- name: Compile (rust-analyzer)
if: matrix.os == 'ubuntu-latest'
run: cargo build --quiet

- name: Test
run: cargo test -- --nocapture --quiet

- name: Run analysis-stats on rust-analyzer
if: matrix.os == 'ubuntu-latest'
run: target/${{ matrix.target }}/debug/rust-analyzer analysis-stats .

- name: Run analysis-stats on rust std library
if: matrix.os == 'ubuntu-latest'
run: target/${{ matrix.target }}/debug/rust-analyzer analysis-stats --with-deps $(rustc --print sysroot)/lib/rustlib/src/rust/library/std

# Weird targets to catch non-portable code
rust-cross:
if: github.repository == 'rust-lang/rust-analyzer'
Expand All @@ -73,7 +90,7 @@ jobs:
rustup target add ${{ env.targets }} ${{ env.targets_ide }}

- name: Cache Dependencies
uses: Swatinem/rust-cache@ce325b60658c1b38465c06cc965b79baf32c1e72
uses: Swatinem/rust-cache@76686c56f2b581d1bb5bda44b51f7e24bd9b8b8e

- name: Check
run: |
Expand All @@ -99,9 +116,9 @@ jobs:
uses: actions/checkout@v3

- name: Install Nodejs
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: 16.x
node-version: 16

- name: Install xvfb
if: matrix.os == 'ubuntu-latest'
Expand Down
10 changes: 6 additions & 4 deletions src/tools/rust-analyzer/.github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ jobs:
rustup component add rust-src

- name: Install Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: 16.x
node-version: 16

- name: Update apt repositories
if: matrix.target == 'aarch64-unknown-linux-gnu' || matrix.target == 'arm-unknown-linux-gnueabihf'
Expand Down Expand Up @@ -184,9 +184,9 @@ jobs:
needs: ["dist", "dist-x86_64-unknown-linux-musl"]
steps:
- name: Install Nodejs
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: 16.x
node-version: 16

- run: echo "TAG=$(date --iso -u)" >> $GITHUB_ENV
if: github.ref == 'refs/heads/release'
Expand Down Expand Up @@ -259,6 +259,7 @@ jobs:
working-directory: ./editors/code
# token from https://dev.azure.com/rust-analyzer/
run: npx ovsx publish --pat ${{ secrets.OPENVSX_TOKEN }} --packagePath ../../dist/rust-analyzer-*.vsix || true
timeout-minutes: 2

- name: Publish Extension (Code Marketplace, nightly)
if: github.ref != 'refs/heads/release' && (github.repository == 'rust-analyzer/rust-analyzer' || github.repository == 'rust-lang/rust-analyzer')
Expand All @@ -269,3 +270,4 @@ jobs:
if: github.ref != 'refs/heads/release' && (github.repository == 'rust-analyzer/rust-analyzer' || github.repository == 'rust-lang/rust-analyzer')
working-directory: ./editors/code
run: npx ovsx publish --pat ${{ secrets.OPENVSX_TOKEN }} --packagePath ../../dist/rust-analyzer-*.vsix || true
timeout-minutes: 2
Loading