Skip to content

Commit d6f9e88

Browse files
committed
Remove unintentional changes
1 parent dc32f75 commit d6f9e88

File tree

6 files changed

+13
-16
lines changed

6 files changed

+13
-16
lines changed

Cargo.lock

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/ra_hir/src/code_model.rs

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -186,17 +186,18 @@ impl ModuleDef {
186186
module.visibility_of(db, self)
187187
}
188188

189-
pub fn name(&self, db: &dyn HirDatabase) -> Option<Name> {
189+
pub fn name(self, db: &dyn HirDatabase) -> Option<Name> {
190190
match self {
191-
ModuleDef::Module(m) => m.name(db),
192-
ModuleDef::Function(m) => Some(m.name(db)),
193-
ModuleDef::Adt(m) => Some(m.name(db)),
194-
ModuleDef::EnumVariant(m) => Some(m.name(db)),
195-
ModuleDef::Const(m) => m.name(db),
196-
ModuleDef::Static(m) => m.name(db),
197-
ModuleDef::Trait(m) => Some(m.name(db)),
198-
ModuleDef::TypeAlias(m) => Some(m.name(db)),
199-
ModuleDef::BuiltinType(m) => Some(m.as_name()),
191+
ModuleDef::Adt(it) => Some(it.name(db)),
192+
ModuleDef::Trait(it) => Some(it.name(db)),
193+
ModuleDef::Function(it) => Some(it.name(db)),
194+
ModuleDef::EnumVariant(it) => Some(it.name(db)),
195+
ModuleDef::TypeAlias(it) => Some(it.name(db)),
196+
ModuleDef::Module(it) => it.name(db),
197+
ModuleDef::Const(it) => it.name(db),
198+
ModuleDef::Static(it) => it.name(db),
199+
200+
ModuleDef::BuiltinType(it) => Some(it.as_name()),
200201
}
201202
}
202203

crates/ra_ide/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ ra_prof = { path = "../ra_prof" }
3535
test_utils = { path = "../test_utils" }
3636
ra_assists = { path = "../ra_assists" }
3737
ra_ssr = { path = "../ra_ssr" }
38-
ra_project_model = { path = "../ra_project_model" }
3938
ra_hir_def = { path = "../ra_hir_def" }
4039
ra_tt = { path = "../ra_tt" }
4140
ra_parser = { path = "../ra_parser" }

crates/ra_proc_macro_srv/src/tests/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ use test_utils::assert_eq_text;
66
use utils::*;
77

88
#[test]
9-
#[ignore]
109
fn test_derive_serialize_proc_macro() {
1110
assert_expand(
1211
"serde_derive",
@@ -18,7 +17,6 @@ fn test_derive_serialize_proc_macro() {
1817
}
1918

2019
#[test]
21-
#[ignore]
2220
fn test_derive_serialize_proc_macro_failed() {
2321
assert_expand(
2422
"serde_derive",

crates/ra_syntax/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ use crate::syntax_node::GreenNode;
4747
pub use crate::{
4848
algo::InsertPosition,
4949
ast::{AstNode, AstToken},
50-
parsing::{lex_single_syntax_kind, lex_single_valid_syntax_kind, parse_text, tokenize, Token},
50+
parsing::{lex_single_syntax_kind, lex_single_valid_syntax_kind, tokenize, Token},
5151
ptr::{AstPtr, SyntaxNodePtr},
5252
syntax_error::SyntaxError,
5353
syntax_node::{

crates/ra_syntax/src/parsing.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ pub use lexer::*;
1515
pub(crate) use self::reparsing::incremental_reparse;
1616
use ra_parser::SyntaxKind;
1717

18-
pub fn parse_text(text: &str) -> (GreenNode, Vec<SyntaxError>) {
18+
pub(crate) fn parse_text(text: &str) -> (GreenNode, Vec<SyntaxError>) {
1919
let (tokens, lexer_errors) = tokenize(&text);
2020

2121
let mut token_source = TextTokenSource::new(text, &tokens);

0 commit comments

Comments
 (0)