|
7 | 7 | //!
|
8 | 8 | //! For now, we are developing everything inside `rustc`, thus, we keep this module private.
|
9 | 9 |
|
10 |
| -use crate::stable_mir::mir::{CopyNonOverlapping, UserTypeProjection, VariantIdx}; |
11 |
| -use crate::stable_mir::ty::{ |
12 |
| - FloatTy, GenericParamDef, IntTy, Movability, RigidTy, Span, TyKind, UintTy, |
13 |
| -}; |
14 |
| -use crate::stable_mir::{self, opaque, CompilerError, Context}; |
15 | 10 | use hir::def::DefKind;
|
16 | 11 | use rustc_hir as hir;
|
17 | 12 | use rustc_middle::mir;
|
18 | 13 | use rustc_middle::mir::interpret::{alloc_range, AllocId};
|
19 | 14 | use rustc_middle::ty::{self, Ty, TyCtxt, Variance};
|
20 | 15 | use rustc_span::def_id::{CrateNum, DefId, LOCAL_CRATE};
|
21 |
| -use rustc_span::ErrorGuaranteed; |
22 | 16 | use rustc_target::abi::FieldIdx;
|
| 17 | +use stable_mir::mir::{CopyNonOverlapping, UserTypeProjection, VariantIdx}; |
| 18 | +use stable_mir::ty::{FloatTy, GenericParamDef, IntTy, Movability, RigidTy, Span, TyKind, UintTy}; |
| 19 | +use stable_mir::{self, opaque, Context}; |
23 | 20 | use tracing::debug;
|
24 | 21 |
|
25 | 22 | mod alloc;
|
@@ -112,7 +109,7 @@ impl<'tcx> Context for Tables<'tcx> {
|
112 | 109 | }
|
113 | 110 | }
|
114 | 111 |
|
115 |
| - fn ty_kind(&mut self, ty: crate::stable_mir::ty::Ty) -> TyKind { |
| 112 | + fn ty_kind(&mut self, ty: stable_mir::ty::Ty) -> TyKind { |
116 | 113 | self.types[ty.0].clone().stable(self)
|
117 | 114 | }
|
118 | 115 |
|
@@ -1517,12 +1514,6 @@ impl<'tcx> Stable<'tcx> for rustc_span::Span {
|
1517 | 1514 | }
|
1518 | 1515 | }
|
1519 | 1516 |
|
1520 |
| -impl<T> From<ErrorGuaranteed> for CompilerError<T> { |
1521 |
| - fn from(_error: ErrorGuaranteed) -> Self { |
1522 |
| - CompilerError::CompilationFailed |
1523 |
| - } |
1524 |
| -} |
1525 |
| - |
1526 | 1517 | impl<'tcx> Stable<'tcx> for DefKind {
|
1527 | 1518 | type T = stable_mir::DefKind;
|
1528 | 1519 |
|
|
0 commit comments