Permalink
Tree: 8a0e5faec7
Commits on Jan 31, 2019
  1. Auto merge of #58003 - nikic:saturating-add, r=nagisa

    bors committed Jan 31, 2019
    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
  2. Auto merge of #57514 - michaelwoerister:xlto-tests, r=alexcrichton

    bors committed Jan 31, 2019
    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
  3. Auto merge of #58016 - Centril:rollup, r=Centril

    bors committed Jan 31, 2019
    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
  4. Rollup merge of #58008 - matthewjasper:places-conflict-args, r=oli-obk

    Centril committed Jan 31, 2019
    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
  5. Rollup merge of #58007 - estebank:issue-58006, r=petrochenkov

    Centril committed Jan 31, 2019
    Don't panic when accessing enum variant ctor using `Self` in match
    
    Fix #58006.
    
    r? @petrochenkov
  6. Rollup merge of #58005 - vitiral:docs_trim_start_matches, r=Manishearth

    Centril committed Jan 31, 2019
    update docs for fix_start/end_matches
    
    fixes #57686:
  7. Rollup merge of #57999 - jethrogb:jb/movbe-feature, r=alexcrichton

    Centril committed Jan 31, 2019
    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
  8. Rollup merge of #57984 - phansch:improve_check_ty_error, r=zackmdavis

    Centril committed Jan 31, 2019
    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`.
  9. Rollup merge of #57980 - siddharthasahu:patch-1, r=QuietMisdreavus

    Centril committed Jan 31, 2019
    Add the edition guide to the bookshelf
  10. Rollup merge of #57971 - jethrogb:jb/sgx-panic, r=alexcrichton

    Centril committed Jan 31, 2019
    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
  11. Rollup merge of #57934 - dwijnand:from-Arc/Rc-to-NonNull, r=alexcrichton

    Centril committed Jan 31, 2019
    Introduce into_raw_non_null on Rc and Arc
    
    None
  12. Rollup merge of #57920 - euclio:source-date-epoch, r=Mark-Simulacrum

    Centril committed Jan 31, 2019
    use `SOURCE_DATE_EPOCH` for man page time if set
    
    Fixes #57776.
  13. Rollup merge of #57106 - matthiaskrgr:trim_must_use, r=sfackler

    Centril committed Jan 31, 2019
    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].
  14. Rollup merge of #57008 - Knium:misleading-try-adding-parentheses-in-m…

    Centril committed Jan 31, 2019
    …atch-with-comma, r=oli-obk
    
    suggest `|` when `,` founds in invalid match value
    
    Issue #54807
    I get stuck on (what | how) I should implement...
Commits on Jan 30, 2019
  1. Auto merge of #57974 - llogiq:vec-deque-try-fold, r=alexcrichton

    bors committed Jan 30, 2019
    override `VecDeque`'s `Iter::try_fold`
    
    This should improve performance (wherever it is used), but I haven't found the time to benchmark it yet.
  2. Pass correct arguments to places_conflict

    matthewjasper committed Jan 30, 2019
    The borrow place *must* be a place that we track borrows for, otherwise
    we will likely ICE.
  3. Don't panic when accessing enum variant ctor using `Self` in match

    estebank committed Jan 30, 2019
  4. Failure resistent trait implementing

    oli-obk committed Jan 30, 2019
  5. Improve bug message in check_ty

    phansch committed Jan 30, 2019
    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`.
  6. fix #57686: update docs for fix_start/end_matches

    Rett Berg
    Rett Berg committed Jan 30, 2019
  7. Swap the names of `LocalValue` and `LocalState`

    oli-obk committed Jan 30, 2019
  8. Auto merge of #57495 - jamesmunns:mdbook-compat, r=steveklabnik

    bors committed Jan 30, 2019
    Support multiple versions of MdBook for docs
    
    Only the compatibility items from the embedded book PR. PR with embedded book components: #56291
    
    CC @steveklabnik, @ehuss, and rust-lang-nursery/edition-guide#134
  9. Add MOVBE feature

    Jethro Beekman
    Jethro Beekman committed Jan 30, 2019
  10. Eliminate an unwrap

    oli-obk committed Jan 30, 2019
  11. Monomorphize types when not going through `layout_of_local`

    oli-obk committed Jan 30, 2019
  12. Add exception for new dependency in license checker

    jamesmunns authored and steveklabnik committed Jan 19, 2019
  13. Indent fixup

    oli-obk committed Jan 30, 2019