Skip to content

Commit b8a3180

Browse files
committed
Merge commit '0113bc9388b480fa42c632f57f4f0f7af5813ec1' into sync-from-ra
1 parent f43cea0 commit b8a3180

File tree

197 files changed

+3103
-2004
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

197 files changed

+3103
-2004
lines changed

.github/workflows/ci.yaml

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ jobs:
9090
- name: Switch to stable toolchain
9191
run: |
9292
rustup update --no-self-update stable
93-
rustup component add --toolchain stable rust-src
93+
rustup component add --toolchain stable rust-src clippy
9494
rustup default stable
9595
9696
- name: Run analysis-stats on rust-analyzer
@@ -103,6 +103,10 @@ jobs:
103103
RUSTC_BOOTSTRAP: 1
104104
run: target/${{ matrix.target }}/debug/rust-analyzer analysis-stats --with-deps $(rustc --print sysroot)/lib/rustlib/src/rust/library/std
105105

106+
- name: clippy
107+
if: matrix.os == 'ubuntu-latest'
108+
run: cargo clippy --all-targets
109+
106110
# Weird targets to catch non-portable code
107111
rust-cross:
108112
if: github.repository == 'rust-lang/rust-analyzer'
@@ -203,11 +207,25 @@ jobs:
203207
working-directory: ./editors/code
204208
if: needs.changes.outputs.typescript == 'true'
205209

210+
typo-check:
211+
name: Typo Check
212+
runs-on: ubuntu-latest
213+
timeout-minutes: 10
214+
env:
215+
FORCE_COLOR: 1
216+
TYPOS_VERSION: v1.18.0
217+
steps:
218+
- name: download typos
219+
run: curl -LsSf https://github.com/crate-ci/typos/releases/download/$TYPOS_VERSION/typos-$TYPOS_VERSION-x86_64-unknown-linux-musl.tar.gz | tar zxf - -C ${CARGO_HOME:-~/.cargo}/bin
220+
221+
- name: check for typos
222+
run: typos
223+
206224
end-success:
207225
name: bors build finished
208226
if: github.event.pusher.name == 'bors' && success()
209227
runs-on: ubuntu-latest
210-
needs: [rust, rust-cross, typescript]
228+
needs: [rust, rust-cross, typescript, typo-check]
211229
steps:
212230
- name: Mark the job as successful
213231
run: exit 0
@@ -216,7 +234,7 @@ jobs:
216234
name: bors build finished
217235
if: github.event.pusher.name == 'bors' && !success()
218236
runs-on: ubuntu-latest
219-
needs: [rust, rust-cross, typescript]
237+
needs: [rust, rust-cross, typescript, typo-check]
220238
steps:
221239
- name: Mark the job as a failure
222240
run: exit 1

.github/workflows/release.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ jobs:
4343
- os: ubuntu-20.04
4444
target: arm-unknown-linux-gnueabihf
4545
code-target: linux-armhf
46-
- os: macos-11
46+
- os: macos-12
4747
target: x86_64-apple-darwin
4848
code-target: darwin-x64
49-
- os: macos-11
49+
- os: macos-12
5050
target: aarch64-apple-darwin
5151
code-target: darwin-arm64
5252

.typos.toml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
[default.extend-identifiers]
2+
AnserStyle = "AnserStyle"
3+
datas = "datas"
4+
impl_froms = "impl_froms"
5+
selfs = "selfs"
6+
7+
[default.extend-words]
8+
anser = "anser"
9+
ba = "ba"
10+
fo = "fo"
11+
ket = "ket"
12+
makro = "makro"
13+
raison = "raison"
14+
trivias = "trivias"
15+
TOOD = "TOOD"
16+
17+
[default]
18+
extend-ignore-re = [
19+
# ignore string which contains $x (x is a num), which use widely in test
20+
".*\\$\\d.*",
21+
# ignore generated content like `boxed....nner()`, `Defaul...efault`
22+
"\\w*\\.{3,4}\\w*",
23+
]
24+
25+
[files]
26+
extend-exclude = [
27+
"*.json",
28+
"*.rast",
29+
"crates/parser/test_data/lexer/err/*",
30+
"bench_data/*",
31+
]

Cargo.lock

Lines changed: 53 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 8 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,10 @@ tt = { path = "./crates/tt", version = "0.0.0" }
7979
vfs-notify = { path = "./crates/vfs-notify", version = "0.0.0" }
8080
vfs = { path = "./crates/vfs", version = "0.0.0" }
8181

82-
ra-ap-rustc_lexer = { version = "0.33.0", default-features = false }
83-
ra-ap-rustc_parse_format = { version = "0.33.0", default-features = false }
84-
ra-ap-rustc_index = { version = "0.33.0", default-features = false }
85-
ra-ap-rustc_abi = { version = "0.33.0", default-features = false }
82+
ra-ap-rustc_lexer = { version = "0.35.0", default-features = false }
83+
ra-ap-rustc_parse_format = { version = "0.35.0", default-features = false }
84+
ra-ap-rustc_index = { version = "0.35.0", default-features = false }
85+
ra-ap-rustc_abi = { version = "0.35.0", default-features = false }
8686
ra-ap-rustc_pattern_analysis = { version = "0.33.0", default-features = false }
8787

8888
# local crates that aren't published to crates.io. These should not have versions.
@@ -113,7 +113,7 @@ itertools = "0.12.0"
113113
libc = "0.2.150"
114114
nohash-hasher = "0.2.0"
115115
rayon = "1.8.0"
116-
rust-analyzer-salsa = "0.17.0-pre.5"
116+
rust-analyzer-salsa = "0.17.0-pre.6"
117117
rustc-hash = "1.1.0"
118118
semver = "1.0.14"
119119
serde = { version = "1.0.192", features = ["derive"] }
@@ -128,9 +128,9 @@ text-size = "1.1.1"
128128
tracing = "0.1.40"
129129
tracing-tree = "0.3.0"
130130
tracing-subscriber = { version = "0.3.18", default-features = false, features = [
131-
"registry",
132-
"fmt",
133-
"tracing-log",
131+
"registry",
132+
"fmt",
133+
"tracing-log",
134134
] }
135135
triomphe = { version = "0.1.10", default-features = false, features = ["std"] }
136136
xshell = "0.2.5"
@@ -167,29 +167,14 @@ new_ret_no_self = "allow"
167167

168168
## Following lints should be tackled at some point
169169
borrowed_box = "allow"
170-
borrow_deref_ref = "allow"
171-
derivable_impls = "allow"
172170
derived_hash_with_manual_eq = "allow"
173-
field_reassign_with_default = "allow"
174171
forget_non_drop = "allow"
175-
format_collect = "allow"
176-
large_enum_variant = "allow"
177172
needless_doctest_main = "allow"
178-
new_without_default = "allow"
179173
non_canonical_clone_impl = "allow"
180174
non_canonical_partial_ord_impl = "allow"
181175
self_named_constructors = "allow"
182-
skip_while_next = "allow"
183176
too_many_arguments = "allow"
184-
toplevel_ref_arg = "allow"
185177
type_complexity = "allow"
186-
unnecessary_cast = "allow"
187-
unnecessary_filter_map = "allow"
188-
unnecessary_lazy_evaluations = "allow"
189-
unnecessary_mut_passed = "allow"
190-
useless_conversion = "allow"
191-
useless_format = "allow"
192-
wildcard_in_or_patterns = "allow"
193178
wrong_self_convention = "allow"
194179

195180
## warn at following lints

0 commit comments

Comments
 (0)