Auto merge of #18078 - cuishuang:master, r=Veykril
Remove unnecessary symbols and add missing symbols
This commit is contained in:
commit
b8e8f1c310
@ -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 base_db::CrateId;
|
||||||
use intern::sym;
|
use intern::sym;
|
||||||
|
@ -43,6 +43,7 @@
|
|||||||
// fn foo() {
|
// fn foo() {
|
||||||
// let _: i32 = 3;
|
// let _: i32 = 3;
|
||||||
// }
|
// }
|
||||||
|
// ```
|
||||||
pub(crate) fn inline_type_alias_uses(acc: &mut Assists, ctx: &AssistContext<'_>) -> Option<()> {
|
pub(crate) fn inline_type_alias_uses(acc: &mut Assists, ctx: &AssistContext<'_>) -> Option<()> {
|
||||||
let name = ctx.find_node_at_offset::<ast::Name>()?;
|
let name = ctx.find_node_at_offset::<ast::Name>()?;
|
||||||
let ast_alias = name.syntax().parent().and_then(ast::TypeAlias::cast)?;
|
let ast_alias = name.syntax().parent().and_then(ast::TypeAlias::cast)?;
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
// struct S {
|
// struct S {
|
||||||
// field: i32
|
// field: i32
|
||||||
// }
|
// }
|
||||||
|
// ```
|
||||||
|
|
||||||
enum WrapUnwrapOption {
|
enum WrapUnwrapOption {
|
||||||
WrapDerive { derive: TextRange, attr: ast::Attr },
|
WrapDerive { derive: TextRange, attr: ast::Attr },
|
||||||
|
@ -60,7 +60,7 @@
|
|||||||
// However, editor specific config, which the server doesn't know about, should
|
// However, editor specific config, which the server doesn't know about, should
|
||||||
// be specified directly in `package.json`.
|
// 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.
|
// parsing the old name.
|
||||||
config_data! {
|
config_data! {
|
||||||
/// Configs that apply on a workspace-wide scope. There are 2 levels on which a global configuration can be configured
|
/// Configs that apply on a workspace-wide scope. There are 2 levels on which a global configuration can be configured
|
||||||
|
@ -844,7 +844,7 @@ enum Value {
|
|||||||
|
|
||||||
// [dependencies]
|
// [dependencies]
|
||||||
// p2 = { path = "../p2" }
|
// p2 = { path = "../p2" }
|
||||||
// #,
|
// "#,
|
||||||
// r#"
|
// r#"
|
||||||
// //- /p1/src/lib.rs
|
// //- /p1/src/lib.rs
|
||||||
// enum Value {
|
// enum Value {
|
||||||
|
Loading…
Reference in New Issue
Block a user