Stabilize Literal::byte_character
This commit is contained in:
parent
98efd808e1
commit
61ac7812c6
4 changed files with 1 additions and 25 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue