Skip to content

Commit

Permalink
Don't run test when no std is available
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeWort committed Sep 14, 2023
1 parent 8b73555 commit 5cd76be
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/arch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -822,11 +822,13 @@ registers!(X86_64, {

#[cfg(test)]
mod tests {
use super::*;
use std::collections::HashSet;

#[test]
#[cfg(feature = "std")]
fn test_aarch64_registers() {
use super::*;
use std::collections::HashSet;

let mut names = HashSet::new();
for n in (0..=39).chain(46..=127) {
let name = AArch64::register_name(Register(n))
Expand Down

0 comments on commit 5cd76be

Please sign in to comment.