Skip to content

Commit 3e6aaf2

Browse files
committed
fix(upstream): backend signature change
1 parent 894596c commit 3e6aaf2

4 files changed

Lines changed: 12 additions & 12 deletions

File tree

‎flake.lock‎

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎rust-toolchain.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
# SPDX-License-Identifier: MIT OR Apache-2.0
44

55
[toolchain]
6-
channel = "nightly-2026-09-15"
6+
channel = "nightly-2026-09-18"
77
components = ["llvm-tools-preview", "rustc-dev", "rust-src"]

‎src/driver.rs‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use rustc_middle::dep_graph::{WorkProduct, WorkProductId};
1717
use rustc_middle::ty::TyCtxt;
1818
use rustc_middle::util::Providers;
1919
use rustc_session::config::{OutputFilenames, OutputType, PrintRequest};
20-
use rustc_session::{EarlyDiagCtxt, IncrCompSession, Session};
20+
use rustc_session::{CodegenBackendInit, EarlyDiagCtxt, EarlySession, IncrCompSession, Session};
2121

2222
pub trait CallbacksExt: Callbacks + Send + 'static {
2323
type ExtCtxt<'tcx>: DynSend + DynSync;
@@ -180,15 +180,15 @@ impl<C: CallbacksExt> CodegenBackend for BackendWrapper<C> {
180180
*ongoing_codegen.downcast().unwrap()
181181
}
182182

183-
fn init(&self, sess: &Session) {
183+
fn init(&mut self, sess: &EarlySession) -> CodegenBackendInit {
184184
self.backend.init(sess)
185185
}
186186

187187
fn print(&self, req: &PrintRequest, out: &mut String, sess: &Session) {
188188
self.backend.print(req, out, sess)
189189
}
190190

191-
fn target_config(&self, sess: &Session) -> TargetConfig {
191+
fn target_config(&self, sess: &EarlySession) -> TargetConfig {
192192
self.backend.target_config(sess)
193193
}
194194

‎src/main.rs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#[macro_use]
1717
extern crate rustc_macros;
1818
#[macro_use]
19-
extern crate rustc_middle;
19+
extern crate rustc_span;
2020
#[macro_use]
2121
extern crate tracing;
2222

@@ -35,13 +35,13 @@ extern crate rustc_interface;
3535
extern crate rustc_lint;
3636
extern crate rustc_log;
3737
extern crate rustc_metadata;
38+
extern crate rustc_middle;
3839
extern crate rustc_mir_dataflow;
3940
extern crate rustc_mir_transform;
4041
extern crate rustc_monomorphize;
4142
extern crate rustc_parse;
4243
extern crate rustc_serialize;
4344
extern crate rustc_session;
44-
extern crate rustc_span;
4545
extern crate rustc_structures;
4646
extern crate rustc_target;
4747
extern crate rustc_trait_selection;

0 commit comments

Comments
 (0)