Skip to content

Commit f88c65e

Browse files
committed
fix: PointeeSized bound for the Stable trait
1 parent 3a4b906 commit f88c65e

File tree

2 files changed

+2
-2
lines changed
  • compiler/rustc_smir/src

2 files changed

+2
-2
lines changed

compiler/rustc_smir/src/rustc_smir/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ use std::ops::Index;
1515
use bridge::*;
1616
use context::SmirCtxt;
1717
use rustc_data_structures::fx::{self, FxIndexMap};
18-
use rustc_data_structures::PointeeSized;
1918
use rustc_middle::mir;
2019
use rustc_middle::mir::interpret::AllocId;
2120
use rustc_middle::ty::{self, Ty, TyCtxt};

compiler/rustc_smir/src/stable_mir/unstable/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
//! any sort of conversion and usage of internal rustc code. So we
55
//! restrict the usage of internal items to be inside this module.
66
7+
use rustc_data_structures::PointeeSized;
78
use rustc_hir::def::DefKind;
89
use rustc_middle::ty::{List, Ty, TyCtxt};
910
use rustc_middle::{mir, ty};
@@ -143,7 +144,7 @@ pub trait InternalCx<'tcx>: Copy + Clone {
143144
/// and StableMIR constructs. However, they should be used seldomly and they have no influence
144145
/// in this crate semver.
145146
#[doc(hidden)]
146-
pub trait Stable<'tcx> {
147+
pub trait Stable<'tcx>: PointeeSized {
147148
/// The stable representation of the type implementing Stable.
148149
type T;
149150
/// Converts an object to the equivalent Stable MIR representation.

0 commit comments

Comments
 (0)