Skip to content

Commit

Permalink
Stabilize Literal::byte_character
Browse files Browse the repository at this point in the history
  • Loading branch information
slanterns committed Apr 3, 2024
1 parent 98efd80 commit 61ac781
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 25 deletions.
2 changes: 1 addition & 1 deletion library/proc_macro/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
10 changes: 0 additions & 10 deletions tests/ui/feature-gates/feature-gate-proc_macro_byte_character.rs

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion tests/ui/proc-macro/auxiliary/api/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#![crate_type = "proc-macro"]
#![crate_name = "proc_macro_api_tests"]
#![feature(proc_macro_span)]
#![feature(proc_macro_byte_character)]
#![feature(proc_macro_c_str_literals)]
#![deny(dead_code)] // catch if a test function is never called

Expand Down

0 comments on commit 61ac781

Please sign in to comment.