diff options
Diffstat (limited to 'crates/ra_hir_expand/src/builtin_derive.rs')
-rw-r--r-- | crates/ra_hir_expand/src/builtin_derive.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_hir_expand/src/builtin_derive.rs b/crates/ra_hir_expand/src/builtin_derive.rs index 78fa9b09a..574637602 100644 --- a/crates/ra_hir_expand/src/builtin_derive.rs +++ b/crates/ra_hir_expand/src/builtin_derive.rs | |||
@@ -208,7 +208,7 @@ fn partial_ord_expand( | |||
208 | #[cfg(test)] | 208 | #[cfg(test)] |
209 | mod tests { | 209 | mod tests { |
210 | use super::*; | 210 | use super::*; |
211 | use crate::{test_db::TestDB, AstId, MacroCallKind, MacroCallLoc, MacroFileKind}; | 211 | use crate::{test_db::TestDB, AstId, MacroCallKind, MacroCallLoc}; |
212 | use ra_db::{fixture::WithFixture, SourceDatabase}; | 212 | use ra_db::{fixture::WithFixture, SourceDatabase}; |
213 | 213 | ||
214 | fn expand_builtin_derive(s: &str, expander: BuiltinDeriveExpander) -> String { | 214 | fn expand_builtin_derive(s: &str, expander: BuiltinDeriveExpander) -> String { |
@@ -229,7 +229,7 @@ mod tests { | |||
229 | }; | 229 | }; |
230 | 230 | ||
231 | let id = db.intern_macro(loc); | 231 | let id = db.intern_macro(loc); |
232 | let parsed = db.parse_or_expand(id.as_file(MacroFileKind::Items)).unwrap(); | 232 | let parsed = db.parse_or_expand(id.as_file()).unwrap(); |
233 | 233 | ||
234 | // FIXME text() for syntax nodes parsed from token tree looks weird | 234 | // FIXME text() for syntax nodes parsed from token tree looks weird |
235 | // because there's no whitespace, see below | 235 | // because there's no whitespace, see below |