Repository navigation
Mention alignment in handle_alloc_error - #166665
clarfonthey wants to merge 1 commit into
Conversation
|
r? @joboet rustbot has assigned @joboet. Use Why was this reviewer chosen?The reviewer was selected based on:
|
This comment has been minimized.
This comment has been minimized.
1ceeb31 to
3cab7b2
Compare
|
cc @rust-lang/miri |
|
Lovely! I don't think we guarantee anything about the panic messages, so I'll just unilaterally approve this. @bors r+ rollup |
|
This only changes the message for no_std builds. libstd has a separate implementation at Lines 388 to 400 in d5bb9f8 |
…gn, r=joboet Mention alignment in handle_alloc_error cc @rust-lang/wg-allocators @folkertdev Essentially, since malloc doesn't actually handle large alignments, it would be useful to just return an error for overaligned values, but this wouldn't be printed by the handler since currently we ignore the alignment. This changes that so it is printed, so that at least people can understand if failures are due to alignment.
…gn, r=joboet Mention alignment in handle_alloc_error cc @rust-lang/wg-allocators @folkertdev Essentially, since malloc doesn't actually handle large alignments, it would be useful to just return an error for overaligned values, but this wouldn't be printed by the handler since currently we ignore the alignment. This changes that so it is printed, so that at least people can understand if failures are due to alignment.
…uwer Rollup of 5 pull requests Successful merges: - #166232 (Fix considering `[u8; 0]` to have trivial ABI in layout) - #166663 (optimize `ArrayWindows::nth`) - #166693 (Make function signatures a separate type in `rustc_codegen_llvm`) - #166699 (rustc_serialize: Remove unnecessary lifetime from `FileEncoder`) - #166665 (Mention alignment in handle_alloc_error)
|
Please adjust that as well... |
|
This pull request was unapproved. This PR was contained in a rollup (#166706), which was unapproved. |
cc @rust-lang/wg-allocators @folkertdev
Essentially, since malloc doesn't actually handle large alignments, it would be useful to just return an error for overaligned values, but this wouldn't be printed by the handler since currently we ignore the alignment. This changes that so it is printed, so that at least people can understand if failures are due to alignment.