Skip to content

Commit

Permalink
Merge pull request #1180 from pietroalbini/pa-fluent
Browse files Browse the repository at this point in the history
Fx breakage caused by the introduction of diagnostic translations
  • Loading branch information
Xanewok authored Apr 7, 2022
2 parents a3bb9c9 + a8cdf50 commit 6b56f2c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[toolchain]
channel = "nightly-2022-01-14"
channel = "nightly-2022-04-06"
components = ["rust-src", "rustc-dev"]
6 changes: 6 additions & 0 deletions src/racer/ast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ impl Emitter for DummyEmitter {
fn should_show_explain(&self) -> bool {
false
}
fn fluent_bundle(&self) -> Option<&Lrc<rustc_errors::FluentBundle>> {
None
}
fn fallback_fluent_bundle(&self) -> &Lrc<rustc_errors::FluentBundle> {
unimplemented!("diagnostic translations are unimplemented in racer");
}
}

/// construct parser from string
Expand Down

0 comments on commit 6b56f2c

Please sign in to comment.