Skip to content

⬆️ rust-analyzer #113791

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 320 commits into from
Jul 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
320 commits
Select commit Hold shift + click to select a range
6ba2590
Auto merge of #15120 - lnicola:neovim, r=lnicola
bors Jun 23, 2023
d026479
Support `#[rustc_coinductive]`
lowr Jun 24, 2023
68e6402
fix(name): Push to rust-analyzer metrics repo
NanthR Jun 24, 2023
506153b
refactor(workflow): Use build matrix
NanthR Jun 24, 2023
380773b
Upgrade to indexmap v2
cuviper Jun 25, 2023
b092b45
Auto merge of #15126 - cuviper:indexmap-2, r=lnicola
bors Jun 25, 2023
6d2d138
Fix some unsizing problems in mir
HKalbasi Jun 25, 2023
4a2ceef
Auto merge of #15135 - HKalbasi:mir, r=HKalbasi
bors Jun 25, 2023
6c3e15a
13583 rename runnable env to runnables extra env
mohsen-alizadeh Jun 26, 2023
fd1130b
delete matching brace key binding
mohsen-alizadeh Jun 26, 2023
7b418d3
Add the comment why `HasSource::source()` returns `Option`
tetsuharuohzeki Jun 26, 2023
8769cd2
Auto merge of #15140 - tetsuharuohzeki:issue-15088-comment, r=Veykril
bors Jun 26, 2023
a92ec74
autopublish: Rename crates after removing libs from workspace
davidlattimore Jun 26, 2023
a9c29a9
Auto merge of #15142 - davidlattimore:autopublish-no-rename-libs, r=l…
bors Jun 27, 2023
a028463
Fix `self` and `super` path resolution in block modules
lowr Jun 27, 2023
56dd536
Refactor
lowr Jun 27, 2023
1ec07fd
Update typescript to v5.1
tetsuharuohzeki Jun 27, 2023
c086389
Update typescript-eslint to v5.60
tetsuharuohzeki Jun 27, 2023
9a0a0a0
Update tslib
tetsuharuohzeki Jun 27, 2023
8769df9
Update prettier
tetsuharuohzeki Jun 27, 2023
2f7a16c
Update `@vscode/test-electron`
tetsuharuohzeki Jun 27, 2023
1bfdcb2
Update ESLint
tetsuharuohzeki Jun 27, 2023
95e4c66
Update vscode-languageclient
tetsuharuohzeki Jun 27, 2023
658831c
Update `@hpcc-js/wasm`
tetsuharuohzeki Jun 27, 2023
6454b5a
Update d3
tetsuharuohzeki Jun 27, 2023
9870aa0
Update ovsx
tetsuharuohzeki Jun 27, 2023
9930889
Update esbuild
tetsuharuohzeki Jun 27, 2023
35184be
Regenerate package-lock.json
tetsuharuohzeki Jun 27, 2023
1b228f9
Update `@types/vscode` to v1.78
tetsuharuohzeki Jun 27, 2023
677151e
Version 1
alibektas Jun 24, 2023
7c8ae35
Auto merge of #15151 - tetsuharuohzeki:update-deps-code-ext, r=lnicola
bors Jun 27, 2023
682f90c
Clean up `activationEvents` in vscode extension's package.json
tetsuharuohzeki Jun 27, 2023
0ddf8b6
editor/code: Use `@tsconfig/strictest` to define type checking rules
tetsuharuohzeki Jun 27, 2023
b2ddf14
Auto merge of #15153 - tetsuharuohzeki:cleanup-activationEvents, r=ln…
bors Jun 28, 2023
89d7056
Auto merge of #15154 - tetsuharuohzeki:tsconfig-strictest, r=lnicola
bors Jun 28, 2023
8e0efbc
editor/code: Enable `noImplicitOverride` ts option
tetsuharuohzeki Jun 27, 2023
c10c6b4
Auto merge of #15159 - tetsuharuohzeki:enable-noImplicitOverride, r=V…
bors Jun 28, 2023
f8518a6
Update crates/rust-analyzer/src/handlers/request.rs
Veykril Jun 28, 2023
891331c
Auto merge of #15101 - alibektas:14780, r=Veykril
bors Jun 28, 2023
0216044
Auto merge of #15125 - lowr:patch/rustc_coinductive, r=Veykril
bors Jun 28, 2023
77ccd64
Auto merge of #15136 - mohsen-alizadeh:13908-delete-matching-brace-ke…
bors Jun 28, 2023
20c877a
Update crates/ide-assists/src/handlers/generate_trait_from_impl.rs
alibektas Jun 28, 2023
4b06d3c
Auto merge of #15148 - lowr:fix/super-nameres-in-block, r=Veykril
bors Jun 28, 2023
cf34df0
fix(metrics): Add repo check
NanthR Jun 28, 2023
d51536c
Add `library` fixture meta
lowr Jun 28, 2023
ac4e046
Auto merge of #15030 - NanthR:parallel-metrics, r=HKalbasi
bors Jun 28, 2023
ae89ca3
Auto merge of #15161 - lowr:patch/fixture-metadata-library, r=Veykril
bors Jun 28, 2023
eb85c8f
fix(metrics): Push to master branch
NanthR Jun 28, 2023
38dd674
Auto merge of #15163 - NanthR:fix-ci, r=lnicola
bors Jun 28, 2023
7901538
Fix runnable detection for `#[tokio::test]`
HKalbasi Jun 28, 2023
ad434fc
Auto merge of #15157 - HKalbasi:tokio-test, r=HKalbasi
bors Jun 28, 2023
3f70117
fallback to old key
mohsen-alizadeh Jun 29, 2023
d7f4c21
Auto merge of #15138 - mohsen-alizadeh:13583-rename-runnableEnv-to-ru…
bors Jun 29, 2023
2272803
Fix realloc problem in allocating smaller amounts
HKalbasi Jun 29, 2023
70a01fe
Auto merge of #15168 - HKalbasi:mir, r=HKalbasi
bors Jun 29, 2023
4e793e7
Use anonymous lifetime where possible
lowr Jun 29, 2023
f53f923
Support #[derive_const(Trait)]
HKalbasi Jun 29, 2023
b9c3d09
Auto merge of #15172 - HKalbasi:mir, r=HKalbasi
bors Jun 29, 2023
302bb3c
Fix data layout of reference to nested unsized structs
HKalbasi Jun 29, 2023
769c80d
Auto merge of #15173 - HKalbasi:mir, r=HKalbasi
bors Jun 29, 2023
0500b1d
editor/code: Switch to `@vscode/vsce`
tetsuharuohzeki Jun 30, 2023
40b2a68
Auto merge of #15174 - tetsuharuohzeki:switch-to-use-vscode-vcse, r=V…
bors Jun 30, 2023
477a75d
Drop cross-env npm dep
lnicola Jun 30, 2023
d597369
Auto merge of #15175 - lnicola:cross-env, r=Veykril
bors Jun 30, 2023
60d046f
Fix panic in `handle_code_action`
Veykril Jun 30, 2023
7e7f401
Fix panic in handle_code_action
Veykril Jun 30, 2023
f96442a
Auto merge of #15177 - rust-lang:Veykril-patch-1, r=Veykril
bors Jun 30, 2023
72aeaef
Purge of unwraps
alibektas Jun 30, 2023
cfbeb66
Purge of unwrap version 2
alibektas Jun 30, 2023
97b725e
Remove `name_only` from import map query
lowr Jun 29, 2023
8cd4e9f
Merge `assoc_items_only` and `exclude_import_kinds` into `assoc_mode`
lowr Jun 29, 2023
860628a
Remove `SearchMode:Contains`
lowr Jun 29, 2023
7a3991a
Auto merge of #15180 - alibektas:15176, r=Veykril
bors Jun 30, 2023
2b10664
Only store item name instead of full path
lowr Jun 30, 2023
5db0e1a
Restructure `ImportMap` collection
lowr Jun 30, 2023
76bcd99
Auto merge of #15169 - lowr:patch/impl-header-anon-lifetime, r=HKalbasi
bors Jun 30, 2023
45828cd
Disable mir interpreter for targets with different pointer size from …
HKalbasi Jun 30, 2023
0841a84
Auto merge of #15184 - HKalbasi:mir, r=HKalbasi
bors Jun 30, 2023
bb85a98
Bump chalk
HKalbasi Jun 30, 2023
46cd8b8
Auto merge of #15185 - HKalbasi:mir, r=HKalbasi
bors Jun 30, 2023
832a64e
feat: don't add panics to error jump list by default
matklad Jun 30, 2023
15a0da6
Fix overflow checking in shift operator
HKalbasi Jul 1, 2023
3d3f325
Auto merge of #15189 - HKalbasi:mir, r=HKalbasi
bors Jul 1, 2023
6f74528
Fix layout of simd types and respect align in mir interpreter
HKalbasi Jul 1, 2023
f5f0c48
Auto merge of #15194 - HKalbasi:mir, r=HKalbasi
bors Jul 1, 2023
0810827
Don't specify proc-macro-test version
davidlattimore Jul 2, 2023
9bdc9aa
Auto merge of #15195 - davidlattimore:proc-macro-test-no-version, r=H…
bors Jul 2, 2023
6086ced
Revert "Support `#[rustc_coinductive]`"
lowr Jul 2, 2023
ff485b6
Auto merge of #15199 - lowr:patch/revert-15125, r=lowr
bors Jul 2, 2023
e175595
Auto merge of #15186 - matklad:panic, r=HKalbasi
bors Jul 3, 2023
321e570
Don't diagnose builtin derives
Veykril Jul 3, 2023
8094e05
Auto merge of #15202 - Veykril:builtin-derive-diags, r=Veykril
bors Jul 3, 2023
bdc3d0f
Shuffle some proc_macro_expand query things around
Veykril Jul 3, 2023
82ef699
Auto merge of #15203 - Veykril:proc-macro-expand, r=Veykril
bors Jul 3, 2023
e520278
Add analysis-stats flag to trigger some IDE features
Veykril Jul 3, 2023
6d616a4
Auto merge of #15204 - Veykril:analysis-stats-ide, r=Veykril
bors Jul 3, 2023
691600a
Auto merge of #15181 - lowr:patch/import-map-purge-unused, r=Veykril
bors Jul 3, 2023
97748b0
Speedup line index calculation via SSE2
Veykril Jun 27, 2023
5703346
Auto merge of #15118 - alexkirsz:alexkirsz/resolve-deref-raw, r=Veykril
bors Jul 3, 2023
2d83bc5
Auto merge of #15149 - Veykril:line-index-perf, r=Veykril
bors Jul 3, 2023
28fcd1b
Split out project loading capabilities from rust-analyzer crate
Veykril Jul 3, 2023
b910189
Auto merge of #15205 - Veykril:load-cargo, r=Veykril
bors Jul 3, 2023
69cd3c3
Format let-else
Veykril Jul 3, 2023
daba334
Auto merge of #15206 - Veykril:let-else-fmt, r=Veykril
bors Jul 3, 2023
45272ef
Auto merge of #14990 - HKalbasi:diagnostic-map, r=HKalbasi
bors Jul 3, 2023
8886d70
Stronger typing for AstId and AstIdMap
Veykril Jul 4, 2023
0dd2c0d
Auto merge of #15209 - Veykril:ast-id, r=Veykril
bors Jul 4, 2023
7b36a73
internal: Remove CfgExpander
Veykril Jul 4, 2023
45d4ebc
Auto merge of #15210 - Veykril:CfgExpander, r=Veykril
bors Jul 4, 2023
9fd5f8c
Support GATs in bounds for associated types
lowr Jul 4, 2023
49b039f
Recover from missing associated items and generic const defaults
lowr Jul 4, 2023
0342311
Generate trait from impl v2
alibektas Jul 4, 2023
e219999
Auto merge of #15211 - lowr:patch/gats-in-bounds-for-assoc, r=flodiebold
bors Jul 4, 2023
bb35d8f
editor/code: Set ts' --moduleResolution=node16 option
tetsuharuohzeki Jun 27, 2023
e95644e
Auto merge of #15212 - lowr:patch/recover-from-incomplete-assoc-ty, r…
bors Jul 4, 2023
30cbba2
Add snippet insert if client supports it
alibektas Jul 5, 2023
ce0239b
Disable remove unnecessary braces diagnotics for self imports
AmrDeveloper Jul 5, 2023
8edb3e1
Minor changes
alibektas Jul 5, 2023
3fb6a3b
Remove un needed extra handling for remove self with braces
AmrDeveloper Jul 5, 2023
fe65eab
Remove un used import
AmrDeveloper Jul 5, 2023
aa91eda
Auto merge of #15152 - alibektas:14987, r=Veykril,lowr
bors Jul 5, 2023
54e8973
Cover disable diagnostic from case with invalid syntax
AmrDeveloper Jul 5, 2023
3ea31e0
Auto merge of #15216 - AmrDeveloper:stop_diagnostics_for_self, r=lowr
bors Jul 5, 2023
72a3883
editor/code: Enable `noUncheckedIndexedAccess` ts option
tetsuharuohzeki Jun 27, 2023
f708453
editor/code: Enable `noPropertyAccessFromIndexSignature` ts option
tetsuharuohzeki Jun 28, 2023
537f9b3
Auto merge of #15160 - tetsuharuohzeki:enable-noUncheckedIndexedAcces…
bors Jul 6, 2023
1829d55
Unify getter and setter assists
alibektas Jul 6, 2023
827a053
Don't show `unresolved-field` diagnostic for missing names
lowr Jul 6, 2023
db17f79
Auto merge of #15223 - lowr:patch/no-unresolved-field-for-missing, r=…
bors Jul 6, 2023
171ae2e
Fix size_of_val and support min_align_of_val
HKalbasi Jul 6, 2023
54c2ee9
Auto merge of #15219 - alibektas:15080, r=Veykril
bors Jul 6, 2023
4125fea
Auto merge of #15222 - HKalbasi:mir, r=HKalbasi
bors Jul 6, 2023
3a1054f
Replace `x` with `it`
HKalbasi Jul 6, 2023
927f941
Auto merge of #15224 - HKalbasi:mir, r=HKalbasi
bors Jul 6, 2023
d2693aa
assist : add enum to glob_import_expand
alibektas Jul 6, 2023
ebaf8c8
fix: Indent after pressing enter on a blank line
DropDemBits Jul 7, 2023
09f666b
Auto merge of #15227 - DropDemBits:indent-on-blank-line, r=lnicola
bors Jul 7, 2023
954a341
Auto merge of #15226 - alibektas:15109, r=Veykril
bors Jul 7, 2023
4a444e7
Implement recursion in mir interpreter without recursion
HKalbasi Jul 7, 2023
c5ca816
Auto merge of #15228 - HKalbasi:mir, r=HKalbasi
bors Jul 7, 2023
f0ba0db
Use debug impl in rendering const eval result
HKalbasi Jul 7, 2023
db0add1
Auto merge of #15230 - HKalbasi:mir, r=HKalbasi
bors Jul 7, 2023
4de7cbe
internal: add `add_tabstop_{before,after}_token`
DropDemBits Jun 25, 2023
c017233
add attr-related `make` functions
DropDemBits Jun 25, 2023
419f641
add `AttrsOwnerEdit::add_attr`
DropDemBits Jun 25, 2023
25088fc
Migrate `generate_derive` to mutable ast
DropDemBits Jun 25, 2023
f8b6b4c
Migrate `wrap_return_type_in_result` to mutable ast
DropDemBits Jun 25, 2023
58e2053
Migrate `generate_delegate_methods` to mutable ast
DropDemBits Jun 25, 2023
09a3bd5
Match indentation of generated delegate method
DropDemBits Jul 7, 2023
2eb5064
refactor: simplify `generate_delegate_method`
DropDemBits Jul 7, 2023
cfa15d4
implement first pass of memory layout viewer
adenine-dev Jun 19, 2023
de5e3cf
fix incorrect committed rust and run prettier
adenine-dev Jun 19, 2023
c43cfef
fix typescript return path warning
adenine-dev Jun 19, 2023
4d5c669
cleanup + docs + tests
adenine-dev Jul 8, 2023
2e515d0
fix weird rebase error
adenine-dev Jul 8, 2023
655dd18
Remind user to check $PATH after installation.
alibektas Jul 8, 2023
9200d27
Stop inserting semicolon when extracting match arm
omertuc Jul 8, 2023
2e5d431
Update docs/user/manual.adoc
alibektas Jul 8, 2023
d9c43b1
Auto merge of #15234 - alibektas:14882, r=alibektas
bors Jul 8, 2023
fdb8aa2
Auto merge of #15235 - omertuc:matchsemi, r=lowr
bors Jul 8, 2023
514bab5
Merge branch 'rust-lang:master' into master
adenine-dev Jul 8, 2023
1dd54eb
change viewMemoryLayoutParams to be textPositionParams
adenine-dev Jul 8, 2023
5fddf3e
fix: Don't panic for different/missing delimiters
DropDemBits Jul 8, 2023
8befd92
Remove old section about downloading the server from the manual
lnicola Jul 9, 2023
c26259b
Auto merge of #15241 - lnicola:manual, r=lnicola
bors Jul 9, 2023
35f2e82
Don't show `add_missing_match_arms` when not needed
DropDemBits Jul 9, 2023
aa52cbf
Support read_via_copy intrinsic
HKalbasi Jul 9, 2023
dcda13a
Auto merge of #15244 - HKalbasi:mir, r=HKalbasi
bors Jul 9, 2023
add9056
Merge branch 'rust-lang:master' into master
adenine-dev Jul 9, 2023
d0df00d
Rework view memory layout tests to use expect_test and to_strings.
adenine-dev Jul 9, 2023
5f11c9a
Auto merge of #15081 - adenine-dev:master, r=HKalbasi
bors Jul 9, 2023
42d35f8
Fix missing terminator in pattern matching of consts
HKalbasi Jul 9, 2023
ff15634
Auto merge of #15245 - HKalbasi:mir, r=HKalbasi
bors Jul 9, 2023
6ab2788
Migrate `add_missing_match_arms` to mutable ast
DropDemBits Jul 9, 2023
27444ed
Migrate `promote_local_to_const` to mutable ast
DropDemBits Jul 9, 2023
8c40fa3
Add `HasVisibilityEdit::set_visibility`
DropDemBits Jul 10, 2023
0f09a77
Fix publishing of load-cargo crate
lnicola Jul 10, 2023
9b2d4ce
Auto merge of #15249 - lnicola:load-cargo-description, r=lnicola
bors Jul 10, 2023
2f6d545
Auto merge of #15231 - DropDemBits:structured-snippet-migrate-2, r=lowr
bors Jul 10, 2023
4ff9339
Skip buildin subtrees for builtin derives
Veykril Jul 10, 2023
fd31006
editor/code: Assert types in catch in `sendRequestWithRetry()` properly
tetsuharuohzeki Jul 10, 2023
a66b7e3
editor/code: Remove unused `sendRequestWithRetry`
tetsuharuohzeki Jul 10, 2023
444bc5b
editor/code: Enable TypeScript's `--useUnknownInCatchVariables` option
tetsuharuohzeki Jul 10, 2023
6f2e8aa
Auto merge of #15252 - tetsuharuohzeki:enable-unknonw-catch, r=lnicola
bors Jul 10, 2023
d5f64f8
Infallibe ExpandDatabase::macro_def
Veykril Jul 10, 2023
f6c0909
Don't unnecessarily clone the input tt for decl macros
Veykril Jul 10, 2023
e54f663
editor/code: Add FIXME comments for TS' `--exactOptionalPropertyTypes…
tetsuharuohzeki Jul 10, 2023
785a33d
Auto merge of #15254 - tetsuharuohzeki:add-fixme-exactOptionalPropert…
bors Jul 10, 2023
ea02f4c
Auto merge of #15251 - Veykril:builtin-expand, r=Veykril
bors Jul 10, 2023
872cd30
[lsp-server] Ignore 'Content-Length' case
Jul 10, 2023
59420af
Support getrandom syscall
HKalbasi Jul 10, 2023
949ecea
Auto merge of #15258 - HKalbasi:mir, r=HKalbasi
bors Jul 10, 2023
445b4fc
editor/code: Sort the style to import types
tetsuharuohzeki Jul 10, 2023
11debaf
Migrate `fix_visibility` to mutable ast
DropDemBits Jul 10, 2023
99abcdc
format let-else in `promote_local_to_const`
DropDemBits Jul 10, 2023
cabe26c
Auto merge of #15257 - sebastiansturm:master, r=lnicola
bors Jul 11, 2023
9031f38
Enable derive feature for serde in lsp-server
Veykril Jul 11, 2023
a5f0c6b
Auto merge of #15263 - Veykril:lsp-server-serde-derive, r=Veykril
bors Jul 11, 2023
2366c16
Fix eager token mapping panics
Veykril Jul 10, 2023
75ac37f
Auto merge of #15259 - tetsuharuohzeki:sort-the-style-to-import, r=Ve…
bors Jul 11, 2023
505d506
Set .editorconfig default indent size to `4`
tetsuharuohzeki Jul 11, 2023
0312c6c
Mark test for MIR execution limit as slow test
lowr Jul 11, 2023
f9a144f
Hoist out `make::name_ref`
DropDemBits Jul 11, 2023
a9889a0
fix the rest of the nits
DropDemBits Jul 11, 2023
274e830
Add write_bytes and ctlz intrinsics
HKalbasi Jul 11, 2023
f0e2ad5
Bump semver from 5.7.1 to 5.7.2 in /editors/code
dependabot[bot] Jul 11, 2023
8f612b5
Make fields of mir::Terminator public
ChristianSchott Jul 12, 2023
a2b159d
Use a permalink to the SIMD line index code, and add a note on the Gi…
lnicola Jul 12, 2023
f45fdd9
Auto merge of #15260 - DropDemBits:structured-snippet-migrate-3, r=lowr
bors Jul 12, 2023
da02dc8
Auto merge of #15264 - rust-lang:dependabot/npm_and_yarn/editors/code…
bors Jul 12, 2023
584dca4
Auto merge of #15266 - tetsuharuohzeki:cleanup-editor-config, r=lnicola
bors Jul 12, 2023
642420f
Auto merge of #15267 - lowr:patch/exceeding-exec-limit-is-slow, r=lni…
bors Jul 12, 2023
d16d5fc
Auto merge of #15268 - HKalbasi:mir, r=HKalbasi
bors Jul 12, 2023
215b149
Auto merge of #15272 - lnicola:links, r=lnicola
bors Jul 12, 2023
6a7b905
Fix the eager token maps by re-mapping the textranges between the inp…
Veykril Jul 13, 2023
132ba2c
Auto merge of #15248 - Veykril:eager, r=Veykril
bors Jul 13, 2023
f6ae0c1
Auto merge of #15270 - ChristianSchott:patch-1, r=HKalbasi
bors Jul 13, 2023
415b527
Default to stable toolchain for metrics workflow
Veykril Jul 13, 2023
6acb989
Auto merge of #15275 - Veykril:ci-metrics, r=Veykril
bors Jul 13, 2023
143646d
editor/code: Update typescript
tetsuharuohzeki Jul 11, 2023
eed1888
editor/code: Update typescript-eslint to v6
tetsuharuohzeki Jul 11, 2023
9d06aa5
editor/code: Update prettier to v3
tetsuharuohzeki Jul 11, 2023
f7823f3
editor/code: Re-apply code format
tetsuharuohzeki Jul 11, 2023
837ded9
editor/code: Update ovsx
tetsuharuohzeki Jul 11, 2023
d534180
editor/code: Update ESLint
tetsuharuohzeki Jul 11, 2023
085b755
editor/code: Update esbuild
tetsuharuohzeki Jul 11, 2023
c7ce8ad
Auto merge of #15265 - tetsuharuohzeki:update-dependencies, r=lnicola
bors Jul 13, 2023
424da10
Bump rust-version to 1.70 and use the workspace one in xtask
lnicola Jul 14, 2023
5208bf8
implement type_name intrinsic
HKalbasi Jul 14, 2023
5055911
Give real discriminant_type to chalk
HKalbasi Jul 14, 2023
8e5f944
Auto merge of #15282 - HKalbasi:mir, r=HKalbasi
bors Jul 14, 2023
41b8b0b
Enable cfg miri in analysis
HKalbasi Jul 14, 2023
789dfd2
Auto merge of #15284 - HKalbasi:mir, r=HKalbasi
bors Jul 14, 2023
75f06ce
Handle TyAlias in projected_ty
alibektas Jul 15, 2023
f8f19c4
Change names to sth more presentable
alibektas Jul 15, 2023
996e054
Auto merge of #15288 - alibektas:15143, r=lnicola
bors Jul 15, 2023
467f5f4
Revert "Handle TyAlias in projected_ty"
lnicola Jul 16, 2023
f4b5c7c
Auto merge of #15291 - rust-lang:revert-15288-15143, r=lnicola
bors Jul 16, 2023
4fad330
Auto merge of #15280 - lnicola:bump-rust-version, r=lnicola
bors Jul 16, 2023
8f169f9
Update flags.rs
kberov Jul 16, 2023
bc0628c
Auto merge of #15292 - kberov:patch-1, r=lnicola
bors Jul 16, 2023
0e2c68d
Fix rust-analzyer ssr help message
bernardosulzbach Jul 16, 2023
ca797d2
Auto merge of #15295 - bernardosulzbach:fix-ssr-help-message, r=lnicola
bors Jul 16, 2023
832eb0d
Normalize type alias in projected_ty
HKalbasi Jul 16, 2023
d824511
Auto merge of #15297 - HKalbasi:mir, r=HKalbasi
bors Jul 16, 2023
71499fc
Merge remote-tracking branch 'upstream/master' into sync-from-rust
lnicola Jul 17, 2023
8174450
Auto merge of #15302 - lnicola:sync-from-rust, r=lnicola
bors Jul 17, 2023
17a6bb5
Support reading uncompressed proc macro metadata
bjorn3 Jul 17, 2023
37f84c1
Auto merge of #15301 - bjorn3:uncompressed_dylib_metadata, r=lnicola
bors Jul 17, 2023
d35f6c6
Merge commit '37f84c101bca43b11027f30ab0c2852f9325bc3d' into sync-fro…
lnicola Jul 17, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
13 changes: 5 additions & 8 deletions src/tools/rust-analyzer/.editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,10 @@ trim_trailing_whitespace = true
end_of_line = lf
insert_final_newline = true
indent_style = space

