File tree 1 file changed +3
-8
lines changed
compiler/rustc_smir/src/rustc_smir
1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -147,13 +147,6 @@ pub(crate) trait Stable {
147
147
fn stable ( & self ) -> Self :: T ;
148
148
}
149
149
150
- impl Stable for DefId {
151
- type T = stable_mir:: CrateItem ;
152
- fn stable ( & self ) -> Self :: T {
153
- rustc_internal:: crate_item ( * self )
154
- }
155
- }
156
-
157
150
impl < ' tcx > Stable for mir:: Statement < ' tcx > {
158
151
type T = stable_mir:: mir:: Statement ;
159
152
fn stable ( & self ) -> Self :: T {
@@ -188,7 +181,9 @@ impl<'tcx> Stable for mir::Rvalue<'tcx> {
188
181
Ref ( region, kind, place) => {
189
182
stable_mir:: mir:: Rvalue :: Ref ( opaque ( region) , kind. stable ( ) , place. stable ( ) )
190
183
}
191
- ThreadLocalRef ( def_id) => stable_mir:: mir:: Rvalue :: ThreadLocalRef ( def_id. stable ( ) ) ,
184
+ ThreadLocalRef ( def_id) => {
185
+ stable_mir:: mir:: Rvalue :: ThreadLocalRef ( rustc_internal:: crate_item ( * def_id) )
186
+ }
192
187
AddressOf ( mutability, place) => {
193
188
stable_mir:: mir:: Rvalue :: AddressOf ( mutability. stable ( ) , place. stable ( ) )
194
189
}
You can’t perform that action at this time.
0 commit comments