fix imports
This commit is contained in:
parent
d83559939c
commit
2069e8c218
2 changed files with 4 additions and 9 deletions
|
@ -7,13 +7,8 @@
|
||||||
//!
|
//!
|
||||||
//! For now, we are developing everything inside `rustc`, thus, we keep this module private.
|
//! For now, we are developing everything inside `rustc`, thus, we keep this module private.
|
||||||
|
|
||||||
use crate::rustc_internal::{self, opaque};
|
use crate::rustc_smir::hir::def::DefKind;
|
||||||
use crate::stable_mir::mir::{CopyNonOverlapping, UserTypeProjection, VariantIdx};
|
use crate::rustc_smir::stable_mir::ty::{BoundRegion, EarlyBoundRegion, FreeRegion, Region};
|
||||||
use crate::stable_mir::ty::{
|
|
||||||
BoundRegion, EarlyBoundRegion, FloatTy, FreeRegion, GenericParamDef, IntTy, Movability, Region,
|
|
||||||
RigidTy, Span, TyKind, UintTy,
|
|
||||||
};
|
|
||||||
use crate::stable_mir::{self, CompilerError, Context};
|
|
||||||
use rustc_hir as hir;
|
use rustc_hir as hir;
|
||||||
use rustc_middle::mir;
|
use rustc_middle::mir;
|
||||||
use rustc_middle::mir::interpret::{alloc_range, AllocId};
|
use rustc_middle::mir::interpret::{alloc_range, AllocId};
|
||||||
|
@ -1515,7 +1510,7 @@ impl<'tcx> Stable<'tcx> for ty::RegionKind<'tcx> {
|
||||||
type T = stable_mir::ty::RegionKind;
|
type T = stable_mir::ty::RegionKind;
|
||||||
|
|
||||||
fn stable(&self, tables: &mut Tables<'tcx>) -> Self::T {
|
fn stable(&self, tables: &mut Tables<'tcx>) -> Self::T {
|
||||||
use crate::stable_mir::ty::RegionKind;
|
use stable_mir::ty::RegionKind;
|
||||||
match self {
|
match self {
|
||||||
ty::ReEarlyBound(early_reg) => RegionKind::ReEarlyBound(EarlyBoundRegion {
|
ty::ReEarlyBound(early_reg) => RegionKind::ReEarlyBound(EarlyBoundRegion {
|
||||||
def_id: tables.region_def(early_reg.def_id),
|
def_id: tables.region_def(early_reg.def_id),
|
||||||
|
|
|
@ -205,7 +205,7 @@ pub struct ConstDef(pub DefId);
|
||||||
pub struct ImplDef(pub DefId);
|
pub struct ImplDef(pub DefId);
|
||||||
|
|
||||||
#[derive(Clone, PartialEq, Eq, Debug)]
|
#[derive(Clone, PartialEq, Eq, Debug)]
|
||||||
pub struct RegionDef(pub(crate) DefId);
|
pub struct RegionDef(pub DefId);
|
||||||
|
|
||||||
#[derive(Clone, Debug)]
|
#[derive(Clone, Debug)]
|
||||||
pub struct GenericArgs(pub Vec<GenericArgKind>);
|
pub struct GenericArgs(pub Vec<GenericArgKind>);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue