summaryrefslogtreecommitdiff
path: root/tests/rustdoc-js-std/parser-errors.js
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-01-03 04:54:03 +0000
committerbors <bors@rust-lang.org>2023-01-03 04:54:03 +0000
commit442f997f98ac9f16f60ba3a7109f884dbf8d370c (patch)
tree644e0d2b3c45e2e04c5071831e540038bc11e443 /tests/rustdoc-js-std/parser-errors.js
parent481c9bad80754670197cf28d8c6d43825d4404f0 (diff)
parente7cad62257e5b0d59ca18515a522e90924177330 (diff)
downloadrust-442f997f98ac9f16f60ba3a7109f884dbf8d370c.tar.gz
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).
Diffstat (limited to 'tests/rustdoc-js-std/parser-errors.js')
0 files changed, 0 insertions, 0 deletions