[*.{rs,toml}]
indent_size = 4

[*.ts]
indent_size = 4
[*.js]
indent_size = 4
[*.json]
indent_size = 4
[*.md]
indent_size = 2

[*.{yml, yaml}]
indent_size = 2
2 changes: 1 addition & 1 deletion src/tools/rust-analyzer/.github/workflows/autopublish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ jobs:
cargo workspaces rename --from project-model project_model
cargo workspaces rename --from test-utils test_utils
cargo workspaces rename --from text-edit text_edit
cargo workspaces rename ra_ap_%n
# Remove library crates from the workspaces so we don't auto-publish them as well
sed -i 's/ "lib\/\*",//' ./Cargo.toml
cargo workspaces rename ra_ap_%n
find crates/rust-analyzer -type f -name '*.rs' -exec sed -i 's/rust_analyzer/ra_ap_rust_analyzer/g' {} +
cargo workspaces publish --yes --force '*' --exact --no-git-commit --allow-dirty --skip-published custom 0.0.$(($RUN_NUMBER + 133))
145 changes: 130 additions & 15 deletions src/tools/rust-analyzer/.github/workflows/metrics.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: metrics
on:
push:
branches:
- master
branches:
- master

env:
CARGO_INCREMENTAL: 0
Expand All @@ -11,20 +11,135 @@ env:
RUSTUP_MAX_RETRIES: 10

