Skip to content

Commit 82da2b1

Browse files
committed
address review
1 parent 8e8b6cd commit 82da2b1

File tree

4 files changed

+2
-5
lines changed

4 files changed

+2
-5
lines changed

compiler/rustc_feature/src/active.rs

-2
Original file line numberDiff line numberDiff line change
@@ -530,8 +530,6 @@ declare_features! (
530530
(active, plugin, "1.0.0", Some(29597), None),
531531
/// Allows exhaustive integer pattern matching on `usize` and `isize`.
532532
(active, precise_pointer_size_matching, "1.32.0", Some(56354), None),
533-
/// Allows creating a `b'b'` `Literal`
534-
(active, proc_macro_byte_character, "CURRENT_RUSTC_VERSION", Some(71358), None),
535533
/// Allows macro attributes on expressions, statements and non-inline modules.
536534
(active, proc_macro_hygiene, "1.30.0", Some(54727), None),
537535
/// Allows `&raw const $place_expr` and `&raw mut $place_expr` expressions.

compiler/rustc_span/src/symbol.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1159,7 +1159,6 @@ symbols! {
11591159
proc_dash_macro: "proc-macro",
11601160
proc_macro,
11611161
proc_macro_attribute,
1162-
proc_macro_byte_character,
11631162
proc_macro_derive,
11641163
proc_macro_expr,
11651164
proc_macro_gen,

library/proc_macro/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1338,7 +1338,7 @@ impl Literal {
13381338
}
13391339

13401340
/// Byte character literal.
1341-
#[unstable(feature = "proc_macro_byte_character", issue = "71358")]
1341+
#[unstable(feature = "proc_macro_byte_character", issue = "115268")]
13421342
pub fn byte_character(byte: u8) -> Literal {
13431343
let string = [byte].escape_ascii().to_string();
13441344
Literal::new(bridge::LitKind::Byte, &string, None)

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error[E0658]: use of unstable library feature 'proc_macro_byte_character'
44
LL | Literal::byte_character(b'a');
55
| ^^^^^^^^^^^^^^^^^^^^^^^
66
|
7-
= note: see issue #71358 <https://github.com/rust-lang/rust/issues/71358> for more information
7+
= note: see issue #115268 <https://github.com/rust-lang/rust/issues/115268> for more information
88
= help: add `#![feature(proc_macro_byte_character)]` to the crate attributes to enable
99

1010
error: aborting due to previous error

0 commit comments

Comments
 (0)