Permalink
Commits on Dec 6, 2018
  1. Auto merge of #55635 - oli-obk:min_const_unsafe_fn, r=nikomatsakis

    bors committed Dec 6, 2018
    Allow calling `const unsafe fn` in `const fn` behind a feature gate
    
    cc #55607
    
    r? @Centril
  2. Auto merge of #56307 - RalfJung:stacked-borrows-2-phase, r=oli-obk

    bors committed Dec 6, 2018
    Stacked borrows: Support 2 phase borrows
    
    Some infrastructure needed for Stacked Borrows to be able to handle 2-phase-borros.
    
    r? @oli-obk
  3. Auto merge of #54517 - mcr431:53956-panic-on-include_bytes-of-own-fil…

    bors committed Dec 6, 2018
    …e, r=michaelwoerister
    
    53956 panic on include bytes of own file
    
    fix #53956
    
    When using `include_bytes!` on a source file in the project, compiler would panic on subsequent compilations because `expand_include_bytes` would overwrite files in the source_map with no source. This PR changes `expand_include_bytes` to check source_map and use the already existing src, if any.
Commits on Dec 5, 2018
  1. Auto merge of #56549 - pietroalbini:rollup, r=pietroalbini

    bors committed Dec 5, 2018
    Rollup of 15 pull requests
    
    Successful merges:
    
     - #51753 (Document `From` implementations)
     - #55563 (Improve no result found sentence in doc search)
     - #55987 (Add Weak.ptr_eq)
     - #56119 (Utilize `?` instead of `return None`.)
     - #56372 (Refer to the second borrow as the "second borrow" in E0501.rs)
     - #56388 (More MIR borrow check cleanup)
     - #56424 (Mention raw-ident syntax)
     - #56452 (Remove redundant clones)
     - #56456 (Handle existential types in dead code analysis)
     - #56466 (data_structures: remove tuple_slice)
     - #56476 (Fix invalid line number match)
     - #56497 (cleanup: remove static lifetimes from consts in libstd)
     - #56498 (Fix line numbers display)
     - #56523 (Added a bare-bones eslint config (removing jslint))
     - #56538 (Use inner iterator may_have_side_effect for Cloned)
    
    Failed merges:
    
    r? @ghost
  2. Rollup merge of #56538 - xfix:patch-13, r=bluss

    pietroalbini committed Dec 5, 2018
    Use inner iterator may_have_side_effect for Cloned
    
    Previous implementation wasn't correct, as an inner iterator could have had side effects. Noticed by @bluss in #56534.
  3. Rollup merge of #56523 - JohnHeitmann:es6, r=GuillaumeGomez

    pietroalbini committed Dec 5, 2018
    Added a bare-bones eslint config (removing jslint)
    
    This change removes the small bit of jslint config, replacing it
    with eslint. I've currently configured eslint to mostly only report
    the more serious of lints, although there are still some style nits
    turned on.
    
    Eslint better supports modern js, and will be a good pre-TypeScript code
    quality aid.
    
    Install eslint with `npm install -g eslint`. Run with `eslint html/static/*.js`,
    or let your IDE do it. This requires no build step.
    
    Upcoming changes will start fixing identified bugs and other lints (mostly unused and var redef issues).
  4. Rollup merge of #56498 - GuillaumeGomez:line-numbers, r=QuietMisdreavus

    pietroalbini committed Dec 5, 2018
    Fix line numbers display
    
    Thanks to @talchas for finding the bug and suggesting the solution!
    
    r? @QuietMisdreavus
  5. Rollup merge of #56497 - ljedrz:cleanup_libstd_const_lifetimes, r=ken…

    pietroalbini committed Dec 5, 2018
    …nytm
    
    cleanup: remove static lifetimes from consts in libstd
  6. Rollup merge of #56476 - GuillaumeGomez:invalid-line-number-match, r=…

    pietroalbini committed Dec 5, 2018
    …QuietMisdreavus
    
    Fix invalid line number match
    
    If a code line is longer than the width, it then gets to the next line making the line number not matching it anymore.
    
    r? @QuietMisdreavus
  7. Rollup merge of #56466 - ljedrz:delete_tuple_slice, r=nikomatsakis

    pietroalbini committed Dec 5, 2018
    data_structures: remove tuple_slice
    
    It looks like we're not using it anywhere.
  8. Rollup merge of #56456 - oli-obk:private_impl_trait, r=cramertj

    pietroalbini committed Dec 5, 2018
    Handle existential types in dead code analysis
    
    fixes #55124
    
    r? @cramertj
  9. Rollup merge of #56452 - sinkuu:redundant_clone, r=nikic

    pietroalbini committed Dec 5, 2018
    Remove redundant clones
  10. Rollup merge of #56424 - mark-i-m:explain-raw, r=Centril

    pietroalbini committed Dec 5, 2018
    Mention raw-ident syntax
    
    According to #56419 (review)
    
    Blocked on #56419
    
    r? @Centril
  11. Rollup merge of #56388 - matthewjasper:more-lexical-mir-cleanup, r=ni…

    pietroalbini committed Dec 5, 2018
    …komatsakis
    
    More MIR borrow check cleanup
    
    * Fix some rustc doc links
    * Remove the `region_map` field from `BorrowSet`
    *  Use `visit_local` to find 2PB activations
    
    r? @nikomatsakis
  12. Rollup merge of #56372 - wildarch:issue-55314-second-borrow-ref, r=da…

    pietroalbini committed Dec 5, 2018
    …vidtwco
    
    Refer to the second borrow as the "second borrow" in E0501.rs
    
    Fixes #55314.
    
    r? @davidtwco
  13. Rollup merge of #56119 - frewsxcv:frewsxcv-option-carrier, r=TimNN

    pietroalbini committed Dec 5, 2018
    Utilize `?` instead of `return None`.
    
    None
  14. Rollup merge of #55987 - Thomasdezeeuw:weak-ptr_eq, r=sfackler

    pietroalbini committed Dec 5, 2018
    Add Weak.ptr_eq
    
    I hope the doc tests alone are good enough.
    
    We also might want to discuss the dangling pointer case (from `Weak::new()`).
    
    Updates #55981.
  15. Rollup merge of #55563 - GuillaumeGomez:doc-search-sentence, r=QuietM…

    pietroalbini committed Dec 5, 2018
    …isdreavus
    
    Improve no result found sentence in doc search
    
    Fixes #55531.
    
    Look:
    
    <img width="1440" alt="screenshot 2018-11-01 at 02 21 56" src="https://user-images.githubusercontent.com/3050060/47827257-f6236c80-dd7c-11e8-9ea9-99c8cb4b2de5.png">
    
    r? @QuietMisdreavus
  16. Rollup merge of #51753 - gruberb:document-from-conversions-libstdpath…

    pietroalbini committed Dec 5, 2018
    …, r=QuietMisdreavus
    
    Document `From` implementations
    
    This PR is solves part of #51430. It's my first PR, so I might need some guidance from @skade (as already mentioned in the issue).
    
    The purpose of the PR is to document the `impl From` inside `path.rs` and answering the questions:
    - What does it convert?
    - Does it allocate memory?
    - How expensive are the allocations?
    
    I gave it a first shot, though an experienced rust developer might want to look over it.
  17. Auto merge of #55933 - euclio:doc-panic, r=QuietMisdreavus

    bors committed Dec 5, 2018
    emit error when doc generation fails
    
    Fixes #41813.
    
    The diagnostic looks something like this:
    
    ```
    error: couldn't generate documentation: No space left on device (os error 28)
      |
      = note: failed to create or modify "/path/to/crate/target/doc/src/lazycell"
    ```
  18. Auto merge of #56535 - matthiaskrgr:clippy, r=oli-obk

    bors committed Dec 5, 2018
    submodules: update clippy from b2601beb to 29bf75cd
    
    Changes:
    ````
    Fix ty::TyKind usage
    Fix TyKind::<kind> usage in codebase
    Extract single_match_else UI test
    cargo fmt
    Adds inequality cases to bool comparison lint
    Remove unsafe_vector_initialization lint
    Fix wildcard_dependencies false positive
    Fix rustfmt format
    Disable incremental build for windows
    Travis: Add rustc sysroot bin to PATH for windows build
    Fix some nursery links
    Enforce LF lineendings for everything
    Mention triage procedure in contributing.md
    Keep testing large_digit_groups as ui test
    Keep testing unsafe_vector_initialization as ui test
    Downgrade large_digit_groups to pedantic
    Downgrade unsafe_vector_initialization to restriction
    remove macro_at_most_once_rep feature attribute since it's stable
    Add missing word
    Update docs in regards to the merged RFC
    Document how to run rustfmt in CONTRIBUTING.md
    Don't run integration tests in forks
    Fix some formatting issues
    Run rustfmt on clippy_lints
    Run rustfmt on build.rs
    Run rustfmt on clippy_dev
    Run rustfmt on rustc_tools_util
    Run rustfmt on src
    Run rustfmt on the tests
    Let travis run cargo fmt --all -- --check
    Error on line overflow
    ````
    
    No need to increase priority, please just rollup :)
  19. Add a test for cloned side effects

    xfix committed Dec 5, 2018
  20. Use inner iterator may_have_side_effect for Cloned

    xfix committed Dec 5, 2018
    Previous implementation wasn't correct, as an inner iterator
    could have had side effects.
  21. emit error when doc generation fails

    euclio committed Nov 13, 2018
    Fixes #41813.
  22. submodules: update clippy from b2601beb to 29bf75cd

    matthiaskrgr committed Dec 5, 2018
    Changes:
    ````
    Fix ty::TyKind usage
    Fix TyKind::<kind> usage in codebase
    Extract single_match_else UI test
    cargo fmt
    Adds inequality cases to bool comparison lint
    Remove unsafe_vector_initialization lint
    Fix wildcard_dependencies false positive
    Fix rustfmt format
    Disable incremental build for windows
    Travis: Add rustc sysroot bin to PATH for windows build
    Fix some nursery links
    Enforce LF lineendings for everything
    Mention triage procedure in contributing.md
    Keep testing large_digit_groups as ui test
    Keep testing unsafe_vector_initialization as ui test
    Downgrade large_digit_groups to pedantic
    Downgrade unsafe_vector_initialization to restriction
    remove macro_at_most_once_rep feature attribute since it's stable
    Add missing word
    Update docs in regards to the merged RFC
    Document how to run rustfmt in CONTRIBUTING.md
    Don't run integration tests in forks
    Fix some formatting issues
    Run rustfmt on clippy_lints
    Run rustfmt on build.rs
    Run rustfmt on clippy_dev
    Run rustfmt on rustc_tools_util
    Run rustfmt on src
    Run rustfmt on the tests
    Let travis run cargo fmt --all -- --check
    Error on line overflow
    ````
  23. Auto merge of #55466 - sinkuu:cleanup, r=petrochenkov

    bors committed Dec 5, 2018
    syntax: Use iterator and pattern APIs instead of `char_at`
    
    Iterating over chars with the `char_at(str, i)` `i += ch.len_utf8()` loop seems unidiomatic.
  24. Auto merge of #55922 - oli-obk:slice_pat_ice, r=zackmdavis

    bors committed Dec 5, 2018
    Fix ICE in `const` slice patterns
    
    fixes #55911
    
    based on #55915
    
    New commits start at eabc155
  25. Fix pretty test

    sinkuu committed Dec 5, 2018
  26. Auto merge of #56519 - steveklabnik:edition-guide, r=pietroalbini

    bors committed Dec 5, 2018
    update edition guide
    
    spiritual successor to #56457
    
    not to be backported, being in nightly is enough.
    
    i'm testing this locally now but figure travis can test it in parallel
  27. adds DocTest filename variant, refactors doctest_offset out of source…

    Matthew Russo
    Matthew Russo committed Dec 4, 2018
    …_map, fixes remaining test failures
  28. Added trailing newline

    JohnHeitmann committed Dec 5, 2018
Commits on Dec 4, 2018
  1. Added a bare-bones eslint config (removing jslint)

    JohnHeitmann committed Dec 4, 2018
    This change removes the small bit of jslint config, replacing it
    with eslint. I've currently configured eslint to mostly only report
    the more serious of lints, although there are still some style nits
    turned on.
    
    Upcoming changes will start fixing lints.
  2. updates all Filename variants to take a fingerprint

    Matthew Russo
    Matthew Russo committed Oct 30, 2018
  3. new_source_file no longer enters duplicate files, expand_include_byte…

    Matthew Russo
    Matthew Russo committed Oct 30, 2018
    …s includes the source if it can convert bytes to string
  4. build the edition guide

    steveklabnik committed Dec 4, 2018
    and update it so that links are correct