Skip to content

Commit fbc56df

Browse files
committed
Stabilize Literal::c_string
1 parent 61ac781 commit fbc56df

File tree

4 files changed

+1
-26
lines changed

4 files changed

+1
-26
lines changed

library/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)

tests/ui/feature-gates/feature-gate-proc_macro_c_str_literals.rs

-11
This file was deleted.

tests/ui/feature-gates/feature-gate-proc_macro_c_str_literals.stderr

-13
This file was deleted.

tests/ui/proc-macro/auxiliary/api/mod.rs

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
#![crate_type = "proc-macro"]
66
#![crate_name = "proc_macro_api_tests"]
77
#![feature(proc_macro_span)]
8-
#![feature(proc_macro_c_str_literals)]
98
#![deny(dead_code)] // catch if a test function is never called
109

1110
extern crate proc_macro;

0 commit comments

Comments
 (0)