Permalink
Commits on Jan 5, 2019
  1. Auto merge of #57145 - RalfJung:panic-if-uninhabited, r=alexcrichton

    bors committed Jan 5, 2019
    panic when calling MaybeUninhabited::into_inner on uninhabited type
    
    I do this by adding an internal-only intrinsic `panic_if_uninhabited`. I have no idea what I am doing here, just mindlessly copying code around, so please review carefully!
  2. Auto merge of #57101 - o01eg:fix-57014, r=alexcrichton

    bors committed Jan 5, 2019
    Search codegen backends based on target libdir instead of sysroot
    
    Fixes #57014
    
    Fixes cases with custom libdir when it consists of two or more parts.
  3. Auto merge of #57099 - davidtwco:issue-57098, r=nikomatsakis

    bors committed Jan 5, 2019
    NLL: Add closure cannot be moved note.
    
    Fixes #57098.
    
    This PR extends existing logic for checking whether a closure that
    is `FnOnce` and therefore moves variables that it captures from the
    environment has already been invoked when being invoked again.
    
    Now, this logic will also check whether the closure is being moved after
    previously being moved or invoked and add an appropriate note.
    
    r? @pnkfelix
  4. Auto merge of #56837 - arielb1:nonprincipal-trait-objects, r=nikomats…

    bors committed Jan 5, 2019
    …akis
    
    Add support for trait-objects without a principal
    
    The hard-error version of #56481 - should be merged after we do something about the `traitobject` crate.
    
    Fixes #33140.
    Fixes #57057.
    
    r? @nikomatsakis
  5. Auto merge of #56145 - weiznich:re_rebalance_coherence, r=nikomatsakis

    bors committed Jan 5, 2019
    Implement the Re-rebalance coherence RFC
    
    This is the first time I touch anything in the compiler so just tell me if I got something wrong.
    
    Big thanks to @sgrif for the pointers where to look for those things.
    cc #55437
