1
Fork 0

Fix some TODOs

This commit is contained in:
Michael Goulet 2024-06-12 18:35:51 -04:00
parent e82db89b4d
commit a2fb2ebc17
7 changed files with 44 additions and 10 deletions

View file

@ -324,12 +324,20 @@ impl<'tcx> Interner for TyCtxt<'tcx> {
}
impl<'tcx> rustc_type_ir::inherent::Abi<TyCtxt<'tcx>> for abi::Abi {
fn rust() -> Self {
abi::Abi::Rust
}
fn is_rust(self) -> bool {
matches!(self, abi::Abi::Rust)
}
}
impl<'tcx> rustc_type_ir::inherent::Safety<TyCtxt<'tcx>> for hir::Safety {
fn safe() -> Self {
hir::Safety::Safe
}
fn is_safe(self) -> bool {
matches!(self, hir::Safety::Safe)
}