mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
Fix some typos
This commit is contained in:
parent
6f84bdd06e
commit
1075978bed
3 changed files with 2 additions and 3 deletions
|
@ -1348,7 +1348,6 @@ fn proc_attr(a: TokenStream, b: TokenStream) -> TokenStream { a }
|
||||||
.keys()
|
.keys()
|
||||||
.map(|name| name.display(&db).to_string())
|
.map(|name| name.display(&db).to_string())
|
||||||
.sorted()
|
.sorted()
|
||||||
.sorted()
|
|
||||||
.join("\n");
|
.join("\n");
|
||||||
|
|
||||||
expect![[r#"
|
expect![[r#"
|
||||||
|
|
|
@ -54,7 +54,8 @@ pub(super) fn hints(
|
||||||
(format!("mod {}", module.name()?), module.name().map(name))
|
(format!("mod {}", module.name()?), module.name().map(name))
|
||||||
} else if let Some(label) = ast::Label::cast(node.clone()) {
|
} else if let Some(label) = ast::Label::cast(node.clone()) {
|
||||||
// in this case, `ast::Label` could be seen as a part of `ast::BlockExpr`
|
// in this case, `ast::Label` could be seen as a part of `ast::BlockExpr`
|
||||||
// the actual number of lines in this case should be the line count of the parent BlockExpr, which the `min_lines` config care about
|
// the actual number of lines in this case should be the line count of the parent BlockExpr,
|
||||||
|
// which the `min_lines` config cares about
|
||||||
node = node.parent()?;
|
node = node.parent()?;
|
||||||
let block = label.syntax().parent().and_then(ast::BlockExpr::cast)?;
|
let block = label.syntax().parent().and_then(ast::BlockExpr::cast)?;
|
||||||
closing_token = block.stmt_list()?.r_curly_token()?;
|
closing_token = block.stmt_list()?.r_curly_token()?;
|
||||||
|
|
|
@ -292,7 +292,6 @@ fn run_flycheck(state: &mut GlobalState, vfs_path: VfsPath) -> bool {
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.flat_map(|id| world.analysis.transitive_rev_deps(id))
|
.flat_map(|id| world.analysis.transitive_rev_deps(id))
|
||||||
.flatten()
|
.flatten()
|
||||||
.sorted()
|
|
||||||
.unique()
|
.unique()
|
||||||
.collect();
|
.collect();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue