Skip to content
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 25 pull requests #56547

Closed
wants to merge 82 commits into from
Closed

Commits on Nov 21, 2018

  1. Document From implementations

    Bastian Gruber committed Nov 21, 2018
    Configuration menu
    Copy the full SHA
    700c83b View commit details
    Browse the repository at this point in the history
  2. Remove 'unsafe' comments

    Bastian Gruber committed Nov 21, 2018
    Configuration menu
    Copy the full SHA
    072bca3 View commit details
    Browse the repository at this point in the history
  3. Update comments

    Bastian Gruber committed Nov 21, 2018
    Configuration menu
    Copy the full SHA
    88a708d View commit details
    Browse the repository at this point in the history
  4. Update style of comments

    Bastian Gruber committed Nov 21, 2018
    Configuration menu
    Copy the full SHA
    5c747eb View commit details
    Browse the repository at this point in the history
  5. Adjust doc comments

    Bastian Gruber committed Nov 21, 2018
    Configuration menu
    Copy the full SHA
    e8dafba View commit details
    Browse the repository at this point in the history
  6. Remove trailing whitespace

    Bastian Gruber committed Nov 21, 2018
    Configuration menu
    Copy the full SHA
    7933628 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    c209ed8 View commit details
    Browse the repository at this point in the history

Commits on Nov 26, 2018

  1. Configuration menu
    Copy the full SHA
    47b5e23 View commit details
    Browse the repository at this point in the history
  2. FIXME is the new TODO

    dwijnand committed Nov 26, 2018
    Configuration menu
    Copy the full SHA
    86d20f9 View commit details
    Browse the repository at this point in the history
  3. Fix ptr::hex doc example

    dwijnand committed Nov 26, 2018
    Configuration menu
    Copy the full SHA
    5558c07 View commit details
    Browse the repository at this point in the history

Commits on Nov 27, 2018

  1. Configuration menu
    Copy the full SHA
    7b429b0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8125149 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    afb4fbd View commit details
    Browse the repository at this point in the history
  4. Fix issue number

    dwijnand committed Nov 27, 2018
    Configuration menu
    Copy the full SHA
    4a7ffe2 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    9755410 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    097b5db View commit details
    Browse the repository at this point in the history

Commits on Nov 28, 2018

  1. Add crate filtering

    GuillaumeGomez committed Nov 28, 2018
    Configuration menu
    Copy the full SHA
    dd717de View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8062c7a View commit details
    Browse the repository at this point in the history

Commits on Nov 29, 2018

  1. Configuration menu
    Copy the full SHA
    afe4107 View commit details
    Browse the repository at this point in the history

Commits on Nov 30, 2018

  1. Configuration menu
    Copy the full SHA
    1560a75 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d92287a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4f5b8ea View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6000c2e View commit details
    Browse the repository at this point in the history

Commits on Dec 1, 2018

  1. use top level fs functions where appropriate

    This commit replaces many usages of `File::open` and reading or writing
    with `fs::read_to_string`, `fs::read` and `fs::write`. This reduces code
    complexity, and will improve performance for most reads, since the
    functions allocate the buffer to be the size of the file.
    
    I believe that this commit will not impact behavior in any way, so some
    matches will check the error kind in case the file was not valid UTF-8.
    Some of these cases may not actually care about the error.
    euclio committed Dec 1, 2018
    Configuration menu
    Copy the full SHA
    d809d21 View commit details
    Browse the repository at this point in the history

Commits on Dec 2, 2018

  1. Configuration menu
    Copy the full SHA
    23abd18 View commit details
    Browse the repository at this point in the history
  2. pass the parameter environment to traits::find_associated_item

    dropping the param-env on the floor is obviously the wrong thing to do.
    
    The ICE was probably exposed by rust-lang#54490 adding the problem-exposing use of
    `traits::find_associated_item`.
    
    Fixes rust-lang#55380.
    arielb1 committed Dec 2, 2018
    Configuration menu
    Copy the full SHA
    59e9a1e View commit details
    Browse the repository at this point in the history

