Skip to content

Commit 7c5524c

Browse files
Disable typos checker for the target feature names
1 parent 87ed04b commit 7c5524c

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.typos.toml

+2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ extend-ignore-re = [
1818
"INOUT",
1919
"optin",
2020
"=Pn",
21+
# ignore `// spellchecker:off` until `// spellchecker:on`
22+
"(?s)(#|//)\\s*spellchecker:off.*?\\n\\s*(#|//)\\s*spellchecker:on",
2123
]
2224

2325
[default.extend-words]

crates/hir-ty/src/target_feature.rs

+2
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ static TARGET_FEATURE_IMPLICATIONS: LazyLock<FxHashMap<Symbol, Box<[Symbol]>>> =
7777
result
7878
});
7979

80+
// spellchecker:off
8081
const TARGET_FEATURE_IMPLICATIONS_RAW: &[(&str, &[&str])] = &[
8182
// Arm
8283
("aes", &["neon"]),
@@ -257,3 +258,4 @@ const TARGET_FEATURE_IMPLICATIONS_RAW: &[(&str, &[&str])] = &[
257258
("isa-68060", &["isa-68040"]),
258259
("isa-68882", &["isa-68881"]),
259260
];
261+
// spellchecker:on

0 commit comments

Comments
 (0)