mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
Bump typos
This commit is contained in:
parent
405f01ac3f
commit
dc978a976f
9 changed files with 16 additions and 11 deletions
|
@ -4380,7 +4380,7 @@ fn test() {
|
|||
fn associated_type_in_struct_expr_path() {
|
||||
// FIXME: All annotation should be resolvable.
|
||||
// For lines marked as unstable, see rust-lang/rust#86935.
|
||||
// FIXME: Remove the comments once stablized.
|
||||
// FIXME: Remove the comments once stabilized.
|
||||
check_types(
|
||||
r#"
|
||||
trait Trait {
|
||||
|
@ -4416,7 +4416,7 @@ impl Trait for () {
|
|||
fn associated_type_in_struct_expr_path_enum() {
|
||||
// FIXME: All annotation should be resolvable.
|
||||
// For lines marked as unstable, see rust-lang/rust#86935.
|
||||
// FIXME: Remove the comments once stablized.
|
||||
// FIXME: Remove the comments once stabilized.
|
||||
check_types(
|
||||
r#"
|
||||
trait Trait {
|
||||
|
|
|
@ -5011,7 +5011,7 @@ fn $0fun_name(bar: &str) {
|
|||
}
|
||||
|
||||
#[test]
|
||||
fn unresolveable_types_default_to_placeholder() {
|
||||
fn unresolvable_types_default_to_placeholder() {
|
||||
check_assist(
|
||||
extract_function,
|
||||
r#"
|
||||
|
|
|
@ -2055,7 +2055,7 @@ fn bar(closure: impl Fn(i64) -> i64) {
|
|||
}
|
||||
|
||||
#[test]
|
||||
fn unresolveable_types_default_to_placeholder() {
|
||||
fn unresolvable_types_default_to_placeholder() {
|
||||
check_assist(
|
||||
generate_function,
|
||||
r"
|
||||
|
|
|
@ -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 guard = match_arm.guard()?;
|
||||
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;
|
||||
}
|
||||
let space_before_guard = guard.syntax().prev_sibling_or_token();
|
||||
|
@ -219,7 +219,7 @@ mod tests {
|
|||
|
||||
#[test]
|
||||
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(
|
||||
move_guard_to_arm_body,
|
||||
r#"
|
||||
|
|
|
@ -360,7 +360,7 @@ mod tests {
|
|||
use crate::tests::{check_assist, check_assist_not_applicable, check_assist_target};
|
||||
|
||||
#[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(
|
||||
replace_if_let_with_match,
|
||||
r#"
|
||||
|
|
|
@ -127,7 +127,7 @@ pub(crate) fn desugar_async_into_impl_future(
|
|||
|
||||
let rparen = function.param_list()?.r_paren_token()?;
|
||||
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()?),
|
||||
// No type means `-> ()`
|
||||
None => None,
|
||||
|
|
|
@ -184,7 +184,7 @@ impl<'a> PathTransform<'a> {
|
|||
if let Some(expr) = v.expr() {
|
||||
// FIXME: expressions in curly brackets can cause ambiguity after insertion
|
||||
// (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
|
||||
// https://doc.rust-lang.org/reference/statements.html#expression-statements
|
||||
// (default values in curly brackets can cause the same problem)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue