Skip to content

Commit 9731fdd

Browse files
committed
Stabilize Literal::c_string
1 parent 1cbda63 commit 9731fdd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

proc_macro/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1374,7 +1374,7 @@ impl Literal {
13741374
}
13751375

13761376
/// C string literal.
1377-
#[unstable(feature = "proc_macro_c_str_literals", issue = "119750")]
1377+
#[stable(feature = "proc_macro_c_str_literals", since = "CURRENT_RUSTC_VERSION")]
13781378
pub fn c_string(string: &CStr) -> Literal {
13791379
let string = string.to_bytes().escape_ascii().to_string();
13801380
Literal::new(bridge::LitKind::CStr, &string, None)

0 commit comments

Comments
 (0)