about summary refs log tree commit diff
path: root/compiler/rustc_pattern_analysis/src
diff options
context:
space:
mode:
authorJubilee Young <workingjubilee@gmail.com>2024-07-16 23:37:18 -0700
committerJubilee Young <workingjubilee@gmail.com>2024-07-16 23:46:03 -0700
commite285c95cee3b5aaa01d731df8a7096e028460eb9 (patch)
treeb51a386029846651c9d75de775458f5d0b0f044a /compiler/rustc_pattern_analysis/src
parent17c70a9aacd54fefa76d6e349e6d050a9445c9a7 (diff)
downloadrust-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')
0 files changed, 0 insertions, 0 deletions