Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit d539641

Browse files
committed
Sync from rust c5c7d2b
2 parents a563e11 + f31fc31 commit d539641

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/common.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ impl<'tcx> HasTargetSpec for FunctionCx<'_, '_, 'tcx> {
374374
impl<'tcx> FunctionCx<'_, '_, 'tcx> {
375375
pub(crate) fn monomorphize<T>(&self, value: T) -> T
376376
where
377-
T: TypeFoldable<'tcx> + Copy,
377+
T: TypeFoldable<TyCtxt<'tcx>> + Copy,
378378
{
379379
self.instance.subst_mir_and_normalize_erasing_regions(
380380
self.tcx,

src/lib.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ mod prelude {
8484
pub(crate) use rustc_middle::ty::layout::{self, LayoutOf, TyAndLayout};
8585
pub(crate) use rustc_middle::ty::{
8686
self, FloatTy, Instance, InstanceDef, IntTy, ParamEnv, Ty, TyCtxt, TypeAndMut,
87-
TypeFoldable, UintTy,
87+
TypeFoldable, TypeVisitableExt, UintTy,
8888
};
8989
pub(crate) use rustc_target::abi::{Abi, Scalar, Size, VariantIdx};
9090

@@ -170,6 +170,11 @@ pub struct CraneliftCodegenBackend {
170170
}
171171

172172
impl CodegenBackend for CraneliftCodegenBackend {
173+
fn locale_resource(&self) -> &'static str {
174+
// FIXME(rust-lang/rust#100717) - cranelift codegen backend is not yet translated
175+
""
176+
}
177+
173178
fn init(&self, sess: &Session) {
174179
use rustc_session::config::Lto;
175180
match sess.lto() {

0 commit comments

Comments
 (0)