Skip to content

Commit 2338efa

Browse files
authored
Merge pull request rust-lang#18681 from lnicola/bump-typos
minor: Bump typos
2 parents 326a2e5 + 9847e01 commit 2338efa

File tree

9 files changed

+16
-11
lines changed

9 files changed

+16
-11
lines changed

src/tools/rust-analyzer/.github/workflows/ci.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ jobs:
220220
timeout-minutes: 10
221221
env:
222222
FORCE_COLOR: 1
223-
TYPOS_VERSION: v1.18.0
223+
TYPOS_VERSION: v1.28.3
224224
steps:
225225
- name: download typos
226226
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

src/tools/rust-analyzer/.typos.toml

+6-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ extend-ignore-re = [
1616
"raison d'être",
1717
"inout",
1818
"INOUT",
19-
"optin"
19+
"optin",
20+
"=Pn",
2021
]
2122

2223
[default.extend-words]
@@ -26,8 +27,12 @@ fo = "fo"
2627
ket = "ket"
2728
makro = "makro"
2829
trivias = "trivias"
30+
thir = "thir"
31+
jod = "jod"
2932

3033
[default.extend-identifiers]
34+
anc = "anc"
3135
datas = "datas"
3236
impl_froms = "impl_froms"
3337
selfs = "selfs"
38+
taits = "taits"

src/tools/rust-analyzer/crates/hir-ty/src/tests/traits.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -4380,7 +4380,7 @@ fn test() {
43804380
fn associated_type_in_struct_expr_path() {
43814381
// FIXME: All annotation should be resolvable.
43824382
// For lines marked as unstable, see rust-lang/rust#86935.
4383-
// FIXME: Remove the comments once stablized.
4383+
// FIXME: Remove the comments once stabilized.
43844384
check_types(
43854385
r#"
43864386
trait Trait {
@@ -4416,7 +4416,7 @@ impl Trait for () {
44164416
fn associated_type_in_struct_expr_path_enum() {
44174417
// FIXME: All annotation should be resolvable.
44184418
// For lines marked as unstable, see rust-lang/rust#86935.
4419-
// FIXME: Remove the comments once stablized.
4419+
// FIXME: Remove the comments once stabilized.
44204420
check_types(
44214421
r#"
44224422
trait Trait {

src/tools/rust-analyzer/crates/ide-assists/src/handlers/extract_function.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5011,7 +5011,7 @@ fn $0fun_name(bar: &str) {
50115011
}
50125012

50135013
#[test]
5014-
fn unresolveable_types_default_to_placeholder() {
5014+
fn unresolvable_types_default_to_placeholder() {
50155015
check_assist(
50165016
extract_function,
50175017
r#"

src/tools/rust-analyzer/crates/ide-assists/src/handlers/generate_function.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2055,7 +2055,7 @@ fn bar(closure: impl Fn(i64) -> i64) {
20552055
}
20562056

20572057
#[test]
2058-
fn unresolveable_types_default_to_placeholder() {
2058+
fn unresolvable_types_default_to_placeholder() {
20592059
check_assist(
20602060
generate_function,
20612061
r"

src/tools/rust-analyzer/crates/ide-assists/src/handlers/move_guard.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ pub(crate) fn move_guard_to_arm_body(acc: &mut Assists, ctx: &AssistContext<'_>)
3636
let match_arm = ctx.find_node_at_offset::<MatchArm>()?;
3737
let guard = match_arm.guard()?;
3838
if ctx.offset() > guard.syntax().text_range().end() {
39-
cov_mark::hit!(move_guard_unapplicable_in_arm_body);
39+
cov_mark::hit!(move_guard_inapplicable_in_arm_body);
4040
return None;
4141
}
4242
let space_before_guard = guard.syntax().prev_sibling_or_token();
@@ -219,7 +219,7 @@ mod tests {
219219

220220
#[test]
221221
fn move_guard_to_arm_body_range() {
222-
cov_mark::check!(move_guard_unapplicable_in_arm_body);
222+
cov_mark::check!(move_guard_inapplicable_in_arm_body);
223223
check_assist_not_applicable(
224224
move_guard_to_arm_body,
225225
r#"

src/tools/rust-analyzer/crates/ide-assists/src/handlers/replace_if_let_with_match.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ mod tests {
360360
use crate::tests::{check_assist, check_assist_not_applicable, check_assist_target};
361361

362362
#[test]
363-
fn test_if_let_with_match_unapplicable_for_simple_ifs() {
363+
fn test_if_let_with_match_inapplicable_for_simple_ifs() {
364364
check_assist_not_applicable(
365365
replace_if_let_with_match,
366366
r#"

src/tools/rust-analyzer/crates/ide-assists/src/handlers/toggle_async_sugar.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ pub(crate) fn desugar_async_into_impl_future(
127127

128128
let rparen = function.param_list()?.r_paren_token()?;
129129
let return_type = match function.ret_type() {
130-
// unable to get a `ty` makes the action unapplicable
130+
// unable to get a `ty` makes the action inapplicable
131131
Some(ret_type) => Some(ret_type.ty()?),
132132
// No type means `-> ()`
133133
None => None,

src/tools/rust-analyzer/crates/ide-db/src/path_transform.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ impl<'a> PathTransform<'a> {
184184
if let Some(expr) = v.expr() {
185185
// FIXME: expressions in curly brackets can cause ambiguity after insertion
186186
// (e.g. `N * 2` -> `{1 + 1} * 2`; it's unclear whether `{1 + 1}`
187-
// is a standalone statement or a part of another expresson)
187+
// is a standalone statement or a part of another expression)
188188
// and sometimes require slight modifications; see
189189
// https://doc.rust-lang.org/reference/statements.html#expression-statements
190190
// (default values in curly brackets can cause the same problem)

0 commit comments

Comments
 (0)