Merge commit '9f9a822509' into clippy-subtree-update

This commit is contained in:
Philipp Krones 2025-02-28 23:20:48 +01:00
parent 222aaba5a1
commit fe01c44995
2648 changed files with 35461 additions and 16191 deletions

View file

@ -9,16 +9,21 @@ extern crate macro_rules;
macro_rules! b {
($b:literal) => {
const B: &[u8] = b"warning";
//~^ string_lit_as_bytes
};
}
fn str_lit_as_bytes() {
let bs = b"hello there";
//~^ string_lit_as_bytes
let bs = br###"raw string with 3# plus " ""###;
//~^ string_lit_as_bytes
let bs = b"lit to string".to_vec();
//~^ string_lit_as_bytes
let bs = b"lit to owned".to_vec();
//~^ string_lit_as_bytes
b!("warning");
@ -36,8 +41,10 @@ fn str_lit_as_bytes() {
let current_version = env!("CARGO_PKG_VERSION").as_bytes();
let includestr = include_bytes!("string_lit_as_bytes.rs");
//~^ string_lit_as_bytes
let _ = b"string with newline\t\n";
//~^ string_lit_as_bytes
let _ = match "x".as_bytes() {
b"xx" => 0,