Skip to content

Commit 6d81378

Browse files
committed
cleanup: delete useless methods in SmirCtxt
1 parent 1862f20 commit 6d81378

File tree

1 file changed

+0
-18
lines changed
  • compiler/rustc_smir/src/rustc_smir/context

1 file changed

+0
-18
lines changed

compiler/rustc_smir/src/rustc_smir/context/impls.rs

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -143,24 +143,6 @@ impl<'tcx, B: Bridge> SmirCtxt<'tcx, B> {
143143
self.tcx.valtree_to_const_val(key)
144144
}
145145

146-
pub fn layout_of(
147-
&self,
148-
key: ty::PseudoCanonicalInput<'tcx, Ty<'tcx>>,
149-
) -> Result<rustc_abi::TyAndLayout<'tcx, Ty<'tcx>>, &ty::layout::LayoutError<'tcx>> {
150-
self.tcx.layout_of(key)
151-
}
152-
153-
pub fn as_query_input<T>(
154-
&self,
155-
typing_env: ty::TypingEnv<'tcx>,
156-
value: T,
157-
) -> ty::PseudoCanonicalInput<'tcx, T>
158-
where
159-
T: ty::TypeVisitable<TyCtxt<'tcx>>,
160-
{
161-
typing_env.as_query_input(value)
162-
}
163-
164146
pub fn target_endian(&self) -> Endian {
165147
self.tcx.data_layout.endian
166148
}

0 commit comments

Comments
 (0)