mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
Auto merge of #149799 - lnicola:backport-disable-postcard, r=lnicola
[beta] Backport rust-analyzer proc macro server "disable postcard use temporarily"
This commit is contained in:
@@ -58,7 +58,9 @@ pub(crate) fn run<'a>(
|
||||
if v.pre.as_str() == "nightly" { *v > VERSION } else { *v >= VERSION }
|
||||
});
|
||||
|
||||
let formats: &[_] = if has_working_format_flag {
|
||||
let formats: &[_] = if std::env::var_os("RUST_ANALYZER_USE_POSTCARD").is_some()
|
||||
&& has_working_format_flag
|
||||
{
|
||||
&[
|
||||
(Some("postcard-legacy"), Protocol::LegacyPostcard { mode: SpanMode::Id }),
|
||||
(Some("json-legacy"), Protocol::LegacyJson { mode: SpanMode::Id }),
|
||||
|
||||
Reference in New Issue
Block a user