Skip to content

Commit 5a0893c

Browse files
committed
rustc_target: rename Arch::{Uknown,Other}
Prepare for additional enums like Vendor and Os which have true `Unknown` variants. We want to use the same name for the escape hatch for all of these, thus rename this one.
1 parent ae9ea19 commit 5a0893c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shims/alloc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
5454
| Arch::Nvptx64
5555
| Arch::PowerPC64LE
5656
| Arch::SpirV
57-
| Arch::Unknown(_)) => bug!("unsupported target architecture for malloc: `{arch}`"),
57+
| Arch::Other(_)) => bug!("unsupported target architecture for malloc: `{arch}`"),
5858
};
5959
// The C standard only requires sufficient alignment for any *type* with size less than or
6060
// equal to the size requested. Types one can define in standard C seem to never have an alignment

0 commit comments

Comments
 (0)