Skip to content

Commit 5587f8c

Browse files
committed
Improve compile_error! message
1 parent 25bd5a5 commit 5587f8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rdrand.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ unsafe fn rdrand() -> Result<[u8; WORD_SIZE], Error> {
3232
}
3333

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

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

0 commit comments

Comments
 (0)