Skip to content

Commit 3d2e593

Browse files
committed
fix all errors
1 parent 657259f commit 3d2e593

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

src/debuginfo/mod.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ use indexmap::IndexSet;
1919
use rustc_codegen_ssa::debuginfo::type_names;
2020
use rustc_hir::def::DefKind;
2121
use rustc_hir::def_id::DefIdMap;
22+
use rustc_middle::ty::Unnormalized;
2223
use rustc_session::Session;
2324
use rustc_session::config::DebugInfo;
2425
use rustc_span::{RemapPathScopeComponents, SourceFileHash, StableSourceFileId};
@@ -244,7 +245,10 @@ impl DebugContext {
244245

245246
type_names::push_generic_args(
246247
tcx,
247-
tcx.normalize_erasing_regions(ty::TypingEnv::fully_monomorphized(), args),
248+
tcx.normalize_erasing_regions(
249+
ty::TypingEnv::fully_monomorphized(),
250+
Unnormalized::new_wip(args),
251+
),
248252
&mut name,
249253
);
250254

src/main_shim.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use cranelift_frontend::{FunctionBuilder, FunctionBuilderContext};
22
use rustc_hir::LangItem;
3-
use rustc_middle::ty::{AssocTag, GenericArg};
3+
use rustc_middle::ty::{AssocTag, GenericArg, Unnormalized};
44
use rustc_session::config::EntryFnType;
55
use rustc_span::{DUMMY_SP, Ident};
66

@@ -50,7 +50,7 @@ pub(crate) fn maybe_create_entry_wrapper(
5050
// listing.
5151
let main_ret_ty = tcx.normalize_erasing_regions(
5252
ty::TypingEnv::fully_monomorphized(),
53-
main_ret_ty.no_bound_vars().unwrap(),
53+
Unnormalized::new_wip(main_ret_ty.no_bound_vars().unwrap()),
5454
);
5555

5656
let cmain_sig = Signature {

0 commit comments

Comments
 (0)