Unnamed repository; edit this file 'description' to name the repository.
-rw-r--r--.typos.toml2
-rw-r--r--crates/hir-ty/src/target_feature.rs2
2 files changed, 4 insertions, 0 deletions
diff --git a/.typos.toml b/.typos.toml
index 0f2f9b1b27..e938bddd4b 100644
--- a/.typos.toml
+++ b/.typos.toml
@@ -18,6 +18,8 @@ extend-ignore-re = [
"INOUT",
"optin",
"=Pn",
+ # ignore `// spellchecker:off` until `// spellchecker:on`
+ "(?s)(#|//)\\s*spellchecker:off.*?\\n\\s*(#|//)\\s*spellchecker:on",
]
[default.extend-words]
diff --git a/crates/hir-ty/src/target_feature.rs b/crates/hir-ty/src/target_feature.rs
index 17a1b8efee..fe9416c6cf 100644
--- a/crates/hir-ty/src/target_feature.rs
+++ b/crates/hir-ty/src/target_feature.rs
@@ -77,6 +77,7 @@ static TARGET_FEATURE_IMPLICATIONS: LazyLock<FxHashMap<Symbol, Box<[Symbol]>>> =
result
});
+// spellchecker:off
const TARGET_FEATURE_IMPLICATIONS_RAW: &[(&str, &[&str])] = &[
// Arm
("aes", &["neon"]),
@@ -257,3 +258,4 @@ const TARGET_FEATURE_IMPLICATIONS_RAW: &[(&str, &[&str])] = &[
("isa-68060", &["isa-68040"]),
("isa-68882", &["isa-68881"]),
];
+// spellchecker:on