We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
NvvmArch::is_base_variant
1 parent 2da444a commit 888601aCopy full SHA for 888601a
crates/nvvm/src/lib.rs
@@ -540,12 +540,9 @@ impl NvvmArch {
540
541
/// Check if this architecture is a base variant (no suffix)
542
pub fn is_base_variant(&self) -> bool {
543
- let feature = self.target_feature();
544
- // A base variant doesn't end with any letter suffix
545
- !feature
546
- .chars()
547
- .last()
548
- .is_some_and(|c| c.is_ascii_alphabetic())
+ !self
+ .target_feature()
+ .ends_with(|c| char::is_ascii_alphabetic(&c))
549
}
550
551
/// Check if this architecture is a family-specific variant (f suffix)
0 commit comments