summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Auto merge of #57914 - jethrogb:jb/sgx-unwind-version, r=alexcrichtonc9788fdd5b8bors2019-01-315-25/+35
|\ | | | | | | | | | | | | | | | | | | SGX target: clean up dist builder, update libunwind This incorporates https://github.com/fortanix/llvm-project/pull/4 Fixes https://github.com/fortanix/rust-sgx/issues/65 r? @alexcrichton
| * Updated commit id for building libunwind.Vardhan Thigle2019-01-312-2/+2
| |
| * Update SGX libunwindJethro Beekman2019-01-261-1/+1
| |
| * Clean up build-x86_64-fortanix-unknown-sgx-toolchain.shJethro Beekman2019-01-264-23/+33
| |
* | Auto merge of #58003 - nikic:saturating-add, r=nagisabors2019-01-315-3/+101
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use LLVM intrinsics for saturating add/sub Use the `[su](add|sub).sat` LLVM intrinsics, if we're compiling against LLVM 8, as they should optimize and codegen better than IR based on `[su](add|sub).with.overlow`. For the fallback for LLVM < 8 I'm using the same expansion that target lowering in LLVM uses, which is not the same as Rust currently uses (in particular due to the use of selects rather than branches). Fixes #55286. Fixes #52203. Fixes #44500. r? @nagisa
| * | Use LLVM intrinsics for saturating add/subNikita Popov2019-01-295-3/+101
| | |
* | | Auto merge of #57514 - michaelwoerister:xlto-tests, r=alexcrichtonbors2019-01-3115-21/+175
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | compiletest: Support opt-in Clang-based run-make tests and use them for testing xLTO. Some cross-language run-make tests need a Clang compiler that matches the LLVM version of `rustc`. Since such a compiler usually isn't available these tests (marked with the `needs-matching-clang` directive) are ignored by default. For some CI jobs we do need these tests to run unconditionally though. In order to support this a `--force-clang-based-tests` flag is added to compiletest. If this flag is specified, `compiletest` will fail if it can't detect an appropriate version of Clang. @rust-lang/infra The PR doesn't yet enable the tests yet. Do you have any recommendation for which jobs to enable them? cc #57438 r? @alexcrichton
| * | | CI: Use lld for linking LLVM in the x86_64-gnu-debug image.Michael Woerister2019-01-301-0/+1
| | | |
| * | | bootstrap: Expose LLVM_USE_LINKER cmake option to config.toml.Michael Woerister2019-01-303-0/+11
| | | |
| * | | ci: Use clang as the C++ compiler for x86_64-gnu-debug.Michael Woerister2019-01-301-3/+9
| | | |
| * | | bootstrap: Make LLD available to run-make tests.Michael Woerister2019-01-301-14/+27
| | | |
| * | | Add missing packages.Michael Woerister2019-01-301-0/+5
| | | |
| * | | Enable Clang-based tests on x86_64-gnu-debug builder.Michael Woerister2019-01-241-1/+8
| | | |
| * | | compiletest: Simplify handling of Clang-based tests.Michael Woerister2019-01-176-109/+26
| | | |
| * | | Support clang-based run-make tests in rustbuild.Michael Woerister2019-01-171-5/+30
| | | |
| * | | compiletest: Support opt-in Clang-based run-make tests.Michael Woerister2019-01-173-1/+101
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some cross-language run-make tests need a Clang compiler that matches the LLVM version of rustc. Since such a compiler usually isn't available these tests (marked with the "needs-matching-clang" directive) are ignored by default. For some CI jobs we do need these tests to run unconditionally though. In order to support this a --force-clang-based-tests flag is added to compiletest. If this flag is specified, compiletest will fail if it can't detect an appropriate version of Clang.
| * | | Add an end-to-end run-make test for cross-lang LTO.Michael Woerister2019-01-175-0/+69
| | | |
* | | | Auto merge of #58016 - Centril:rollup, r=Centrilbors2019-01-3129-89/+319
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rollup of 12 pull requests Successful merges: - #57008 (suggest `|` when `,` founds in invalid match value) - #57106 (Mark str::trim.* functions as #[must_use].) - #57920 (use `SOURCE_DATE_EPOCH` for man page time if set) - #57934 (Introduce into_raw_non_null on Rc and Arc) - #57971 (SGX target: improve panic & exit handling) - #57980 (Add the edition guide to the bookshelf) - #57984 (Improve bug message in check_ty) - #57999 (Add MOVBE x86 CPU feature) - #58000 (Fixes and cleanups) - #58005 (update docs for fix_start/end_matches) - #58007 (Don't panic when accessing enum variant ctor using `Self` in match) - #58008 (Pass correct arguments to places_conflict) Failed merges: r? @ghost
| * \ \ \ Rollup merge of #58008 - matthewjasper:places-conflict-args, r=oli-obkMazdak Farrokhzad2019-01-313-1/+37
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Pass correct arguments to places_conflict The borrow place *must* be a place that we track borrows for, otherwise we will likely ICE. Closes #57989
| | * | | | Pass correct arguments to places_conflictMatthew Jasper2019-01-303-1/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The borrow place *must* be a place that we track borrows for, otherwise we will likely ICE.
| * | | | | Rollup merge of #58007 - estebank:issue-58006, r=petrochenkovMazdak Farrokhzad2019-01-313-1/+26
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Don't panic when accessing enum variant ctor using `Self` in match Fix #58006. r? @petrochenkov
| | * | | | | Don't panic when accessing enum variant ctor using `Self` in matchEsteban Küber2019-01-303-1/+26
| | |/ / / /
| * | | | | Rollup merge of #58005 - vitiral:docs_trim_start_matches, r=ManishearthMazdak Farrokhzad2019-01-311-8/+8
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | update docs for fix_start/end_matches fixes #57686:
| | * | | | | fix #57686: update docs for fix_start/end_matchesRett Berg2019-01-301-8/+8
| | | | | | |
| * | | | | | Rollup merge of #58000 - oli-obk:fixes_and_cleanups, r=RalfJungMazdak Farrokhzad2019-01-317-45/+77
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes and cleanups Address the points raised in https://github.com/rust-lang/rust/pull/57677/files by @eddyb and @RalfJung
| | * | | | | | Failure resistent trait implementingOliver Scherer2019-01-301-1/+2
| | | | | | | |
| | * | | | | | Swap the names of `LocalValue` and `LocalState`Oliver Scherer2019-01-304-33/+33
| | | | | | | |
| | * | | | | | Prefer macro over manual implementationOliver Scherer2019-01-301-12/+6
| | | | | | | |
| | * | | | | | Eliminate an unwrapOliver Scherer2019-01-301-10/+11
| | | | | | | |
| | * | | | | | Monomorphize types when not going through `layout_of_local`Oliver Scherer2019-01-302-2/+3
| | | | | | | |
| | * | | | | | Indent fixupOliver Scherer2019-01-301-2/+2
| | | | | | | |
| | * | | | | | The return place's layout is only used once per frame, so caching doesn't helpOliver Scherer2019-01-301-1/+1
| | | | | | | |
| | * | | | | | Can't use `layout_of_local` for the frame currently being createdOliver Scherer2019-01-301-2/+3
| | | | | | | |
| | * | | | | | Make priroda happy againOliver Scherer2019-01-301-1/+1
| | | | | | | |
| | * | | | | | Allow `layout_of_local` to also use cached layoutsOliver Scherer2019-01-304-14/+19
| | | | | | | |
| | * | | | | | Merge `locals` and `local_layouts` fieldsOliver Scherer2019-01-303-39/+68
| | | | | | | |
| * | | | | | | Rollup merge of #57999 - jethrogb:jb/movbe-feature, r=alexcrichtonMazdak Farrokhzad2019-01-315-1/+5
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add MOVBE x86 CPU feature I have no idea if this is correct. I basically copied the ADX feature. I verified the feature is also called `movbe` in LLVM. I marked this to become stable immediately, as part of the RFC 2045. r? @alexcrichton
| | * | | | | | | Add MOVBE featureJethro Beekman2019-01-305-1/+5
| | |/ / / / / /
| * | | | | | | Rollup merge of #57984 - phansch:improve_check_ty_error, r=zackmdavisMazdak Farrokhzad2019-01-311-2/+2
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Improve bug message in check_ty This branch was hit in Clippy and I think it would be nice to show the thing that was unexpected in the bug message. It's also in line with the other `bug!` messages in `check_ty`.
| | * | | | | | | Improve bug message in check_tyPhilipp Hansch2019-01-301-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This branch was hit in Clippy and I think it would be nice to show the thing that was unexpected in the bug message. It's also in line with the other `bug!` messages in `check_ty`.
| * | | | | | | | Rollup merge of #57980 - siddharthasahu:patch-1, r=QuietMisdreavusMazdak Farrokhzad2019-01-311-0/+4
| |\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add the edition guide to the bookshelf
| | * | | | | | | | Add link to the edition guide.Siddhartha Sahu2019-01-291-0/+4
| | | | | | | | | |
| * | | | | | | | | Rollup merge of #57971 - jethrogb:jb/sgx-panic, r=alexcrichtonMazdak Farrokhzad2019-01-314-22/+32
| |\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SGX target: improve panic & exit handling Implement this part of the spec: > The enclave must not rely on userspace to terminate other threads still running. Similarly, the enclave must not trust that it will no longer be entered by userspace, and it must safeguard against that in the entrypoints. Also use `UserRef` to access panic buffer r? @alexcrichton cc @VardhanThigle
| | * | | | | | | | | SGX target: improve panic & exit handlingJethro Beekman2019-01-294-22/+32
| | | | | | | | | | |
| * | | | | | | | | | Rollup merge of #57934 - dwijnand:from-Arc/Rc-to-NonNull, r=alexcrichtonMazdak Farrokhzad2019-01-312-0/+42
| |\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduce into_raw_non_null on Rc and Arc None
| | * | | | | | | | | | Introduce into_raw_non_null on Rc and ArcDale Wijnand2019-01-282-0/+42
| | | | | | | | | | | |
| * | | | | | | | | | | Rollup merge of #57920 - euclio:source-date-epoch, r=Mark-SimulacrumMazdak Farrokhzad2019-01-311-2/+14
| |\ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | use `SOURCE_DATE_EPOCH` for man page time if set Fixes #57776.
| | * | | | | | | | | | | use `SOURCE_DATE_EPOCH` for man page time if setAndy Russell2019-01-261-2/+14
| | | |_|_|_|_|_|_|_|_|/ | | |/| | | | | | | | |
| * | | | | | | | | | | Rollup merge of #57106 - matthiaskrgr:trim_must_use, r=sfacklerMazdak Farrokhzad2019-01-311-0/+12
| |\ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mark str::trim.* functions as #[must_use]. The functions return a reference to a new object and do not modify in-place as the following code shows: ```` let s = String::from(" hello "); s.trim(); assert_eq!(s, " hello "); ```` The new reference should be bound to a variable as now indicated by #[must_use].
| | * | | | | | | | | | | modify remaining #[must_use[ messagesMatthias Krüger2018-12-261-5/+5
| | | | | | | | | | | | |