Skip to content

Commit bb92cbb

Browse files
committed
Updated rustc verision
1 parent 25c6f80 commit bb92cbb

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

Diff for: src/call_info.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
use cilly::v2::FnSig;
22
use rustc_middle::ty::{Instance, List, PseudoCanonicalInput, TyKind};
33
use rustc_target::callconv::Conv;
4-
use rustc_target::spec::abi::Abi as TargetAbi;
5-
4+
use rustc_abi::ExternAbi as TargetAbi;
65
use crate::fn_ctx::MethodCompileCtx;
76
use crate::r#type::get_type;
87
pub struct CallInfo {
@@ -46,7 +45,7 @@ impl CallInfo {
4645
let internal_abi = match fn_ty.kind() {
4746
TyKind::FnDef(_, _) => fn_ty.fn_sig(ctx.tcx()).abi(),
4847
TyKind::Closure(_, args) => args.as_closure().sig().abi(),
49-
TyKind::Coroutine(_, _) => rustc_target::spec::abi::Abi::Rust, // TODO: this assumes all coroutines have the ABI Rust. This *should* be correct.
48+
TyKind::Coroutine(_, _) => TargetAbi::Rust, // TODO: this assumes all coroutines have the ABI Rust. This *should* be correct.
5049
_ => todo!("Can't get signature of {fn_ty}"),
5150
};
5251
// Only those ABIs are supported

Diff for: src/function_sig.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use crate::r#type::get_type;
44
use cilly::{v2::FnSig, Type};
55
use rustc_middle::ty::{Instance, List, Ty, TyCtxt, TyKind};
66
use rustc_target::callconv::Conv;
7-
use rustc_target::spec::abi::Abi as TargetAbi;
7+
use rustc_abi::ExternAbi as TargetAbi;
88

99
/// Creates a `FnSig` from ` `. May not match the result of `sig_from_instance_`!
1010
/// Use ONLY for function pointers!

Diff for: src/lib.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,7 @@ mod casts;
115115
mod fn_ctx;
116116
pub mod native_pastrough;
117117

118-
/// A representation of C# IL op.
119-
pub mod cil;
118+
120119
/// Runtime errors and utlity functions/macros related to them
121120
mod codegen_error;
122121
/// Test harnesses.

0 commit comments

Comments
 (0)