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 10 pull requests #66109

Merged
merged 26 commits into from
Nov 5, 2019
Merged

Rollup of 10 pull requests #66109

merged 26 commits into from
Nov 5, 2019

Commits on Oct 26, 2019

  1. Configuration menu
    Copy the full SHA
    f3e8c2e View commit details
    Browse the repository at this point in the history
  2. Apply suggestions from kinnison

    Co-Authored-By: Daniel Silverstone <dsilvers@digital-scurf.org>
    ehuss and kinnison committed Oct 26, 2019
    Configuration menu
    Copy the full SHA
    bd70c03 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c6bfe28 View commit details
    Browse the repository at this point in the history

Commits on Oct 28, 2019

  1. Configuration menu
    Copy the full SHA
    096c99b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    624e7d7 View commit details
    Browse the repository at this point in the history

Commits on Oct 30, 2019

  1. Fix logic in example.

    The example claims SuperiorThanZero and presumably Zero is not Superior than itself so it should not be allowed.
    kevincox committed Oct 30, 2019
    Configuration menu
    Copy the full SHA
    e1974a4 View commit details
    Browse the repository at this point in the history

Commits on Oct 31, 2019

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

Commits on Nov 1, 2019

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

Commits on Nov 2, 2019

  1. doc(str): show example of chars().count() under len()

    the docs are great at explaining that .len() isn't like in other
    languages but stops short of explaining how to get the character length.
    
    r? @steveklabnik
    jdx committed Nov 2, 2019
    Configuration menu
    Copy the full SHA
    d9ec5fa View commit details
    Browse the repository at this point in the history
  2. Suggest correct code when encountering an incorrect trait bound refer…

    …encing the current trait
    ohadravid committed Nov 2, 2019
    Configuration menu
    Copy the full SHA
    5558fe8 View commit details
    Browse the repository at this point in the history
  3. Suggest more likely code when encountering an incorrect assoc item re…

    …ferencing the current trait
    ohadravid committed Nov 2, 2019
    Configuration menu
    Copy the full SHA
    8c90934 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e7fd580 View commit details
    Browse the repository at this point in the history
  5. Add FFI bindings for Module::getInstructionCount()

    Just to make it useable for profiling and such inside
    rustc itself.  It was vaguely useful in
    https://wiki.alopex.li/WhereRustcSpendsItsTime and I figured
    I might as well upstream it; I may or may not ever get around
    to doing more with it (hopefully I will), but it may be useful
    for others.
    icefoxen committed Nov 2, 2019
    Configuration menu
    Copy the full SHA
    567962d View commit details
    Browse the repository at this point in the history

Commits on Nov 3, 2019

  1. Configuration menu
    Copy the full SHA
    9b9d651 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    417c09a View commit details
    Browse the repository at this point in the history

Commits on Nov 4, 2019

  1. Add tests for loop constructs in consts

    These errors are suboptimal, but they will be fixed by the new
    `check_consts` pass.
    ecstatic-morse committed Nov 4, 2019
    Configuration menu
    Copy the full SHA
    c8ae281 View commit details
    Browse the repository at this point in the history

Commits on Nov 5, 2019

  1. Rollup merge of rust-lang#65136 - ehuss:update-codegen-options, r=Dyl…

    …an-DPC
    
    Update codegen option documentation.
    
    Some documentation updates:
    
    - Add more detail to codegen options.
    - Add missing options:
        - `force-frame-pointers`
        - `default-linker-libraries`
        - `linker-plugin-lto`
    - Add fragment anchors for all command-line-arguments.
    - Add some cross links between options.
    pietroalbini committed Nov 5, 2019
    Configuration menu
    Copy the full SHA
    a4e91c2 View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#65574 - tshepang:linked-list-disclaimer, r=…

    …Centril
    
    docs: improve disclaimer regarding LinkedList
    pietroalbini committed Nov 5, 2019
    Configuration menu
    Copy the full SHA
    5831e06 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#65720 - icefoxen:LLVMgetInstructionCount, r…

    …=rkruppe
    
    Add FFI bindings for LLVM's Module::getInstructionCount()
    
    Just to make it usable for profiling and such inside
    rustc itself.  It was vaguely useful in
    https://wiki.alopex.li/WhereRustcSpendsItsTime and I figured
    I might as well upstream it; I may or may not ever get around
    to doing more with it (hopefully I will), but it may be useful
    for others.
    pietroalbini committed Nov 5, 2019
    Configuration menu
    Copy the full SHA
    7976d57 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#65905 - cuviper:doc-unix-mode, r=Dylan-DPC

    [doc] fixes for unix/vxworks `OpenOptionsExt::mode`
    pietroalbini committed Nov 5, 2019
    Configuration menu
    Copy the full SHA
    0a28415 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#65962 - kevincox:patch-1, r=sfackler

    Fix logic in example.
    
    The example claims SuperiorThanZero and presumably Zero is not Superior than itself so it should not be allowed.
    pietroalbini committed Nov 5, 2019
    Configuration menu
    Copy the full SHA
    370d01a View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#66019 - olegnn:fixed_std_iter_chain_docs, r…

    …=Mark-Simulacrum
    
    Improved std::iter::Chain documentation
    
    Replaces `strings two iterators` by `links two iterators` in `std::iter::Chain` documentation.
    
    I didn't find any meaning of `strings` which can be evaluated as `links` or `joins`.
    
    I don't think that `std::iter:Chain` works as a stringer or plays billiards. (https://www.lexico.com/en/definition/string).
    pietroalbini committed Nov 5, 2019
    Configuration menu
    Copy the full SHA
    c25975d View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#66038 - jdxcode:char-len, r=alexcrichton

    doc(str): show example of chars().count() under len()
    
    the docs are great at explaining that .len() isn't like in other
    languages but stops short of explaining how to get the character length.
    pietroalbini committed Nov 5, 2019
    Configuration menu
    Copy the full SHA
    d32a262 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#66042 - ohadravid:suggest-correct-code-when…

    …-ref-current-trait, r=estebank
    
    Suggest correct code when encountering an incorrect trait bound referencing the current trait
    
    Fixes rust-lang#65985 and also improves the suggestion for code like this:
    
    ```
    trait Grab {
        type Value;
        fn grab(&self) -> Grab::Value;
    }
    ```
    
    To suggest `<Self as Grab>::Value`.
    
    I wasn't sure which of the syntax versions is better (`<Self as ..>::` vs `Self::`), so I used the former simply because it was less change to the existing code.
    
    r? @estebank
    pietroalbini committed Nov 5, 2019
    Configuration menu
    Copy the full SHA
    1d5cb17 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#66073 - Mark-Simulacrum:no-borrow-mut, r=Ce…

    …ntril
    
    Do not needlessly write-lock
    
    Just removes a needless `borrow_mut()` by using `borrow()` instead.
    pietroalbini committed Nov 5, 2019
    Configuration menu
    Copy the full SHA
    dc40c93 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#66096 - ecstatic-morse:const-loop-test, r=C…

    …entril
    
    Add a failing UI test for multiple loops of all kinds in a `const`
    
    This simply demonstrates the current behavior and ensures we don't allow anything by accident.
    
    The new const checker will be able to improve the diagnostics here. While working on it, I didn't see very many tests with non-`while` loops in a `const`, and there were no tests with multiple loops.
    pietroalbini committed Nov 5, 2019
    Configuration menu
    Copy the full SHA
    1ffa93e View commit details
    Browse the repository at this point in the history