Commits on Dec 3, 2018

  1. Add rc::Weak.ptr_eq

    Thomasdezeeuw committed Dec 3, 2018
    Configuration menu
    Copy the full SHA
    380dd7d View commit details
    Browse the repository at this point in the history
  2. Add sync::Weak::ptr_eq

    Thomasdezeeuw committed Dec 3, 2018
    Configuration menu
    Copy the full SHA
    d4b41fa View commit details
    Browse the repository at this point in the history
  3. Fix link in Weak::new

    Thomasdezeeuw committed Dec 3, 2018
    Configuration menu
    Copy the full SHA
    38e21f9 View commit details
    Browse the repository at this point in the history
  4. Introduce constraint category for yields.

    This commit adds a new `ConstraintCategory` for yield points - this
    allows for differentiation between a normal return and a yield in the
    diagnostics.
    davidtwco committed Dec 3, 2018
    Configuration menu
    Copy the full SHA
    a8a1bf9 View commit details
    Browse the repository at this point in the history
  5. Fix ICE in region naming.

    This commit puts a fix in place for the ICE in region naming code so
    that it doesn't break the compiler. However, this results in the
    diagnostic being poorer as the borrow explanation that was causing the
    ICE is not being added - this should be fixed as a follow-up.
    davidtwco committed Dec 3, 2018
    Configuration menu
    Copy the full SHA
    9acfbb2 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    1fb82b5 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    651373c View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    9c8802d View commit details
    Browse the repository at this point in the history
  9. link to raw identifiers

    mark-i-m committed Dec 3, 2018
    Configuration menu
    Copy the full SHA
    0b40be6 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    101467c View commit details
    Browse the repository at this point in the history
  11. syntax: Rename some keywords

    `CrateRoot` -> `PathRoot`, `::` doesn't necessarily mean crate root now
    `SelfValue` -> `SelfLower`, `SelfType` -> `SelfUpper`, both `self` and `Self` can be used in type and value namespaces now
    petrochenkov committed Dec 3, 2018
    Configuration menu
    Copy the full SHA
    08f8fae View commit details
    Browse the repository at this point in the history
  12. syntax: Remove #[non_exhaustive] from Edition

    `Edition` is not a public API, we want users to break when a new edition is added
    petrochenkov committed Dec 3, 2018
    Configuration menu
    Copy the full SHA
    d415844 View commit details
    Browse the repository at this point in the history
  13. Improve filter test

    GuillaumeGomez committed Dec 3, 2018
    Configuration menu
    Copy the full SHA
    3f253f5 View commit details
    Browse the repository at this point in the history
  14. Address review comments

    petrochenkov committed Dec 3, 2018
    Configuration menu
    Copy the full SHA
    d08f7dc View commit details
    Browse the repository at this point in the history

Commits on Dec 4, 2018

  1. Remove redundant clone

    sinkuu committed Dec 4, 2018
    Configuration menu
    Copy the full SHA
    65aa0a6 View commit details
    Browse the repository at this point in the history
  2. sort_by_cached_key -> sort_by

    sinkuu committed Dec 4, 2018
    Configuration menu
    Copy the full SHA
    bc7c3dc View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6fab3f9 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    ad76569 View commit details
    Browse the repository at this point in the history
  5. Add extra comment slash

    Bastian Gruber committed Dec 4, 2018
    Configuration menu
    Copy the full SHA
    450a8a6 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    8c4129c View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    e41e85c View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    d0c64bb View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    e448713 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    f30ba07 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    9012af6 View commit details
    Browse the repository at this point in the history
  12. 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.
    
    Upcoming changes will start fixing lints.
    JohnHeitmann committed Dec 4, 2018
    Configuration menu
    Copy the full SHA
    56ace3e View commit details
    Browse the repository at this point in the history