jobs:
metrics:
setup_cargo:
if: github.repository == 'rust-lang/rust-analyzer'
runs-on: ubuntu-latest
steps:
- name: Install Rust toolchain
run: |
rustup update --no-self-update stable
rustup component add rustfmt rust-src
rustup default stable
- name: Cache cargo
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
key: ${{ runner.os }}-cargo-${{ github.sha }}

build_metrics:
runs-on: ubuntu-latest
needs: setup_cargo

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Restore cargo cache
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
key: ${{ runner.os }}-cargo-${{ github.sha }}

- name: Collect build metrics
run: cargo xtask metrics build

- name: Cache target
uses: actions/cache@v3
with:
path: target/
key: ${{ runner.os }}-target-${{ github.sha }}

- name: Upload build metrics
uses: actions/upload-artifact@v3
with:
name: build-${{ github.sha }}
path: target/build.json
if-no-files-found: error

other_metrics:
strategy:
matrix:
names: [self, ripgrep, webrender, diesel]
runs-on: ubuntu-latest
needs: [setup_cargo, build_metrics]

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Restore cargo cache
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
key: ${{ runner.os }}-cargo-${{ github.sha }}

- name: Restore target cache
uses: actions/cache@v3
with:
path: target/
key: ${{ runner.os }}-target-${{ github.sha }}

