From 26e999daa5fd8cc792e8f3b2a492d99ceac2cfb3 Mon Sep 17 00:00:00 2001 From: Pietro Albini Date: Tue, 5 Apr 2022 22:56:43 +0200 Subject: [PATCH 1/2] fix breakage caused by the introduction of diagnostic translations --- rust-toolchain.toml | 2 +- src/racer/ast.rs | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/rust-toolchain.toml b/rust-toolchain.toml index e753514a..4fbccc43 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,3 +1,3 @@ [toolchain] -channel = "nightly-2022-01-14" +channel = "2022-04-06" components = ["rust-src", "rustc-dev"] diff --git a/src/racer/ast.rs b/src/racer/ast.rs index 11872af4..5c9ccb21 100644 --- a/src/racer/ast.rs +++ b/src/racer/ast.rs @@ -30,6 +30,12 @@ impl Emitter for DummyEmitter { fn should_show_explain(&self) -> bool { false } + fn fluent_bundle(&self) -> Option<&Lrc> { + None + } + fn fallback_fluent_bundle(&self) -> &Lrc { + unimplemented!("diagnostic translations are unimplemented in racer"); + } } /// construct parser from string From a8cdf50874bbf2557ac596ad491481caaca13e7d Mon Sep 17 00:00:00 2001 From: Igor Matuszewski Date: Thu, 7 Apr 2022 19:08:29 +0000 Subject: [PATCH 2/2] Update rust-toolchain.toml --- rust-toolchain.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 4fbccc43..ffcacf04 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,3 +1,3 @@ [toolchain] -channel = "2022-04-06" +channel = "nightly-2022-04-06" components = ["rust-src", "rustc-dev"]