Skip to content

Commit 2beb5a4

Browse files
edit comment on CanonAbi::try_from_extern_abi
1 parent a32e7dc commit 2beb5a4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler/rustc_abi/src/canon_abi.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,8 @@ impl CanonAbi {
136136

137137
/// convert an ExternAbi to a CanonAbi if it maps directly
138138
///
139-
/// Pretty incorrect to publicly expose!
139+
/// Like `to_erased_extern_abi`, this is only intended for internal usage by
140+
/// CanonAbi's implementation, as it is not "target-aware".
140141
const fn try_from_extern_abi(extern_abi: ExternAbi) -> Result<Self, AbiConvErr> {
141142
match extern_abi {
142143
ExternAbi::C { unwind: false } => Ok(Self::C),

0 commit comments

Comments
 (0)