- name: Collect metrics
run: cargo xtask metrics ${{ matrix.names }}

- name: Upload metrics
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.names }}-${{ github.sha }}
path: target/${{ matrix.names }}.json
if-no-files-found: error

generate_final_metrics:
runs-on: ubuntu-latest
needs: [build_metrics, other_metrics]
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Install Rust toolchain
run: |
rustup update --no-self-update stable
rustup component add rustfmt rust-src

- name: Collect metrics
run: cargo xtask metrics
env:
METRICS_TOKEN: ${{ secrets.METRICS_TOKEN }}
- name: Checkout repository
uses: actions/checkout@v3

- name: Download build metrics
uses: actions/download-artifact@v3
with:
name: build-${{ github.sha }}

- name: Download self metrics
uses: actions/download-artifact@v3
with:
name: self-${{ github.sha }}

- name: Download ripgrep metrics
uses: actions/download-artifact@v3
with:
name: ripgrep-${{ github.sha }}

- name: Download webrender metrics
uses: actions/download-artifact@v3
with:
name: webrender-${{ github.sha }}

- name: Download diesel metrics
uses: actions/download-artifact@v3
with:
name: diesel-${{ github.sha }}

- name: Combine json
run: |
git clone --depth 1 https://[email protected]/rust-analyzer/metrics.git
jq -s ".[0] * .[1] * .[2] * .[3] * .[4]" build.json self.json ripgrep.json webrender.json diesel.json -c >> metrics/metrics.json
cd metrics
git add .
git -c user.name=Bot -c [email protected] commit --message 📈
git push origin master
env:
METRICS_TOKEN: ${{ secrets.METRICS_TOKEN }}
Loading