Skip to content

Commit d1968a3

Browse files
committed
Auto merge of rust-lang#12456 - lnicola:thread-names, r=lnicola
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.
2 parents 88024c7 + 7066b8e commit d1968a3

File tree

1 file changed

+2
-4
lines changed
  • crates/rust-analyzer/src/bin

1 file changed

+2
-4
lines changed

crates/rust-analyzer/src/bin/main.rs

+2-4
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,10 @@ fn try_main() -> Result<()> {
7777
println!("{}", flags::RustAnalyzer::HELP);
7878
return Ok(());
7979
}
80-
with_extra_thread("rust-analyzer server thread", run_server)?;
80+
with_extra_thread("LspServer", run_server)?;
8181
}
8282
flags::RustAnalyzerCmd::ProcMacro(flags::ProcMacro) => {
83-
with_extra_thread("rust-analyzer proc-macro expander", || {
84-
proc_macro_srv::cli::run().map_err(Into::into)
85-
})?;
83+
with_extra_thread("MacroExpander", || proc_macro_srv::cli::run().map_err(Into::into))?;
8684
}
8785
flags::RustAnalyzerCmd::Parse(cmd) => cmd.run()?,
8886
flags::RustAnalyzerCmd::Symbols(cmd) => cmd.run()?,

0 commit comments

Comments
 (0)