Skip to content

Commit 61ac781

Browse files
committed
Stabilize Literal::byte_character
1 parent 98efd80 commit 61ac781

File tree

4 files changed

+1
-25
lines changed

4 files changed

+1
-25
lines changed

library/proc_macro/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1360,7 +1360,7 @@ impl Literal {
13601360
}
13611361

13621362
/// Byte character literal.
1363-
#[unstable(feature = "proc_macro_byte_character", issue = "115268")]
1363+
#[stable(feature = "proc_macro_byte_character", since = "CURRENT_RUSTC_VERSION")]
13641364
pub fn byte_character(byte: u8) -> Literal {
13651365
let string = [byte].escape_ascii().to_string();
13661366
Literal::new(bridge::LitKind::Byte, &string, None)

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

-10
This file was deleted.

tests/ui/feature-gates/feature-gate-proc_macro_byte_character.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_byte_character)]
98
#![feature(proc_macro_c_str_literals)]
109
#![deny(dead_code)] // catch if a test function is never called
1110

0 commit comments

Comments
 (0)