Stabilize Literal::byte_character
This commit is contained in:
@@ -1360,7 +1360,7 @@ impl Literal {
|
||||
}
|
||||
|
||||
/// Byte character literal.
|
||||
#[unstable(feature = "proc_macro_byte_character", issue = "115268")]
|
||||
#[stable(feature = "proc_macro_byte_character", since = "CURRENT_RUSTC_VERSION")]
|
||||
pub fn byte_character(byte: u8) -> Literal {
|
||||
let string = [byte].escape_ascii().to_string();
|
||||
Literal::new(bridge::LitKind::Byte, &string, None)
|
||||
|
||||
Reference in New Issue
Block a user