diff options
| author | Slanterns <slanterns.w@gmail.com> | 2024-04-04 05:04:27 +0800 |
|---|---|---|
| committer | Slanterns <slanterns.w@gmail.com> | 2024-04-04 05:04:27 +0800 |
| commit | fbc56dfac13ba6fb81bca6439e120a9c554c3a57 (patch) | |
| tree | c72899906f58b69d5b64a96c00182753184c72dd /library/proc_macro | |
| parent | 61ac7812c65601695460a1ab6a4999d35efb66cc (diff) | |
| download | rust-fbc56dfac13ba6fb81bca6439e120a9c554c3a57.tar.gz rust-fbc56dfac13ba6fb81bca6439e120a9c554c3a57.zip | |
Stabilize `Literal::c_string`
Diffstat (limited to 'library/proc_macro')
| -rw-r--r-- | library/proc_macro/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/proc_macro/src/lib.rs b/library/proc_macro/src/lib.rs index 47c9681b366..01c449563ee 100644 --- a/library/proc_macro/src/lib.rs +++ b/library/proc_macro/src/lib.rs @@ -1374,7 +1374,7 @@ impl Literal { } /// C string literal. - #[unstable(feature = "proc_macro_c_str_literals", issue = "119750")] + #[stable(feature = "proc_macro_c_str_literals", since = "CURRENT_RUSTC_VERSION")] pub fn c_string(string: &CStr) -> Literal { let string = string.to_bytes().escape_ascii().to_string(); Literal::new(bridge::LitKind::CStr, &string, None) |
