Skip to content

Commit a882643

Browse files
committed
lex_via_rustc: updates for more recent rustc
Some return types have changed in traits rustc_errors::translation::Translate rustc_errors::emitter::Emitter
1 parent a1ad58d commit a882643

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

rust-toolchain.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[toolchain]
2-
channel = "nightly-2024-09-09"
2+
channel = "nightly-2024-10-12"
33
components = ["rustc-dev", "llvm-tools"]

src/lex_via_rustc.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ extern crate rustc_session;
2525
extern crate rustc_span;
2626

2727
// This compiles with
28-
// rustc nightly from approximately 2024-09-09
28+
// rustc 1.83.0-nightly (1bc403daa 2024-10-11)
2929

3030
use std::{
3131
mem,
@@ -261,7 +261,7 @@ impl ErrorEmitter {
261261
}
262262

263263
impl rustc_errors::translation::Translate for ErrorEmitter {
264-
fn fluent_bundle(&self) -> Option<&Lrc<rustc_errors::FluentBundle>> {
264+
fn fluent_bundle(&self) -> Option<&rustc_errors::FluentBundle> {
265265
None
266266
}
267267

@@ -271,7 +271,7 @@ impl rustc_errors::translation::Translate for ErrorEmitter {
271271
}
272272

273273
impl rustc_errors::emitter::Emitter for ErrorEmitter {
274-
fn source_map(&self) -> Option<&Lrc<SourceMap>> {
274+
fn source_map(&self) -> Option<&SourceMap> {
275275
None
276276
}
277277

writeup/introduction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ That means it describes `c""` literals, but not
2323
Other statements in this document are intended to be true as of September 2024.
2424

2525
The comparable implementation is intended to be compiled against (and compared against)\
26-
rustc nightly from approximately 2024-09-09
26+
`rustc 1.83.0-nightly (1bc403daa 2024-10-11)`
2727

2828

2929
### Editions

0 commit comments

Comments
 (0)