Skip to content

Rollup of 5 pull requests - #60646

Closed
Centril wants to merge 10 commits into
rust-lang:masterfrom
Centril:rollup-bo73kni
Closed

Rollup of 5 pull requests#60646
Centril wants to merge 10 commits into
rust-lang:masterfrom
Centril:rollup-bo73kni

Conversation

@Centril

Copy link
Copy Markdown
Contributor

stepanchegand others added 10 commits May 5, 2019 23:07
... on different platforms.
Official rustdoc of
[`usize::to_le_bytes`](https://doc.rust-lang.org/std/primitive.usize.html#method.to_le_bytes)
displays signature
```
pub fn to_ne_bytes(self) -> [u8; 8]
```
which might be misleading: this function returns 4 bytes on 32-bit
systems.
It was fixed somewhere between 1.28.0 and 1.31.1
closesrust-lang#50518
Pulls in a fix for ensuring that wasm targets have code in
compiler-builtins for `ldexp` which LLVM can generate references to.
to_xe_bytes for isize and usize returns an array of different size
... on different platforms.
Official rustdoc of
[`usize::to_le_bytes`](https://doc.rust-lang.org/std/primitive.usize.html#method.to_le_bytes)
displays signature
```
pub fn to_ne_bytes(self) -> [u8; 8]
```
which might be misleading: this function returns 4 bytes on 32-bit
systems.
With this commit applied rustdoc for `isize` and `usize` is this:
<img width="740" alt="2019-04-15_0020" src="https://user-images.githubusercontent.com/28969/56100765-9f69b380-5f14-11e9-974c-daa25edaa881.png">
std: Update compiler-builtins crate
Pulls in a fix for ensuring that wasm targets have code in
compiler-builtins for `ldexp` which LLVM can generate references to.
test for rust-lang#50518
It was fixed somewhere between 1.28.0 and 1.31.1
closesrust-lang#50518
r? @estebank
Where's the best place to add this test? I *think* we want "compile-pass" for this test (no need to run a binary, and not running saves us a millisecond of process creation) , but there's no compile-pass anymore.
Should this be UI test with empty stdout, stderr and zero return code?
Document + Cleanup lang_items.rs
Byproduct of work on rust-lang#60607.
r? @oli-obk
@CentrilCentril closed this May 8, 2019
@Centril
Centril deleted the rollup-bo73kni branch May 8, 2019 22:58
@CentrilCentril added the rollup A PR which is a rollup label Oct 24, 2019
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

rollupA PR which is a rollup

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@Centril@stepancheg@tmandry@matklad@alexcrichton