-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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 19 pull requests #57005
Rollup of 19 pull requests #57005
Commits on Dec 15, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 1bdd6ca - Browse repository at this point
Copy the full SHA 1bdd6caView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7f9883d - Browse repository at this point
Copy the full SHA 7f9883dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9ca2902 - Browse repository at this point
Copy the full SHA 9ca2902View commit details -
Configuration menu - View commit details
-
Copy full SHA for c4fa1d2 - Browse repository at this point
Copy the full SHA c4fa1d2View commit details
Commits on Dec 16, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 0815531 - Browse repository at this point
Copy the full SHA 0815531View commit details -
Configuration menu - View commit details
-
Copy full SHA for bf4a984 - Browse repository at this point
Copy the full SHA bf4a984View commit details -
Configuration menu - View commit details
-
Copy full SHA for fba23d0 - Browse repository at this point
Copy the full SHA fba23d0View commit details -
Add test to check order of repr(int) enum fields
RFC rust-lang#2195 specifies that a repr(int) enum such as: #[repr(u8)] enum MyEnum { B { x: u8, y: i16, z: u8 }, } has a layout that is equivalent to: #[repr(C)] enum MyEnumVariantB { tag: u8, x: u8, y: i16, z: u8 }, However this isn't actually implemented, with the actual layout being roughly equivalent to: union MyEnumPayload { B { x: u8, y: i16, z: u8 }, } #[repr(packed)] struct MyEnum { tag: u8, payload: MyEnumPayload, } Thus the variant payload is *not* subject to repr(C) ordering rules, and gets re-ordered as `{ x: u8, z: u8, z: i16 }` The existing tests added in pull-req rust-lang#45688 fail to catch this as the repr(C) ordering just happens to match the current Rust ordering in this case; adding a third field reveals the problem.
Configuration menu - View commit details
-
Copy full SHA for d84bdba - Browse repository at this point
Copy the full SHA d84bdbaView commit details -
rustc: Update Clang used to build LLVM on LInux
This commit updates from LLVM 7.0.0 to git revisions of clang/llvm/lld to build LLVM on our dist builders for Linux. The goal of this is to fix rust-lang#56849 by picking up a fix [1] in LLD. Closes rust-lang#56849 [1]: llvm-mirror/lld@3be4e82
Configuration menu - View commit details
-
Copy full SHA for bbce189 - Browse repository at this point
Copy the full SHA bbce189View commit details
Commits on Dec 17, 2018
-
Adding a map to TypeckTables to get the list of all the Upvars given a closureID. This is help us get rid of the recurring pattern in the codebase of iterating over the free vars using with_freevars.
Configuration menu - View commit details
-
Copy full SHA for a2b6401 - Browse repository at this point
Copy the full SHA a2b6401View commit details -
Configuration menu - View commit details
-
Copy full SHA for 37c3561 - Browse repository at this point
Copy the full SHA 37c3561View commit details -
Configuration menu - View commit details
-
Copy full SHA for b31a1f7 - Browse repository at this point
Copy the full SHA b31a1f7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7e2e489 - Browse repository at this point
Copy the full SHA 7e2e489View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3e7a4ca - Browse repository at this point
Copy the full SHA 3e7a4caView commit details -
static eval: Do not ICE on layout size overflow
Layout size overflow and typeck eval errors are reported. Trigger a bug only when the eval error is strictly labeled as TooGeneric.
Configuration menu - View commit details
-
Copy full SHA for e7e17f9 - Browse repository at this point
Copy the full SHA e7e17f9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6130fc8 - Browse repository at this point
Copy the full SHA 6130fc8View commit details
Commits on Dec 18, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 50eb5f6 - Browse repository at this point
Copy the full SHA 50eb5f6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 170f068 - Browse repository at this point
Copy the full SHA 170f068View commit details
Commits on Dec 19, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 00bd306 - Browse repository at this point
Copy the full SHA 00bd306View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0829d0c - Browse repository at this point
Copy the full SHA 0829d0cView commit details -
Configuration menu - View commit details
-
Copy full SHA for d751954 - Browse repository at this point
Copy the full SHA d751954View commit details -
Configuration menu - View commit details
-
Copy full SHA for cbe9abb - Browse repository at this point
Copy the full SHA cbe9abbView commit details -
Configuration menu - View commit details
-
Copy full SHA for a6943d9 - Browse repository at this point
Copy the full SHA a6943d9View commit details -
Configuration menu - View commit details
-
Copy full SHA for b2d8040 - Browse repository at this point
Copy the full SHA b2d8040View commit details -
Configuration menu - View commit details
-
Copy full SHA for 202904b - Browse repository at this point
Copy the full SHA 202904bView commit details -
Adding unwinding support for x86_64_fortanix_unknown_sgx target.
Vardhan Thigle committedDec 19, 2018 Configuration menu - View commit details
-
Copy full SHA for 885cf2a - Browse repository at this point
Copy the full SHA 885cf2aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 818ed69 - Browse repository at this point
Copy the full SHA 818ed69View commit details -
Configuration menu - View commit details
-
Copy full SHA for ae3f6b0 - Browse repository at this point
Copy the full SHA ae3f6b0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7eb67c2 - Browse repository at this point
Copy the full SHA 7eb67c2View commit details -
Configuration menu - View commit details
-
Copy full SHA for a153d48 - Browse repository at this point
Copy the full SHA a153d48View commit details -
Configuration menu - View commit details
-
Copy full SHA for 036ce5c - Browse repository at this point
Copy the full SHA 036ce5cView commit details
Commits on Dec 20, 2018
-
Rollup merge of rust-lang#56842 - scottmcm:vecdeque-rotate, r=alexcri…
…chton Add unstable VecDeque::rotate_{left|right} Like the ones on slices, but more efficient because vecdeque is a circular buffer. Issue that proposed this: rust-lang#56686 ~~:bomb: Please someone look very carefully at the `unsafe` in this! The `wrap_copy` seems to be exactly what this method needs, and the `len` passed to it is never more than half the length of the deque, but I haven't managed to prove to myself that it's correct :bomb:~~ I think I proved that this code meets the requirement of the unsafe code it's calling; please double-check, of course.
Configuration menu - View commit details
-
Copy full SHA for 7b70b0b - Browse repository at this point
Copy the full SHA 7b70b0bView commit details -
Rollup merge of rust-lang#56843 - csmoe:non-copy, r=davidtwco
Add a note describing the type of the non-Copy moved variable Closes rust-lang#56654 r?@davidtwco
Configuration menu - View commit details
-
Copy full SHA for 063e4a2 - Browse repository at this point
Copy the full SHA 063e4a2View commit details -
Rollup merge of rust-lang#56845 - GuillaumeGomez:const-docs, r=oli-obk
Don't render const keyword on stable Fixes rust-lang#55246. Continuation of rust-lang#55327. r? @oli-obk
Configuration menu - View commit details
-
Copy full SHA for 80bc55b - Browse repository at this point
Copy the full SHA 80bc55bView commit details -
Rollup merge of rust-lang#56862 - arielb1:fundamentally-clean, r=niko…
…matsakis stop treating trait objects from #[fundamental] traits as fundamental This is a [breaking-change] to code that exploits this functionality (which should be limited to code using `#![feature(fundamental)]`. Fixes rust-lang#56503. r? @nikomatsakis
Configuration menu - View commit details
-
Copy full SHA for 234c340 - Browse repository at this point
Copy the full SHA 234c340View commit details -
Rollup merge of rust-lang#56869 - GuillaumeGomez:index-size-reduction…
…, r=QuietMisdreavus Reduce search-index.js size Coming from: ``` 1735683 Dec 16 01:35 build/x86_64-apple-darwin/doc/search-index.js ``` to: ``` 727755 Dec 16 01:51 build/x86_64-apple-darwin/doc/search-index.js ``` r? @QuietMisdreavus
Configuration menu - View commit details
-
Copy full SHA for 7c7e21a - Browse repository at this point
Copy the full SHA 7c7e21aView commit details -
Rollup merge of rust-lang#56887 - emilio:enum-field-reordering, r=eddyb
Disable field reordering for repr(int). This fixes the problem that the test in rust-lang#56619 uncovers. Closes rust-lang#56619.
Configuration menu - View commit details
-
Copy full SHA for e12e472 - Browse repository at this point
Copy the full SHA e12e472View commit details -
Rollup merge of rust-lang#56892 - alexcrichton:new-llvm, r=michaelwoe…
…rister rustc: Update Clang used to build LLVM on Linux This commit updates from LLVM 7.0.0 to git revisions of clang/llvm/lld to build LLVM on our dist builders for Linux. The goal of this is to fix rust-lang#56849 by picking up a fix [1] in LLD. Closes rust-lang#56849 [1]: llvm-mirror/lld@3be4e82
Configuration menu - View commit details
-
Copy full SHA for e801ffa - Browse repository at this point
Copy the full SHA e801ffaView commit details -
Rollup merge of rust-lang#56906 - blitzerr:master, r=nikomatsakis
Issue rust-lang#56905 Adding a map to TypeckTables to get the list of all the Upvars given a closureID. This is help us get rid of the recurring pattern in the codebase of iterating over the free vars using with_freevars.
Configuration menu - View commit details
-
Copy full SHA for f46a757 - Browse repository at this point
Copy the full SHA f46a757View commit details -
Rollup merge of rust-lang#56909 - dlrobertson:fix_56762, r=estebank
static eval: Do not ICE on layout size overflow Layout size overflow and typeck eval errors are reported. Trigger a bug only when the eval error is strictly labeled as TooGeneric. Fixes: rust-lang#56762
Configuration menu - View commit details
-
Copy full SHA for 7b61ef3 - Browse repository at this point
Copy the full SHA 7b61ef3View commit details -
Rollup merge of rust-lang#56914 - glaubitz:ignore-tests, r=alexcrichton
Ignore ui/target-feature-gate on sparc, sparc64, powerpc, powerpc64 and powerpc64le The test ui/target-feature-gate is not applicable on sparc, sparc64, powerpc, powerpc64 and powerpc64le and consequently fails there. So just ignore it on these targets.
Configuration menu - View commit details
-
Copy full SHA for 7429367 - Browse repository at this point
Copy the full SHA 7429367View commit details -
Rollup merge of rust-lang#56916 - oli-obk:static_mut_beta_regression,…
… r=davidtwco Fix a recently introduced regression fixes rust-lang#56903
Configuration menu - View commit details
-
Copy full SHA for 5ecc80a - Browse repository at this point
Copy the full SHA 5ecc80aView commit details -
Rollup merge of rust-lang#56919 - oli-obk:null_ref_array_tuple, r=Ral…
…fJung Remove a wrong multiplier on relocation offset computation r? @RalfJung fixes rust-lang#56800
Configuration menu - View commit details
-
Copy full SHA for d96be3d - Browse repository at this point
Copy the full SHA d96be3dView commit details -
Rollup merge of rust-lang#56933 - clarcharr:xpy_progress, r=Mark-Simu…
…lacrum Add --progress to git submodule commands in x.py This is a relatively new flag, but it means that git will indicate the progress of the update as it would with regular clones. This is especially helpful as some of the submodules are really big and it's difficult to tell if it's hanging or still updating.
Configuration menu - View commit details
-
Copy full SHA for 5a118d4 - Browse repository at this point
Copy the full SHA 5a118d4View commit details -
Rollup merge of rust-lang#56954 - hug-dev:armv8m-main-ci, r=alexcrichton
Add dist builder for Armv8-M Mainline This commit adds the Armv8-M Mainline target in the list of targets that get their dist components built. It also update the build-manifest so that this target gets also its dist components uploaded. I took example on other pull requests doing the same thing for another target to make the changes. Please feel free to comment if things needs to be added or removed. Doing `./x.py dist --target thumbv8m.main-none-eabi` worked locally so I assume that this will also work on the CI. It will (I think) however need a new release of alexcrichton/cc-rs to include the pull request rust-lang/cc-rs#363 @alexcrichton I hope to do the HardFloat version (`thumbv8m.main-none-eabihf`) and Baseline (`thumbv8m.base-none-eabi`) later, as fixes need to be done on compiler-builtins first to support those.
Configuration menu - View commit details
-
Copy full SHA for 3fa6672 - Browse repository at this point
Copy the full SHA 3fa6672View commit details -
Rollup merge of rust-lang#56970 - Firstyear:mem_uninit_doc_ptr_drop, …
…r=Manishearth Mem uninit doc ptr drop Extend the mem::uninitialized documentation to account for partially initialized arrays and how to correctly handle these. These are used in some datastructures (trees for example) or in FFI. r? @Manishearth
Configuration menu - View commit details
-
Copy full SHA for bfb4cce - Browse repository at this point
Copy the full SHA bfb4cceView commit details -
Rollup merge of rust-lang#56973 - RalfJung:miri-trace, r=oli-obk
make basic CTFE tracing available on release builds Debugging things going wrong in miri is currently pretty much impossible with a nightly Rust. r? @oli-obk
Configuration menu - View commit details
-
Copy full SHA for 3b15bd2 - Browse repository at this point
Copy the full SHA 3b15bd2View commit details -
Rollup merge of rust-lang#56979 - VardhanThigle:Vardhan/rust-sgx-unwi…
…nd-support, r=alexcrichton Adding unwinding support for x86_64_fortanix_unknown_sgx target. Unwinding support is provided by our port of LLVM's libunwind which is available from https://github.com/fortanix/libunwind/tree/release_50. libunwind requires support for rwlock and printing to stderr, which is only provided by `std` for this target. This poses two problems: 1) how to expose the `std` functionality to C and 2) dependency inversion. ### Exposing `std` For exposing the functionality we chose to expose the following symbols: * __rust_rwlock_rdlock * __rust_rwlock_wrlock * __rust_rwlock_unlock * __rust_print_err * __rust_abort Also, the following are needed from `alloc`: * __rust_alloc * __rust_dealloc #### Rust RWLock in C In `libunwind`, RWLock is initialized as a templated static variable: ```c pthread_rwlock_t DwarfFDECache<A>::_lock = PTHREAD_RWLOCK_INITIALIZER; ``` I don't know of a good way to use the Rust sys::rwlock::RWLock type and initializer there. We could have a static global variable in Rust, but that doesn't work with the templating. The variable needs to be initialized statically, since this target doesn't support the .init section. Currently, I just used a byte array and standard C array initialization. The mapping between this C type and the Rust type needs to be manually maintained. There is a compile-time check and a unit test to make sure the Rust versions of these C definitions match the actual Rust type. If any reviewer knows of a better solution, please do tell. ### Dependency inversion issue `std` depends on `panic_unwind` which depends on `libunwind`, and `libunwind` depends on `std`. This is not normally supported by Rust's linking system. Therefore we use raw C exports from `std` *and* `libunwind.a` is linked last in the target `post_link_objects` instead of being built as part of the Rust `libunwind`. Currently, all C exports are defined in `src/libstd/sys/sgx/rwlock.rs` to overcome LTO issues. Only the `__rust_rwlock_*` definitions *need* to live there for privacy reasons. Once again, if any reviewer knows of a better solution, please do tell. r? @alexcrichton
Configuration menu - View commit details
-
Copy full SHA for 04e51eb - Browse repository at this point
Copy the full SHA 04e51ebView commit details -
Rollup merge of rust-lang#56984 - ljedrz:dropck_outlives_tweaks, r=ol…
…i-obk A few tweaks to dropck_outlives - remove an unnecessary call to `cloned()` - simplify common patterns
Configuration menu - View commit details
-
Copy full SHA for b2207e2 - Browse repository at this point
Copy the full SHA b2207e2View commit details -
Rollup merge of rust-lang#56989 - phansch:fix_compiletest_trim_deprec…
…ations, r=Mark-Simulacrum Fix compiletest `trim` deprecation warnings None
Configuration menu - View commit details
-
Copy full SHA for 0880d95 - Browse repository at this point
Copy the full SHA 0880d95View commit details