Commits on Dec 5, 2018

  1. Added trailing newline

    JohnHeitmann committed Dec 5, 2018
    Configuration menu
    Copy the full SHA
    5d7cf59 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3512fb0 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6cfbb5b View commit details
    Browse the repository at this point in the history
  4. Use inner iterator may_have_side_effect for Cloned

    Previous implementation wasn't correct, as an inner iterator
    could have had side effects.
    KamilaBorowska committed Dec 5, 2018
    Configuration menu
    Copy the full SHA
    3eddc74 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    a964307 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#51753 - gruberb:document-from-conversions-l…

    …ibstdpath, r=QuietMisdreavus
    
    Document `From` implementations
    
    This PR is solves part of rust-lang#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.
    pietroalbini committed Dec 5, 2018
    Configuration menu
    Copy the full SHA
    9ee29d9 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#55563 - GuillaumeGomez:doc-search-sentence,…

    … r=QuietMisdreavus
    
    Improve no result found sentence in doc search
    
    Fixes rust-lang#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
    pietroalbini committed Dec 5, 2018
    Configuration menu
    Copy the full SHA
    731e365 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#55987 - Thomasdezeeuw:weak-ptr_eq, r=sfackler

    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 rust-lang#55981.
    pietroalbini committed Dec 5, 2018
    Configuration menu
    Copy the full SHA
    02ec8d0 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#56119 - frewsxcv:frewsxcv-option-carrier, r…

    …=TimNN
    
    Utilize `?` instead of `return None`.
    
    None
    pietroalbini committed Dec 5, 2018
    Configuration menu
    Copy the full SHA
    76e8ce2 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#56250 - dwijnand:ptr-hash, r=alexcrichton

    Introduce ptr::hash for references
    
    The RHS is what I used, which wasn't as convenient as `ptr::eq`, so I wondered: should `ptr::hash` exist?
    
    My first Rust PR, so I'm going to need some guidance. :)
    pietroalbini committed Dec 5, 2018
    Configuration menu
    Copy the full SHA
    ec16058 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#56258 - euclio:fs-read-write, r=Mark-Simula…

    …crum
    
    use top level `fs` functions where appropriate
    
    This commit replaces many usages of `File::open` and reading or writing
    with `fs::read_to_string`, `fs::read` and `fs::write`. This reduces code
    complexity, and will improve performance for most reads, since the
    functions allocate the buffer to be the size of the file.
    
    I believe that this commit will not impact behavior in any way, so some
    matches will check the error kind in case the file was not valid UTF-8.
    Some of these cases may not actually care about the error.
    pietroalbini committed Dec 5, 2018
    Configuration menu
    Copy the full SHA
    cb6102f View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#56332 - GuillaumeGomez:specifi-crate-search…

    …, r=QuietMisdreavus
    
    [rustdoc] Specific crate search
    
    Reopening of rust-lang#54706.
    Fixes rust-lang#54616.
    
    <img width="1440" alt="screenshot 2018-11-29 at 01 29 11" src="https://user-images.githubusercontent.com/3050060/49191372-979adf80-f376-11e8-963e-e4feb927c1da.png">
    
    r? @QuietMisdreavus
    pietroalbini committed Dec 5, 2018
    Configuration menu
    Copy the full SHA
    3f97a7e View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#56372 - wildarch:issue-55314-second-borrow-…

    …ref, r=davidtwco
    
    Refer to the second borrow as the "second borrow" in E0501.rs
    
    Fixes rust-lang#55314.
    
    r? @davidtwco
    pietroalbini committed Dec 5, 2018
    Configuration menu
    Copy the full SHA
    907ed9e View commit details
    Browse the repository at this point in the history
  14. Rollup merge of rust-lang#56388 - matthewjasper:more-lexical-mir-clea…

    …nup, r=nikomatsakis
    
    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
    pietroalbini committed Dec 5, 2018
    Configuration menu
    Copy the full SHA
    3296d51 View commit details
    Browse the repository at this point in the history
  15. Rollup merge of rust-lang#56424 - mark-i-m:explain-raw, r=Centril

    Mention raw-ident syntax
    
    According to rust-lang#56419 (review)
    
    Blocked on rust-lang#56419
    
    r? @Centril
    pietroalbini committed Dec 5, 2018
    Configuration menu
    Copy the full SHA
    5feba0f View commit details
    Browse the repository at this point in the history
  16. Rollup merge of rust-lang#56426 - petrochenkov:syntweak, r=nikomatsakis

    libsyntax_pos: A few tweaks
    pietroalbini committed Dec 5, 2018
    Configuration menu
    Copy the full SHA
    2e41d46 View commit details
    Browse the repository at this point in the history
  17. Rollup merge of rust-lang#56446 - arielb1:special-env-implications, r…

    …=nikomatsakis
    
    pass the parameter environment to `traits::find_associated_item`
    
    dropping the param-env on the floor is obviously the wrong thing to do.
    
    The ICE was probably exposed by rust-lang#54490 adding the problem-exposing use of
    `traits::find_associated_item`.
    
    Fixes rust-lang#55380.
    
    r? @nikomatsakis
    pietroalbini committed Dec 5, 2018
    Configuration menu
    Copy the full SHA
    3c0d0ed View commit details
    Browse the repository at this point in the history
  18. Rollup merge of rust-lang#56452 - sinkuu:redundant_clone, r=nikic

    Remove redundant clones
    pietroalbini committed Dec 5, 2018
    Configuration menu
    Copy the full SHA
    1c97c4b View commit details
    Browse the repository at this point in the history
  19. Rollup merge of rust-lang#56456 - oli-obk:private_impl_trait, r=cramertj

    Handle existential types in dead code analysis
    
    fixes rust-lang#55124
    
    r? @cramertj
    pietroalbini committed Dec 5, 2018
    Configuration menu
    Copy the full SHA
    d71381a View commit details
    Browse the repository at this point in the history
  20. Rollup merge of rust-lang#56460 - davidtwco:issue-55850, r=pnkfelix

    Fix ICE with generators and NLL
    
    Fix rust-lang#55850.
    
    This PR stops an ICE in rust-lang#55850 by not panicking when a region cannot be named. However, this PR does not (yet) fix the underlying issue that the correct name for the test case provided for the issue (in this instance, `'a`) was not found.
    
    This PR also lays a little bit of groundwork by categorizing yields separately from returns so that region naming can be specialized for this case.
    
    r? @pnkfelix
    pietroalbini committed Dec 5, 2018
    Configuration menu
    Copy the full SHA
    647aa6a View commit details
    Browse the repository at this point in the history
  21. Rollup merge of rust-lang#56466 - ljedrz:delete_tuple_slice, r=nikoma…

    …tsakis
    
    data_structures: remove tuple_slice
    
    It looks like we're not using it anywhere.
    pietroalbini committed Dec 5, 2018
    Configuration menu
    Copy the full SHA
    5bfb8bb View commit details
    Browse the repository at this point in the history
  22. Rollup merge of rust-lang#56476 - GuillaumeGomez:invalid-line-number-…

    …match, r=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
    pietroalbini committed Dec 5, 2018
    Configuration menu
    Copy the full SHA
    13ac1f3 View commit details
    Browse the repository at this point in the history
  23. Rollup merge of rust-lang#56497 - ljedrz:cleanup_libstd_const_lifetim…

    …es, r=kennytm
    
    cleanup: remove static lifetimes from consts in libstd
    pietroalbini committed Dec 5, 2018
    Configuration menu
    Copy the full SHA
    ab8843d View commit details
    Browse the repository at this point in the history
  24. Rollup merge of rust-lang#56498 - GuillaumeGomez:line-numbers, r=Quie…

    …tMisdreavus
    
    Fix line numbers display
    
    Thanks to @talchas for finding the bug and suggesting the solution!
    
    r? @QuietMisdreavus
    pietroalbini committed Dec 5, 2018
    Configuration menu
    Copy the full SHA
    f39173d View commit details
    Browse the repository at this point in the history
  25. Rollup merge of rust-lang#56500 - ljedrz:cleanup_rest_of_const_lifeti…

    …mes, r=zackmdavis
    
    cleanup: remove static lifetimes from consts
    
    A follow-up to rust-lang#56497.
    pietroalbini committed Dec 5, 2018
    Configuration menu
    Copy the full SHA
    97452d9 View commit details
    Browse the repository at this point in the history
  26. Rollup merge of rust-lang#56507 - nikomatsakis:polonius-integrate, r=…

    …matthewjasper
    
    polonius tweaks
    
    - bump polonius to 0.6.0
    - fix 2-phase-borrow activations
    
    r? @matthewjasper
    pietroalbini committed Dec 5, 2018
    Configuration menu
    Copy the full SHA
    b1c8db0 View commit details
    Browse the repository at this point in the history
  27. Rollup merge of rust-lang#56523 - JohnHeitmann:es6, r=GuillaumeGomez

    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).
    pietroalbini committed Dec 5, 2018
    Configuration menu
    Copy the full SHA
    a05de3c View commit details
    Browse the repository at this point in the history
  28. Rollup merge of rust-lang#56525 - udoprog:linux-current-exe, r=alexcr…

    …ichton
    
    Avoid extra copy and syscall in std::env::current_exe
    pietroalbini committed Dec 5, 2018
    Configuration menu
    Copy the full SHA
    1095a26 View commit details
    Browse the repository at this point in the history
  29. Rollup merge of rust-lang#56528 - sinkuu:unused_dep, r=Mark-Simulacrum

    Remove unused dependency (rustc_lint -> rustc_mir)
    pietroalbini committed Dec 5, 2018
    Configuration menu
    Copy the full SHA
    37bf0cb View commit details
    Browse the repository at this point in the history
  30. Rollup merge of rust-lang#56538 - xfix:patch-13, r=bluss

    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 rust-lang#56534.
    pietroalbini committed Dec 5, 2018
    Configuration menu
    Copy the full SHA
    45e1ed8 View commit details
    Browse the repository at this point in the history