add missing #[repr(C)] on a union
This commit is contained in:
parent
ac21131f78
commit
080fdb8184
1 changed files with 1 additions and 0 deletions
|
|
@ -2170,6 +2170,7 @@ impl str {
|
|||
#[inline(always)]
|
||||
#[rustc_const_unstable(feature="const_str_as_bytes")]
|
||||
pub const fn as_bytes(&self) -> &[u8] {
|
||||
#[repr(C)]
|
||||
union Slices<'a> {
|
||||
str: &'a str,
|
||||
slice: &'a [u8],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue