Files
rust/compiler
bors 442f997f98 Auto merge of #106371 - RalfJung:no-ret-position-noalias, r=nikic
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).
2023-01-03 04:54:03 +00:00
..
2022-12-06 14:45:58 +00:00
2023-01-01 21:33:23 -08:00
2023-01-02 20:15:48 +01:00
2022-12-25 00:43:50 +01:00
2022-12-25 00:43:50 +01:00