mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-21 12:07:31 +00:00
![]() do not add noalias in return position `noalias` as a return attribute in LLVM indicates that the returned pointer does not alias anything else that is reachable from the caller, *including things reachable before this function call*. This is clearly not the case with a function like `fn id(Box<T>) -> Box<T>`, so we cannot use this attribute. Fixes https://github.com/rust-lang/unsafe-code-guidelines/issues/385 (including an actual miscompilation that `@comex` managed to produce). |
||
---|---|---|
.. | ||
abi.rs | ||
assoc.rs | ||
common_traits.rs | ||
consts.rs | ||
errors.rs | ||
implied_bounds.rs | ||
instance.rs | ||
layout_sanity_check.rs | ||
layout.rs | ||
lib.rs | ||
needs_drop.rs | ||
representability.rs | ||
structural_match.rs | ||
ty.rs |