Skip to content

Commit

Permalink
Add tracking issue number to const_cstr_unchecked
Browse files Browse the repository at this point in the history
  • Loading branch information
KamilaBorowska committed Oct 27, 2021
1 parent a8f6e61 commit 50ca08c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/std/src/ffi/c_str.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1257,7 +1257,7 @@ impl CStr {
#[inline]
#[must_use]
#[stable(feature = "cstr_from_bytes", since = "1.10.0")]
#[rustc_const_unstable(feature = "const_cstr_unchecked", issue = "none")]
#[rustc_const_unstable(feature = "const_cstr_unchecked", issue = "90343")]
pub const unsafe fn from_bytes_with_nul_unchecked(bytes: &[u8]) -> &CStr {
// SAFETY: Casting to CStr is safe because its internal representation
// is a [u8] too (safe only inside std).
Expand Down

0 comments on commit 50ca08c

Please sign in to comment.