We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 74532dc commit d8deefaCopy full SHA for d8deefa
1 file changed
library/core/src/char/convert.rs
@@ -25,12 +25,9 @@ pub(super) const fn from_u32(i: u32) -> Option<char> {
25
/// Converts a `u32` to a `char`, ignoring validity. See [`char::from_u32_unchecked`].
26
#[inline]
27
#[must_use]
28
-<<<<<<< HEAD
+#[cfg_attr(not(bootstrap), allow(unnecessary_transmutes))]
29
#[requires(char_try_from_u32(i).is_ok())]
30
#[ensures(|result| *result as u32 == i)]
31
-=======
32
-#[cfg_attr(not(bootstrap), allow(unnecessary_transmutes))]
33
->>>>>>> subtree/library
34
pub(super) const unsafe fn from_u32_unchecked(i: u32) -> char {
35
// SAFETY: the caller must guarantee that `i` is a valid char value.
36
unsafe {
0 commit comments