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.
1 parent 3bb69a1 commit af2579cCopy full SHA for af2579c
1 file changed
compiler/rustc_target/src/spec/mod.rs
@@ -2753,7 +2753,7 @@ impl Target {
2753
);
2754
check_eq!(
2755
self.is_like_gpu,
2756
- self.arch == "nvptx64" || self.arch == "amdgpu",
+ self.arch == Arch::Nvptx64 || self.arch == Arch::AmdGpu,
2757
"`is_like_gpu` must be set if and only if `target` is `nvptx64` or `amdgcn`"
2758
2759
0 commit comments