mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
fix: Don't print proc-macro panic backtraces in the logs
This commit is contained in:
parent
ba01ff4f88
commit
80dc20f7d8
11 changed files with 41 additions and 42 deletions
|
@ -160,7 +160,7 @@ impl Expander {
|
|||
.inner
|
||||
.proc_macros
|
||||
.expand(macro_name, macro_body, attributes, def_site, call_site, mixed_site);
|
||||
result.map_err(|e| e.as_str().unwrap_or_else(|| "<unknown error>".to_string()))
|
||||
result.map_err(|e| e.into_string().unwrap_or_default())
|
||||
}
|
||||
|
||||
pub fn list_macros(&self) -> Vec<(String, ProcMacroKind)> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue