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 12 pull requests #80708

Merged
merged 24 commits into from
Jan 5, 2021
Merged

Rollup of 12 pull requests #80708

merged 24 commits into from
Jan 5, 2021

Commits on Dec 28, 2020

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

Commits on Dec 30, 2020

  1. bootstrap: clippy fixes

    addresses:
    
    clippy::or_fun_call
    clippy::single_char_add_str
    clippy::comparison_to_empty
    clippy::or_fun_call
    matthiaskrgr committed Dec 30, 2020
    Configuration menu
    Copy the full SHA
    87423fb View commit details
    Browse the repository at this point in the history

Commits on Jan 2, 2021

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

Commits on Jan 3, 2021

  1. Configuration menu
    Copy the full SHA
    203d502 View commit details
    Browse the repository at this point in the history
  2. Move variable into the only branch where it is relevant

    At the `if` branch `filter` (the `let` binding) is `None` iff `filter` (the parameter) was `None`.
    We can branch on the parameter, move the binding into the `if`, and the complexity of handling
    `Option<Option<_>` largely dissolves.
    LingMan committed Jan 3, 2021
    Configuration menu
    Copy the full SHA
    af7134e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    514b0ce View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6d45d05 View commit details
    Browse the repository at this point in the history

Commits on Jan 4, 2021

  1. ./x.py clippy: allow the most noisy lints

    This silences the following clippy lints in ./x.py clippy:
    
    many_single_char_names (there are a lot of warnings caused by stdarch)
    collapsible_if (can reduce readability)
    type_complexity
    missing_safety_doc (there are almost 3K warnings issued)
    too_many_arguments
    needless_lifetimes (people want 'tcx lifetimes etc)
    wrong_self_convention (warns about from_..(), to_..(), into_..().. fns that do or do not take self by reference.
    matthiaskrgr committed Jan 4, 2021
    Configuration menu
    Copy the full SHA
    6a4b24e View commit details
    Browse the repository at this point in the history
  2. doc -- list edit for consistency

    oliver authored Jan 4, 2021
    Configuration menu
    Copy the full SHA
    e152582 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    54883e0 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6002e78 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    92d1b39 View commit details
    Browse the repository at this point in the history

Commits on Jan 5, 2021

  1. Rollup merge of rust-lang#80442 - steffahn:mention_arc_in_cow, r=Mark…

    …-Simulacrum
    
    Mention Arc::make_mut and Rc::make_mut in the documentation of Cow
    
    Following this discussion: https://users.rust-lang.org/t/should-the-cow-documentation-mention-arc/53341
    
    _Rendered (the last paragraph is new):_
    
    ![Screenshot_20201228_171551](https://user-images.githubusercontent.com/3986214/103228135-5d72e200-4930-11eb-89e1-38b5c86b08c7.png)
    
    `@rustbot` modify labels: T-doc, T-libs
    JohnTitor authored Jan 5, 2021
    Configuration menu
    Copy the full SHA
    bdf8bbd View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#80533 - matthiaskrgr:bootstrap_clppy, r=Mar…

    …k-Simulacrum
    
    bootstrap: clippy fixes
    
    addresses:
    
    clippy::or_fun_call
    clippy::single_char_add_str
    clippy::comparison_to_empty
    clippy::or_fun_call
    JohnTitor authored Jan 5, 2021
    Configuration menu
    Copy the full SHA
    4c4e8e7 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#80538 - JulianKnodt:err_usize, r=lcnr

    Add check for `[T;N]`/`usize` mismatch in astconv
    
    Helps clarify the issue in rust-lang#80506
    by adding a specific check for mismatches between [T;N] and usize.
    
    r? `@lcnr`
    JohnTitor authored Jan 5, 2021
    Configuration menu
    Copy the full SHA
    be2a3f8 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#80612 - rust-lang:XAMPPRocky-patch-1, r=Mar…

    …k-Simulacrum
    
    Remove reverted change from relnotes
    
    r? `@Mark-Simulacrum`
    JohnTitor authored Jan 5, 2021
    Configuration menu
    Copy the full SHA
    d85c2fe View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#80627 - bugadani:warn, r=Mark-Simulacrum

    Builder: Warn if test file does not exist
    
    Running `./x.py test` with a file that does not exists (but where the path belongs to a test suite) silently ignores the missing file and runs the whole test suite. This PR prints a warning to reduce the potential surprise factor.
    
    Closes rust-lang#80621
    JohnTitor authored Jan 5, 2021
    Configuration menu
    Copy the full SHA
    1c6593c View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#80637 - LingMan:filter, r=oli-obk

    Use Option::filter instead of open-coding it
    
    `@rustbot` modify labels +C-cleanup +T-compiler
    JohnTitor authored Jan 5, 2021
    Configuration menu
    Copy the full SHA
    faf8bed View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#80643 - LingMan:unwrap, r=oli-obk

    Move variable into the only branch where it is relevant
    
    At the `if` branch `filter` (the `let` binding) is `None` iff `filter` (the parameter) was `None`.
    We can branch on the parameter, move the binding into the `if`, and the complexity of handling
    `Option<Option<_>` largely dissolves.
    
    `@rustbot` modify labels +C-cleanup +T-compiler
    
    Note: I have no idea how hot this code is. If this method frequently gets called with a `None` filter, there might be a small perf improvement.
    JohnTitor authored Jan 5, 2021
    Configuration menu
    Copy the full SHA
    598d189 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#80656 - booleancoercion:master, r=sfackler

    Fixed documentation error for `std::hint::spin_loop`
    
    Fixes rust-lang#80644.
    JohnTitor authored Jan 5, 2021
    Configuration menu
    Copy the full SHA
    cbdc241 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#80666 - jjlin:master, r=Dylan-DPC

    Fix missing link for "fully qualified syntax"
    
    This issue can currently be seen at https://doc.rust-lang.org/stable/std/rc/index.html#toggle-all-docs:~:text=%5B-,fully%20qualified%20syntax
    
    It originates from rust-lang#76138, where the link was added to `library/alloc/src/sync.rs`, but not `library/alloc/src/rc.rs`.
    JohnTitor authored Jan 5, 2021
    Configuration menu
    Copy the full SHA
    cda26a6 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#80672 - matthiaskrgr:xpy_clippy_less_noise,…

    … r=Mark-Simulacrum
    
    ./x.py clippy: allow the most noisy lints
    
    This silences the following clippy lints in ./x.py clippy:
    
    many_single_char_names (there are a lot of warnings caused by stdarch)
    collapsible_if (can reduce readability)
    type_complexity
    missing_safety_doc (there are almost 3K warnings issued)
    too_many_arguments
    needless_lifetimes (people want 'tcx lifetimes etc)
    wrong_self_convention (warns about from_..(), to_..(), into_..().. fns that do or do not take self by reference.
    
    Just for clarification; this only changes the output of `x.py clippy` inside the rustc repo and does not change anything about clippy or how `cargo clippy` is run on peoples crates.
    JohnTitor authored Jan 5, 2021
    Configuration menu
    Copy the full SHA
    cb43373 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#80677 - kw-fn:patch-2, r=jyn514

    doc -- list edit for consistency
    JohnTitor authored Jan 5, 2021
    Configuration menu
    Copy the full SHA
    ee94d9d View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#80696 - RalfJung:failing-promoteds, r=oli-obk

    make sure that promoteds which fail to evaluate in dead const code behave correctly
    
    rust-lang#80243 showed that we'll have to live with these kinds of failing promoteds for a while, so let's make sure we have a test that covers them.
    JohnTitor authored Jan 5, 2021
    Configuration menu
    Copy the full SHA
    9daac58 View commit details
    Browse the repository at this point in the history