Skip to content

Commit

Permalink
Improve compile_error! message
Browse files Browse the repository at this point in the history
  • Loading branch information
josephlr committed Jun 16, 2019
1 parent 25bd5a5 commit 5587f8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rdrand.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ unsafe fn rdrand() -> Result<[u8; WORD_SIZE], Error> {
}

#[cfg(all(target_env = "sgx", not(target_feature = "rdrand")))]
compile_error!("SGX targets must enable RDRAND to get randomness");
compile_error!("Target feature +rdrnd must be enabled for SGX targets.");

// TODO use is_x86_feature_detected!("rdrand") when that works in core. See:
// https://github.com/rust-lang-nursery/stdsimd/issues/464
Expand Down

0 comments on commit 5587f8c

Please sign in to comment.