Skip to content

Commit 51da96d

Browse files
Veykrillnicola
authored andcommitted
fix: Disable postcard use temporarily
1 parent 1b6e21e commit 51da96d

File tree

1 file changed

+3
-1
lines changed
  • src/tools/rust-analyzer/crates/proc-macro-api/src

1 file changed

+3
-1
lines changed

‎src/tools/rust-analyzer/crates/proc-macro-api/src/process.rs‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ impl ProcMacroServerProcess {
5858
if v.pre.as_str() == "nightly" { *v > VERSION } else { *v >= VERSION }
5959
});
6060

61-
let formats: &[_] = if has_working_format_flag {
61+
let formats: &[_] = if std::env::var_os("RUST_ANALYZER_USE_POSTCARD").is_some()
62+
&& has_working_format_flag
63+
{
6264
&[
6365
(Some("postcard-legacy"), Protocol::LegacyPostcard { mode: SpanMode::Id }),
6466
(Some("json-legacy"), Protocol::LegacyJson { mode: SpanMode::Id }),

0 commit comments

Comments
 (0)