diff options
| author | Jubilee Young <workingjubilee@gmail.com> | 2024-07-16 23:37:18 -0700 |
|---|---|---|
| committer | Jubilee Young <workingjubilee@gmail.com> | 2024-07-16 23:46:03 -0700 |
| commit | e285c95cee3b5aaa01d731df8a7096e028460eb9 (patch) | |
| tree | b51a386029846651c9d75de775458f5d0b0f044a /compiler/rustc_pattern_analysis/src/errors.rs | |
| parent | 17c70a9aacd54fefa76d6e349e6d050a9445c9a7 (diff) | |
| download | rust-e285c95cee3b5aaa01d731df8a7096e028460eb9.tar.gz rust-e285c95cee3b5aaa01d731df8a7096e028460eb9.zip | |
unix: stack_start_aligned is a safe fn
This function is purely informative, answering where a stack starts. This is a safe operation, even if an answer requires unsafe code, and even if the result is some unsafe code decides to trust the answer. It also doesn't need to fetch the PAGE_SIZE when its caller just did so! Let's complicate its signature and in doing so simplify its operation. This allows sprinkling around #[forbid(unsafe_op_in_unsafe_fn)]
Diffstat (limited to 'compiler/rustc_pattern_analysis/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
