Skip to content

Commit

Permalink
Remove unnecessary symbols and add missing symbols
Browse files Browse the repository at this point in the history
Signed-off-by: cuishuang <imcusg@gmail.com>
  • Loading branch information
cuishuang committed Sep 9, 2024
1 parent f16a03f commit 06d1aa2
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! Compiled declarative macro expanders (`macro_rules!`` and `macro`)
//! Compiled declarative macro expanders (`macro_rules!` and `macro`)

use base_db::CrateId;
use intern::sym;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ use super::inline_call::split_refs_and_uses;
// fn foo() {
// let _: i32 = 3;
// }
// ```
pub(crate) fn inline_type_alias_uses(acc: &mut Assists, ctx: &AssistContext<'_>) -> Option<()> {
let name = ctx.find_node_at_offset::<ast::Name>()?;
let ast_alias = name.syntax().parent().and_then(ast::TypeAlias::cast)?;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ use crate::{AssistContext, AssistId, AssistKind, Assists};
// struct S {
// field: i32
// }
// ```

enum WrapUnwrapOption {
WrapDerive { derive: TextRange, attr: ast::Attr },
Expand Down
2 changes: 1 addition & 1 deletion src/tools/rust-analyzer/crates/rust-analyzer/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ mod patch_old_style;
// However, editor specific config, which the server doesn't know about, should
// be specified directly in `package.json`.
//
// To deprecate an option by replacing it with another name use `new_name | `old_name` so that we keep
// To deprecate an option by replacing it with another name use `new_name` | `old_name` so that we keep
// parsing the old name.
config_data! {
/// Configs that apply on a workspace-wide scope. There are 2 levels on which a global configuration can be configured
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,7 @@ fn ratoml_multiple_ratoml_in_single_source_root() {

// [dependencies]
// p2 = { path = "../p2" }
// #,
// "#,
// r#"
// //- /p1/src/lib.rs
// enum Value {
Expand Down

0 comments on commit 06d1aa2

Please sign in to comment.