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 8 pull requests #89230

Merged
merged 27 commits into from
Sep 25, 2021
Merged

Rollup of 8 pull requests #89230

merged 27 commits into from
Sep 25, 2021

Commits on Sep 16, 2021

  1. Configuration menu
    Copy the full SHA
    be76bdf View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c065f57 View commit details
    Browse the repository at this point in the history
  3. Fix rustdoc

    jackh726 committed Sep 16, 2021
    Configuration menu
    Copy the full SHA
    b73c8b8 View commit details
    Browse the repository at this point in the history
  4. Fix clippy

    jackh726 committed Sep 16, 2021
    Configuration menu
    Copy the full SHA
    553f649 View commit details
    Browse the repository at this point in the history

Commits on Sep 22, 2021

  1. Remove Symbol::len

    It is used exactly once and can be replaced with the equally fast
    .as_str().len()
    bjorn3 committed Sep 22, 2021
    Configuration menu
    Copy the full SHA
    9886c23 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4e0ee2a View commit details
    Browse the repository at this point in the history
  3. Make SymbolIndex private

    bjorn3 committed Sep 22, 2021
    Configuration menu
    Copy the full SHA
    df72749 View commit details
    Browse the repository at this point in the history

Commits on Sep 23, 2021

  1. Simplify scoped_thread

    Avoids a bunch of manual pointer manipulation.
    Mark-Simulacrum committed Sep 23, 2021
    Configuration menu
    Copy the full SHA
    0222556 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7a3e450 View commit details
    Browse the repository at this point in the history
  3. Drop fully captured upvars in the same order as the regular drop code

    Currently, with the new 2021 edition, if a closure captures all of the
    fields of an upvar, we'll drop those fields in the order they are used
    within the closure instead of the normal drop order (the definition
    order of the fields in the type).
    
    This changes that so we sort the captured fields by the definition order
    which causes them to drop in that same order as well.
    
    Fixes rust-lang/project-rfc-2229#42
    wesleywiser committed Sep 23, 2021
    Configuration menu
    Copy the full SHA
    ab8aef4 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d63e0f0 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    b146525 View commit details
    Browse the repository at this point in the history

Commits on Sep 24, 2021

  1. Configuration menu
    Copy the full SHA
    3893656 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9fa59e1 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    cb1c06f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    cebba31 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    ed3b751 View commit details
    Browse the repository at this point in the history
  6. Add 1.56.0 release notes

    Co-authored-by: Josh Triplett <josh@joshtriplett.org>
    Mark-Simulacrum and joshtriplett committed Sep 24, 2021
    Configuration menu
    Copy the full SHA
    a307dcc View commit details
    Browse the repository at this point in the history
  7. Update and add more tests

    wesleywiser committed Sep 24, 2021
    Configuration menu
    Copy the full SHA
    dd91804 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#88893 - Mark-Simulacrum:relnotes, r=pietroa…

    …lbini
    
    Add 1.56.0 release notes
    
    Notable things:
    
    * Rustdoc section currently absent, for lack of things to call out that I could find. It seems like rust-lang#87451 is the only potential candidate, but that seems like more of a bugfix and doesn't seem to warrant inclusion to me. But we can add it if desired.
    
    As with the 1.55.0 release notes, my intent is to leave this open for approximately 1-2 weeks at the early part of the cycle, and then merge it in (after fixing any feedback). Further iteration can happen in subsequent issues (and PRs).
    
    [Rendered](https://github.com/Mark-Simulacrum/rust/blob/relnotes/RELEASES.md)
    workingjubilee committed Sep 24, 2021
    Configuration menu
    Copy the full SHA
    2de7f10 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#89001 - jackh726:binder-cleanup, r=nikomats…

    …akis
    
    Be explicit about using Binder::dummy
    
    This is somewhat of a late followup to the binder refactor PR. It removes `ToPredicate` and `ToPolyTraitImpls` that hide the use of `Binder::dummy`. While this does make code a bit more verbose, it allows us be more careful about where we create binders.
    
    Another alternative here might be to add a new trait `ToBinder` or something with a `dummy()` fn. Which could still allow grepping but allows doing something like `trait_ref.dummy()` (but I also wonder if longer-term, it would be better to be even more explicit with a `bind_with_vars(ty::List::empty())` *but* that's not clear yet.
    
    r? ``@nikomatsakis``
    workingjubilee committed Sep 24, 2021
    Configuration menu
    Copy the full SHA
    ee2e97c View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#89072 - bjorn3:less_symbol_as_str, r=michae…

    …lwoerister
    
    Avoid a couple of Symbol::as_str calls in cg_llvm
    
    This should improve performance a tiny bit. Also remove `Symbol::len` and make `SymbolIndex` private.
    workingjubilee committed Sep 24, 2021
    Configuration menu
    Copy the full SHA
    8a454f8 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#89104 - Mark-Simulacrum:spawn-unchecked, r=…

    …nagisa,bjorn3
    
    Simplify scoped_thread
    
    Avoids a bunch of manual pointer manipulation in favor of using the appropriate std API.
    workingjubilee committed Sep 24, 2021
    Configuration menu
    Copy the full SHA
    80d9886 View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#89208 - wesleywiser:rfc_2229_droporder, r=n…

    …ikomatsakis
    
    [rfc 2229] Drop fully captured upvars in the same order as the regular drop code
    
    Currently, with the new 2021 edition, if a closure captures all of the
    fields of an upvar, we'll drop those fields in the order they are used
    within the closure instead of the normal drop order (the definition
    order of the fields in the type).
    
    This changes that so we sort the captured fields by the definition order
    which causes them to drop in that same order as well.
    
    Fixes rust-lang/project-rfc-2229#42
    
    r? `@nikomatsakis`
    workingjubilee committed Sep 24, 2021
    Configuration menu
    Copy the full SHA
    7ade6ed View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#89210 - Takashiidobe:master, r=kennytm

    Add missing time complexities to linked_list.rs
    
    Most functions in LinkedList have time complexities in their description:
    Like push front:
    
    ```
    Adds an element first in the list.
    
    This operation should compute in O(1) time.
    ```
    
    Time complexities were missing for the following, so I've added them in this PR:
    
    contains: O(n)
    front: O(1)
    front_mut: O(1)
    back: O(1)
    back_mut: O(1)
    workingjubilee committed Sep 24, 2021
    Configuration menu
    Copy the full SHA
    0fa4349 View commit details
    Browse the repository at this point in the history
  14. Rollup merge of rust-lang#89217 - GuillaumeGomez:generate-link-to-def…

    …-rust-tools, r=jyn514
    
    Enable "generate-link-to-definition" option on rust tools docs as well
    
    Just realized that we enable the option for the compiler crates, but we don't have it for rustdoc and the other tools documentation...
    
    Part of rust-lang#89095.
    
    cc ``@rust-lang/rustdoc``
    r? ``@Mark-Simulacrum``
    workingjubilee committed Sep 24, 2021
    Configuration menu
    Copy the full SHA
    0cd9dd3 View commit details
    Browse the repository at this point in the history
  15. Rollup merge of rust-lang#89221 - aDotInTheVoid:macro-error-1, r=este…

    …bank
    
    Give better error for `macro_rules! name!`
    
    r? ``@estebank``
    
    ``@rustbot`` modify labels: +A-diagnostics +A-parser
    workingjubilee committed Sep 24, 2021
    Configuration menu
    Copy the full SHA
    6f31fa5 View commit details
    Browse the repository at this point in the history