Skip to content

Commit

Permalink
Auto merge of rust-lang#12456 - lnicola:thread-names, r=lnicola
Browse files Browse the repository at this point in the history
internal: Shorten main thread names

Linux effectively has a 15 byte limit, which resulted in `rust-analyzer s` and `rust-analyzer p`. That's still unambiguous, but probably not obvious.
  • Loading branch information
bors committed Jun 3, 2022
2 parents 88024c7 + 7066b8e commit d1968a3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions crates/rust-analyzer/src/bin/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,10 @@ fn try_main() -> Result<()> {
println!("{}", flags::RustAnalyzer::HELP);
return Ok(());
}
with_extra_thread("rust-analyzer server thread", run_server)?;
with_extra_thread("LspServer", run_server)?;
}
flags::RustAnalyzerCmd::ProcMacro(flags::ProcMacro) => {
with_extra_thread("rust-analyzer proc-macro expander", || {
proc_macro_srv::cli::run().map_err(Into::into)
})?;
with_extra_thread("MacroExpander", || proc_macro_srv::cli::run().map_err(Into::into))?;
}
flags::RustAnalyzerCmd::Parse(cmd) => cmd.run()?,
flags::RustAnalyzerCmd::Symbols(cmd) => cmd.run()?,
Expand Down

0 comments on commit d1968a3

Please sign in to comment.