-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rollup of 20 pull requests #56875
Rollup of 20 pull requests #56875
Conversation
`mir_stats` mod has not been used since c1ff104.
Popping and pushing from the end of a linked list is constant time. This documentation is already there for popping and pushing from the front. @bors: r+ 38fe8d2 rollup
Enum layout optimizations mean that the discriminant of an enum may not be stored in a tag disjoint from the rest of the fields of the enum. Stop borrow checking as though they are.
This is going to be required for binding a number of AVX-512 intrinsics in the `stdsimd` repository, and this intrinsic is the same as `simd_select` except that it takes a bitmask as the first argument instead of a SIMD vector. This bitmask is then transmuted into a `<NN x i8>` argument, depending on how many bits it is. cc rust-lang/stdarch#310
This appears to be called `cx16` in LLVM and a few other locations, but the Intel Intrinsic Guide doesn't have a name for this and the CPU manual from Intel only mentions `cmpxchg16b`, so that's the name chosen here.
No more need to duplicate the demangling routine between crates.io and the standard library, we can use the exact same one!
This issue has since been fixed in LLVM: llvm-mirror/llvm@1886c8e Furthermore this doesn't actually work, because the "8" literal does not match the $BITS provided from the macro invocation, so effectively this code was not being used anyway...
`max` on floats returns the other argument if one of them is NaN, which would be `0.0` in this case. This is unlike the C functions `fdim` and `fdimf` which return NaN if either of their arguments is NaN. https://doc.rust-lang.org/1.31.0/std/primitive.f32.html#method.max https://en.cppreference.com/w/c/numeric/math/fdim
Point out that the final component of the path name might be a filename (and not a directory name). Previously, the doc said that all components of the path must be directory names, when it actually only ment all but the final one. Fixes rust-lang#54056.
Fix a small mistake regarding NaNs in a deprecation message `max` on floats returns the other argument if one of them is NaN, which would be `0.0` in this case. This is unlike the C functions `fdim` and `fdimf` which return NaN if either of their arguments is NaN. https://doc.rust-lang.org/1.31.0/std/primitive.f32.html#method.max https://en.cppreference.com/w/c/numeric/math/fdim
Fix doc of `std::fs::canonicalize` Point out that the final component of the path name might be a filename (and not a directory name). Previously, the doc said that all components of the path must be directory names, when it actually only ment all but the final one. Fixes rust-lang#54056.
📌 Commit 6574d83 has been approved by |
⌛ Testing commit 6574d83 with merge 155fe77b39ab96064e510d292fd520ff750002f1... |
💔 Test failed - status-travis |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
@bors retry Likely spurious. |
Rollup of 20 pull requests Successful merges: - #53506 (Documentation for impl From for AtomicBool and other Atomic types) - #56343 (Remove not used mod) - #56439 (Clearer error message for dead assign) - #56640 (Add FreeBSD unsigned char platforms to std::os::raw) - #56648 (Fix BTreeMap UB) - #56672 (Document time of back operations of a Linked List) - #56706 (Make `const unsafe fn` bodies `unsafe`) - #56742 (infer: remove Box from a returned Iterator) - #56761 (Suggest using `.display()` when trying to print a `Path`) - #56781 (Update LLVM submodule) - #56789 (rustc: Add an unstable `simd_select_bitmask` intrinsic) - #56790 (Make RValue::Discriminant a normal Shallow read) - #56793 (rustdoc: look for comments when scraping attributes/crates from doctests) - #56826 (rustc: Add the `cmpxchg16b` target feature on x86/x86_64) - #56832 (std: Use `rustc_demangle` from crates.io) - #56844 (Improve CSS rule) - #56850 (Fixed issue with using `Self` ctor in typedefs) - #56855 (Remove u8 cttz hack) - #56857 (Fix a small mistake regarding NaNs in a deprecation message) - #56858 (Fix doc of `std::fs::canonicalize`) Failed merges: - #56741 (treat ref-to-raw cast like a reborrow: do a special kind of retag) r? @ghost
☀️ Test successful - status-appveyor, status-travis |
📣 Toolstate changed by #56875! Tested on commit a8a2a88. 💔 rust-by-example on windows: test-pass → test-fail (cc @steveklabnik @marioidival @projektir, @rust-lang/infra). |
Tested on commit rust-lang/rust@a8a2a88. Direct link to PR: <rust-lang/rust#56875> 💔 rust-by-example on windows: test-pass → test-fail (cc @steveklabnik @marioidival @projektir, @rust-lang/infra). 💔 rust-by-example on linux: test-pass → test-fail (cc @steveklabnik @marioidival @projektir, @rust-lang/infra).
Successful merges:
const unsafe fn
bodiesunsafe
#56706 (Makeconst unsafe fn
bodiesunsafe
).display()
when trying to print aPath
#56761 (Suggest using.display()
when trying to print aPath
)simd_select_bitmask
intrinsic #56789 (rustc: Add an unstablesimd_select_bitmask
intrinsic)cmpxchg16b
target feature on x86/x86_64 #56826 (rustc: Add thecmpxchg16b
target feature on x86/x86_64)rustc_demangle
from crates.io #56832 (std: Userustc_demangle
from crates.io)Self
ctor in typedefs #56850 (Fixed issue with usingSelf
ctor in typedefs)std::fs::canonicalize
#56858 (Fix doc ofstd::fs::canonicalize
)Failed merges:
r? @ghost