You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Tracking Issue for Literal::byte_character #115268
Previously available alternatives for forming a byte literal:
Literal::u8_suffixed(byte) constructs a literal like 97u8
format!("b'\\x{:02x}'", byte).parse::<Literal>().unwrap() constructs a literal like b'\x61'
format!("b'{}'", [byte].escape_ascii()).parse::<Literal>().unwrap() constructs a literal like b'a'
This feature adds Literal::byte_character(byte) which is equivalent to the third alternative, as it is most often the one you want but is fairly challenging to come up with on your own.
Once a majority of reviewers approve (and at most 2 approvals are outstanding), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up!
See this document for info about what commands tagged team members can give me.
just a reminder
If you get these errors and you're running on nightly version
channel = "nightly" in rust-toolchain.toml just type: rustup install nightly
to make sure you have the latest corrected version
Activity
[-]Tracking Issue for XXX[/-][+]Tracking Issue for `proc_macro_byte_character`[/+][-]Tracking Issue for `proc_macro_byte_character`[/-][+]Tracking Issue for `Literal::byte_character`[/+]Auto merge of rust-lang#112711 - Emilgardis:lit_byte_char, r=dtolnay
dtolnay commentedon Mar 24, 2024
@rust-lang/libs-api:
@rfcbot fcp merge
Previously available alternatives for forming a byte literal:
Literal::u8_suffixed(byte)constructs a literal like97u8format!("b'\\x{:02x}'", byte).parse::<Literal>().unwrap()constructs a literal likeb'\x61'format!("b'{}'", [byte].escape_ascii()).parse::<Literal>().unwrap()constructs a literal likeb'a'This feature adds
Literal::byte_character(byte)which is equivalent to the third alternative, as it is most often the one you want but is fairly challenging to come up with on your own.rfcbot commentedon Mar 24, 2024
Team member @dtolnay has proposed to merge this. The next step is review by the rest of the tagged team members:
No concerns currently listed.
Once a majority of reviewers approve (and at most 2 approvals are outstanding), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up!
See this document for info about what commands tagged team members can give me.
rfcbot commentedon Mar 24, 2024
🔔 This is now entering its final comment period, as per the review above. 🔔
4 remaining items
Squashed commit of the following:
Dep: use fixed version 1.0.79 for proc-macro2
Dep: use fixed version 1.0.79 for proc-macro2
Dep: use fixed version 1.0.79 for proc-macro2
Dep: use fixed version 1.0.79 for proc-macro2
Dep: use fixed version 1.0.79 for proc-macro2
Dep: use fixed version 1.0.79 for proc-macro2
tests: Remove rust-toolchain.toml from AVR test
tests: Remove rust-toolchain.toml from AVR test
tests: Use nightly-2024-04-14 in AVR test
Rollup merge of rust-lang#123769 - dtolnay:literal, r=fee1-dead
Unrolled build for rust-lang#123769
mdolberg commentedon Jul 9, 2024
just a reminder
If you get these errors and you're running on nightly version
channel = "nightly" in rust-toolchain.toml just type: rustup install nightly
to make sure you have the latest corrected version
chore(rust): bump nightly version used for checking unused deps (#5918)