Make get_mach_backend non-optional

This commit is contained in:
bjorn3
2022-01-03 19:32:42 +01:00
parent b3aa692a44
commit e98a85e1e2
4 changed files with 13 additions and 55 deletions

View File

@@ -258,10 +258,8 @@ pub trait TargetIsa: fmt::Display + Send + Sync {
None
}
/// Get the new-style MachBackend, if this is an adapter around one.
fn get_mach_backend(&self) -> Option<&dyn MachBackend> {
None
}
/// Get the new-style MachBackend.
fn get_mach_backend(&self) -> &dyn MachBackend;
}
/// Methods implemented for free for target ISA!