mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 06:41:48 +00:00
Fix proc macro token mapping
This commit is contained in:
parent
d46fce88f5
commit
3e6ffa5124
2 changed files with 18 additions and 8 deletions
|
@ -521,7 +521,7 @@ impl AsMacroCall for AstIdWithPath<ast::MacroCall> {
|
|||
error_sink: &mut dyn FnMut(mbe::ExpandError),
|
||||
) -> Option<MacroCallId> {
|
||||
let def: MacroDefId = resolver(self.path.clone()).or_else(|| {
|
||||
error_sink(mbe::ExpandError::Other("could not resolve macro".into()));
|
||||
error_sink(mbe::ExpandError::Other(format!("could not resolve macro `{}`", self.path)));
|
||||
None
|
||||
})?;
|
||||
|
||||
|
@ -556,7 +556,7 @@ impl AsMacroCall for AstIdWithPath<ast::Item> {
|
|||
error_sink: &mut dyn FnMut(mbe::ExpandError),
|
||||
) -> Option<MacroCallId> {
|
||||
let def: MacroDefId = resolver(self.path.clone()).or_else(|| {
|
||||
error_sink(mbe::ExpandError::Other("could not resolve macro".into()));
|
||||
error_sink(mbe::ExpandError::Other(format!("could not resolve macro `{}`", self.path)));
|
||||
None
|
||||
})?;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue