diff options
| author | Tsukasa OI <floss_rust@irq.a4lg.com> | 2025-04-11 01:13:44 +0000 |
|---|---|---|
| committer | Amanieu d'Antras <amanieu@gmail.com> | 2025-04-16 00:56:48 +0000 |
| commit | c36e9de178fe9e01e38dac70578733514f2df37b (patch) | |
| tree | 9c20de8ca1dac498b1045fde43c3a0c3b3203bd3 /library/stdarch/crates/std_detect/src/detect | |
| parent | 0b0c0e47f82935225a26f705a9fed74bdb0a01db (diff) | |
| download | rust-c36e9de178fe9e01e38dac70578733514f2df37b.tar.gz rust-c36e9de178fe9e01e38dac70578733514f2df37b.zip | |
RISC-V: tidying: Prefer more canonical reference
1. Use canonical kernel.org repository instead of the GitHub mirror.
2. Refer to the fixed commit to guarantee access.
3. Use `uapi` part to ensure that the feature detection is primarily
intended for user-mode programs.
Diffstat (limited to 'library/stdarch/crates/std_detect/src/detect')
| -rw-r--r-- | library/stdarch/crates/std_detect/src/detect/os/linux/riscv.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/stdarch/crates/std_detect/src/detect/os/linux/riscv.rs b/library/stdarch/crates/std_detect/src/detect/os/linux/riscv.rs index 2a9671d75dd..74129a2f450 100644 --- a/library/stdarch/crates/std_detect/src/detect/os/linux/riscv.rs +++ b/library/stdarch/crates/std_detect/src/detect/os/linux/riscv.rs @@ -21,7 +21,7 @@ pub(crate) fn detect_features() -> cache::Initializer { // The values are part of the platform-specific [asm/hwcap.h][hwcap] // - // [hwcap]: https://github.com/torvalds/linux/blob/master/arch/riscv/include/asm/hwcap.h + // [hwcap]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/riscv/include/uapi/asm/hwcap.h?h=v6.14 let auxv = auxvec::auxv().expect("read auxvec"); // should not fail on RISC-V platform #[allow(clippy::eq_op)] enable_feature( |
