Bump typos

This commit is contained in:
Laurențiu Nicola 2024-12-13 11:45:44 +02:00
parent 405f01ac3f
commit dc978a976f
9 changed files with 16 additions and 11 deletions

View file

@ -220,7 +220,7 @@ jobs:
timeout-minutes: 10 timeout-minutes: 10
env: env:
FORCE_COLOR: 1 FORCE_COLOR: 1
TYPOS_VERSION: v1.18.0 TYPOS_VERSION: v1.28.3
steps: steps:
- name: download typos - name: download typos
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 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

View file

@ -16,7 +16,8 @@ extend-ignore-re = [
"raison d'être", "raison d'être",
"inout", "inout",
"INOUT", "INOUT",
"optin" "optin",
"=Pn",
] ]
[default.extend-words] [default.extend-words]
@ -26,8 +27,12 @@ fo = "fo"
ket = "ket" ket = "ket"
makro = "makro" makro = "makro"
trivias = "trivias" trivias = "trivias"
thir = "thir"
jod = "jod"
[default.extend-identifiers] [default.extend-identifiers]
anc = "anc"
datas = "datas" datas = "datas"
impl_froms = "impl_froms" impl_froms = "impl_froms"
selfs = "selfs" selfs = "selfs"
taits = "taits"

View file

@ -4380,7 +4380,7 @@ fn test() {
fn associated_type_in_struct_expr_path() { fn associated_type_in_struct_expr_path() {
// FIXME: All annotation should be resolvable. // FIXME: All annotation should be resolvable.
// For lines marked as unstable, see rust-lang/rust#86935. // For lines marked as unstable, see rust-lang/rust#86935.
// FIXME: Remove the comments once stablized. // FIXME: Remove the comments once stabilized.
check_types( check_types(
r#" r#"
trait Trait { trait Trait {
@ -4416,7 +4416,7 @@ impl Trait for () {
fn associated_type_in_struct_expr_path_enum() { fn associated_type_in_struct_expr_path_enum() {
// FIXME: All annotation should be resolvable. // FIXME: All annotation should be resolvable.
// For lines marked as unstable, see rust-lang/rust#86935. // For lines marked as unstable, see rust-lang/rust#86935.
// FIXME: Remove the comments once stablized. // FIXME: Remove the comments once stabilized.
check_types( check_types(
r#" r#"
trait Trait { trait Trait {

View file

@ -5011,7 +5011,7 @@ fn $0fun_name(bar: &str) {
} }
#[test] #[test]
fn unresolveable_types_default_to_placeholder() { fn unresolvable_types_default_to_placeholder() {
check_assist( check_assist(
extract_function, extract_function,
r#" r#"

View file

@ -2055,7 +2055,7 @@ fn bar(closure: impl Fn(i64) -> i64) {
} }
#[test] #[test]
fn unresolveable_types_default_to_placeholder() { fn unresolvable_types_default_to_placeholder() {
check_assist( check_assist(
generate_function, generate_function,
r" r"

View file

@ -36,7 +36,7 @@ pub(crate) fn move_guard_to_arm_body(acc: &mut Assists, ctx: &AssistContext<'_>)
let match_arm = ctx.find_node_at_offset::<MatchArm>()?; let match_arm = ctx.find_node_at_offset::<MatchArm>()?;
let guard = match_arm.guard()?; let guard = match_arm.guard()?;
if ctx.offset() > guard.syntax().text_range().end() { if ctx.offset() > guard.syntax().text_range().end() {
cov_mark::hit!(move_guard_unapplicable_in_arm_body); cov_mark::hit!(move_guard_inapplicable_in_arm_body);
return None; return None;
} }
let space_before_guard = guard.syntax().prev_sibling_or_token(); let space_before_guard = guard.syntax().prev_sibling_or_token();
@ -219,7 +219,7 @@ mod tests {
#[test] #[test]
fn move_guard_to_arm_body_range() { fn move_guard_to_arm_body_range() {
cov_mark::check!(move_guard_unapplicable_in_arm_body); cov_mark::check!(move_guard_inapplicable_in_arm_body);
check_assist_not_applicable( check_assist_not_applicable(
move_guard_to_arm_body, move_guard_to_arm_body,
r#" r#"

View file

@ -360,7 +360,7 @@ mod tests {
use crate::tests::{check_assist, check_assist_not_applicable, check_assist_target}; use crate::tests::{check_assist, check_assist_not_applicable, check_assist_target};
#[test] #[test]
fn test_if_let_with_match_unapplicable_for_simple_ifs() { fn test_if_let_with_match_inapplicable_for_simple_ifs() {
check_assist_not_applicable( check_assist_not_applicable(
replace_if_let_with_match, replace_if_let_with_match,
r#" r#"

View file

@ -127,7 +127,7 @@ pub(crate) fn desugar_async_into_impl_future(
let rparen = function.param_list()?.r_paren_token()?; let rparen = function.param_list()?.r_paren_token()?;
let return_type = match function.ret_type() { let return_type = match function.ret_type() {
// unable to get a `ty` makes the action unapplicable // unable to get a `ty` makes the action inapplicable
Some(ret_type) => Some(ret_type.ty()?), Some(ret_type) => Some(ret_type.ty()?),
// No type means `-> ()` // No type means `-> ()`
None => None, None => None,

View file

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