mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
Improve error message when the proc-macro server unexpectedly exits
This commit is contained in:
parent
e6fd485683
commit
c6709ffe05
4 changed files with 81 additions and 39 deletions
|
@ -204,6 +204,8 @@ fn expand_ra_span(
|
|||
let macro_body = macro_body.to_subtree_resolved(CURRENT_API_VERSION, &span_data_table);
|
||||
let attributes =
|
||||
attributes.map(|it| it.to_subtree_resolved(CURRENT_API_VERSION, &span_data_table));
|
||||
// Note, we spawn a new thread here so that thread locals allocation don't accumulate (this
|
||||
// includes the proc-macro symbol interner)
|
||||
let result = thread::scope(|s| {
|
||||
let thread = thread::Builder::new()
|
||||
.stack_size(EXPANDER_STACK_SIZE)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue