forked from lowRISC/opentitan
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[sw] Fix SAFETY comments in
status.rs
This commit moves the safety comments above what they're annotating. It also adds a safety comment about the `transmute` from bytes loaded from an ELF into an extern C struct. Had to extract `mod_id_ptr` to change the `is_err_status` line's formatting to fit on one line. This is to work around a clippy bug which is fixed in <rust-lang/rust-clippy#11170> but our Rust toolchain is too old. Signed-off-by: James Wainwright <[email protected]>
- Loading branch information
1 parent
0545a87
commit 0268a8f
Showing
1 changed file
with
17 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters