rustfmt: Add some #[rustfmt::skip]s for later

This commit is contained in:
Tad Hardesty 2024-05-28 23:50:12 -07:00
parent f030e316b9
commit a97f9b47bb
3 changed files with 4 additions and 1 deletions

View file

@ -13,6 +13,7 @@ use crate::{is_constructor_name, Engine, Span};
use ahash::RandomState;
#[rustfmt::skip]
static PROC_KEYWORDS: &[&str] = &[
// Implicit variables
"args",

View file

@ -147,6 +147,7 @@ impl fmt::Display for Punctuation {
/// This lookup table is used to keep `read_punct`, called for essentially each
/// character in the input, blazing fast. The code to generate it is contained
/// in the following test.
#[rustfmt::skip]
static SPEEDY_TABLE: [(usize, usize); 127] = [
(0, 0), (0, 0), (0, 0), (0, 0), (0, 0), (0, 0), (0, 0), (0, 0),
(0, 0), (0, 1), (1, 2), (0, 0), (0, 0), (0, 0), (0, 0), (0, 0),
@ -164,7 +165,7 @@ static SPEEDY_TABLE: [(usize, usize); 127] = [
(0, 0), (0, 0), (0, 0), (0, 0), (0, 0), (0, 0), (0, 0), (0, 0),
(0, 0), (0, 0), (0, 0), (0, 0), (0, 0), (0, 0), (0, 0), (0, 0),
(0, 0), (0, 0), (0, 0), (59, 61), (61, 65), (65, 66), (66, 69),
];
];
#[test]
fn make_speedy_table() {

View file

@ -722,6 +722,7 @@ impl<'ctx> Preprocessor<'ctx> {
}
}
#[rustfmt::skip]
const ALL_DIRECTIVES: &[&str] = &[
"if", "ifdef", "ifndef", "elif", "else", "endif",
"include", "define", "undef", "warn", "error", "pragma",