Commits on Jan 4, 2019
  1. Auto merge of #56079 - mark-i-m:patch-1, r=nikomatsakis

    bors committed Jan 4, 2019
    Link to rustc guide
    
    As proposed in rust-lang/rustc-guide#239
  2. add test for #57162

    arielb1 committed Jan 4, 2019
    Fixes #57162.
  3. Auto merge of #56897 - euclio:parse-fatal, r=estebank

    bors committed Jan 4, 2019
    make `panictry!` private to libsyntax
    
    This commit completely removes usage of the `panictry!` macro from
    outside libsyntax. The macro causes parse errors to be fatal, so using
    it in libsyntax_ext caused parse failures *within* a syntax extension to
    be fatal, which is probably not intended.
    
    Furthermore, this commit adds spans to diagnostics emitted by empty
    extensions if they were missing, à la #56491.
  4. Auto merge of #56723 - oli-obk:lazy_const, r=nikomatsakis

    bors committed Jan 4, 2019
    Don't emit `Unevaluated` from `const_eval`
    
    cc @eddyb @RalfJung
  5. Auto merge of #56074 - matthewjasper:forbid-recursive-impl-trait, r=n…

    bors committed Jan 4, 2019
    …ikomatsakis
    
    Forbid recursive impl trait
    
    There is no type T, such that `T = [T; 2]`, but impl Trait could sometimes
    be to circumvented this.
    
    This patch makes it a hard error for an opaque type to resolve to such a
    "type". Before this can be merged it needs
    
    - [x] A better error message - it's good enough for now.
    - [x] A crater run (?) to see if this any real-world code
    
    closes #47659
  6. alphabetize marker traits when printed

    arielb1 committed Jan 4, 2019
    This makes sure they are printed in a compiler-version-independent
    order, avoiding ui test instability.
  7. Auto merge of #55986 - cjgillot:issue-45510, r=nikomatsakis

    bors committed Jan 4, 2019
    Allow to dispatch fn traits depending on number of parameters
    
    Hello,
    
    By following @eddyb's advise on issue #45510, I managed to have the snippets of code in #45510 and #18952 passing without breaking older diagnostics.
    
    EDIT: the codegen tests breakage I experienced is due to the poor quality of my laptop.
    
    If any kind reviewer has any advice, you are very welcome.
  8. Update tests changed by rebase

    weiznich committed Jan 4, 2019
  9. Auto merge of #57315 - ehuss:update-cargo, r=alexcrichton

    bors committed Jan 4, 2019
    Update cargo
    
    24 commits in 0d1f1bbeabd5b43a7f3ecfa16540af8e76d5efb4..34320d212dca8cd27d06ce93c16c6151f46fcf2e
    2018-12-19 14:45:14 +0000 to 2019-01-03 19:12:38 +0000
    - Display environment variables for rustc commands (rust-lang/cargo#6492)
    - Fix a very minor race condition in `cargo fix`. (rust-lang/cargo#6515)
    - Add a high-level overview of how `fix` works. (rust-lang/cargo#6516)
    - Add dependency `registry` to `cargo metadata`. (rust-lang/cargo#6500)
    - Fix fingerprint calculation for patched deps. (rust-lang/cargo#6493)
    - serialize version directly (rust-lang/cargo#6512)
    - use DYLD_FALLBACK_LIBRARY_PATH for dylib_path_envvar on macOS (rust-lang/cargo#6355)
    - Fix error message when resolving dependencies (rust-lang/cargo#6510)
    - use PathBuf in cargo metadata (rust-lang/cargo#6511)
    - Fixed link to testsuite in CONTRIBUTING.md (rust-lang/cargo#6506)
    - Update display of contents of Cargo.toml (rust-lang/cargo#6501)
    - Update display of contents of Cargo.toml (rust-lang/cargo#6502)
    - Fixup cargo install's help message (rust-lang/cargo#6495)
    - testsuite: Require failing commands to check output. (rust-lang/cargo#6497)
    - Delete unnecessary 'return' (rust-lang/cargo#6496)
    - Fix new unused patch warning. (rust-lang/cargo#6494)
    - Some minor documentation changes. (rust-lang/cargo#6481)
    - Add `links` to `cargo metadata`. (rust-lang/cargo#6480)
    - Salvaged semver work (rust-lang/cargo#6476)
    - Warn on unused patches. (rust-lang/cargo#6470)
    - don't write a an incorrect rustc version to the fingerprint file (rust-lang/cargo#6473)
    - Rewrite `login` and registry cleanups. (rust-lang/cargo#6466)
    - [issue#6461] Fix cargo commands list (rust-lang/cargo#6462)
    - Restrict registry names to same style as package names. (rust-lang/cargo#6469)
  10. Auto merge of #56958 - alexcrichton:upgrade-docker, r=kennytm

    bors committed Jan 4, 2019
    ci: Upgrade Travis to Xenial
    
    In theory we shouldn't require trusty so long as docker continues to
    work!
Commits on Jan 3, 2019
  1. implement a hack to make traitobject 0.1.0 compile

    arielb1 committed Jan 3, 2019
  2. Revert "add coherence future-compat warnings for marker-only trait ob…

    arielb1 committed Jan 1, 2019
    …jects"
    
    This reverts commit 7606396.
  3. Revert "fix stupid bug"

    arielb1 committed Jan 1, 2019
    This reverts commit 6e4b2b3.
  4. hack-fix to rustdoc

    arielb1 committed Dec 15, 2018
  5. add tests

    arielb1 committed Dec 15, 2018
  6. fix ppaux

    arielb1 committed Dec 14, 2018
  7. add support for principal-less trait object types

    arielb1 committed Dec 4, 2018
    should be a pure refactoring.
  8. Forbid impl Trait from referring to unnamable recursive types

    matthewjasper committed Nov 18, 2018
    There is no type T, such that `T = [T; 2]`, we should not allow this
    to be circumvented by impl Trait.
  9. More test deduplication

    weiznich committed Jan 3, 2019
  10. Add missing files

    weiznich committed Dec 29, 2018
  11. Fix typo

    weiznich committed Dec 28, 2018
  12. Unify tests

    weiznich committed Dec 28, 2018
    Implement compile tests as variants of existing tests
  13. Fix failing compile tests

    weiznich committed Dec 14, 2018
  14. Update src/doc/unstable-book/src/language-features/re-rebalance-coher…

    varkor and weiznich committed Nov 22, 2018
    …ence.md
    
    Co-Authored-By: weiznich <Georg_semmler_05@web.de>
  15. Fix tidy

    weiznich committed Nov 21, 2018