Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-expand/src/db.rs')
| -rw-r--r-- | crates/hir-expand/src/db.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/hir-expand/src/db.rs b/crates/hir-expand/src/db.rs index 2435a0c310..895cf20224 100644 --- a/crates/hir-expand/src/db.rs +++ b/crates/hir-expand/src/db.rs @@ -129,10 +129,11 @@ pub trait ExpandDatabase: SourceDatabase { /// user wrote in the file that defines the proc-macro. fn proc_macro_span(&self, fun: AstId<ast::Fn>) -> Span; /// Firewall query that returns the errors from the `parse_macro_expansion` query. + // FIXME: Option<Arc<...>> fn parse_macro_expansion_error( &self, macro_call: MacroCallId, - ) -> ExpandResult<Box<[SyntaxError]>>; + ) -> ExpandResult<Arc<[SyntaxError]>>; } /// This expands the given macro call, but with different arguments. This is @@ -357,9 +358,8 @@ fn parse_macro_expansion( fn parse_macro_expansion_error( db: &dyn ExpandDatabase, macro_call_id: MacroCallId, -) -> ExpandResult<Box<[SyntaxError]>> { - db.parse_macro_expansion(MacroFileId { macro_call_id }) - .map(|it| it.0.errors().into_boxed_slice()) +) -> ExpandResult<Arc<[SyntaxError]>> { + db.parse_macro_expansion(MacroFileId { macro_call_id }).map(|it| it.0.errors().into()) } pub(crate) fn parse_with_map( |