Skip to content

Commit a70f37b

Browse files
committed
fixup! Refactor FnDecl and FnSig flags into packed structs
1 parent dafb6bb commit a70f37b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

compiler/rustc_abi/src/extern_abi.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,14 +131,14 @@ macro_rules! abi_impls {
131131
$($e_name::$variant $( { unwind: $uw } )* => $tok,)*
132132
}
133133
}
134-
// ALL_VARIANTS.iter().position(|v| v == self), but const
135134
// FIXME(FnSigKind): when PartialEq is stably const, use it instead
136135
const fn internal_const_eq(&self, other: &Self) -> bool {
137136
match (self, other) {
138137
$( ( $e_name::$variant $( { unwind: $uw } )* , $e_name::$variant $( { unwind: $uw } )* ) => true,)*
139138
_ => false,
140139
}
141140
}
141+
// ALL_VARIANTS.iter().position(|v| v == self), but const
142142
pub const fn as_packed(&self) -> u8 {
143143
let mut index = 0;
144144
while index < $e_name::ALL_VARIANTS.len() {

0 commit comments

Comments
 (0)