diff options
| author | Konrad Borowski <konrad@borowski.pw> | 2021-10-27 15:18:25 +0200 |
|---|---|---|
| committer | Konrad Borowski <konrad@borowski.pw> | 2021-10-27 15:18:25 +0200 |
| commit | 50ca08c5f5be2e2b018f535aa758803364bae33b (patch) | |
| tree | 51a3438c7846c78a163e220555da82656318a1e6 /library/std/src/ffi | |
| parent | a8f6e614f86be429b5862f30e023063f619aeed2 (diff) | |
| download | rust-50ca08c5f5be2e2b018f535aa758803364bae33b.tar.gz rust-50ca08c5f5be2e2b018f535aa758803364bae33b.zip | |
Add tracking issue number to const_cstr_unchecked
Diffstat (limited to 'library/std/src/ffi')
| -rw-r--r-- | library/std/src/ffi/c_str.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/ffi/c_str.rs b/library/std/src/ffi/c_str.rs index 3cb3f480de3..b7822b40a7c 100644 --- a/library/std/src/ffi/c_str.rs +++ b/library/std/src/ffi/c_str.rs @@ -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). |
