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 5 pull requests #82811

Closed
wants to merge 25 commits into from

Commits on Mar 3, 2021

  1. Configuration menu
    Copy the full SHA
    ae494d1 View commit details
    Browse the repository at this point in the history
  2. Extract mir_opt_level to a method and use Option to be able to know i…

    …f the value is provided or not
    spastorino committed Mar 3, 2021
    Configuration menu
    Copy the full SHA
    e2e9e49 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c86b7b4 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    b5da6f8 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    4bf42c8 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    10d0109 View commit details
    Browse the repository at this point in the history

Commits on Mar 4, 2021

  1. Configuration menu
    Copy the full SHA
    38ec6be View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0f9fdba View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0550a6f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    5a064e8 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    cbb40e1 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    6f32e3e View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    a66bf52 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    85c3d10 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    55cec90 View commit details
    Browse the repository at this point in the history

Commits on Mar 5, 2021

  1. Configuration menu
    Copy the full SHA
    18fb025 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    cb9b10c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a11e87e View commit details
    Browse the repository at this point in the history
  4. Make ItemKind::ExternCrate looks like hir::ItemKind::ExternCrate to m…

    …ake transition over hir::ItemKind simpler
    GuillaumeGomez committed Mar 5, 2021
    Configuration menu
    Copy the full SHA
    f879ecc View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    286a357 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#80845 - GuillaumeGomez:item-kind-transition…

    …, r=jyn514
    
    Make ItemKind::ExternCrate looks like hir::ItemKind::ExternCrate to make transition over hir::ItemKind simpler
    
    It was surprisingly difficult to make this change, mostly because of two issues:
    
    * We now store the `ExternCrate` name in the parent struct (`clean::Item`), which forced me to modify the json conversion code a bit more than expected.
    * The second problem was that, since we now have a `Some(name)`, it was trying to render it, ending up in a panic because we ended up in a `unreachable` statement. The solution was simply to add `!item.is_extern_crate()` in `formats::renderer` before calling `cx.item(item, &cache)?;`.
    
    I'll continue to replace all the `clean::ItemKind` variants one by one until it looks exactly like `hir::ItemKind`. Then we'll simply discard the rustdoc type. Once this done, we'll be able to discard `clean::Item` too to use `hir::Item`.
    
    r? `@jyn514`
    GuillaumeGomez authored Mar 5, 2021
    Configuration menu
    Copy the full SHA
    11dddf2 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#82708 - GuillaumeGomez:doc-test-attr-check,…

    … r=Manishearth
    
    Warn on `#![doc(test(...))]` on items other than the crate root and use future incompatible lint
    
    Part of rust-lang#82672.
    
    This PR does multiple things:
     * Create a new `INVALID_DOC_ATTRIBUTE` lint which is also "future incompatible", allowing us to use it as a warning for the moment until it turns (eventually) into a hard error.
     * Use this link when `#![doc(test(...))]` isn't used at the crate level.
     * Make rust-lang#82702 use this new lint as well.
    
    r? `@jyn514`
    GuillaumeGomez authored Mar 5, 2021
    Configuration menu
    Copy the full SHA
    0dd9066 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#82714 - estebank:missing-braces, r=oli-obk

    Detect match arm body without braces
    
    Fix rust-lang#82524.
    GuillaumeGomez authored Mar 5, 2021
    Configuration menu
    Copy the full SHA
    4ec6b35 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#82736 - spastorino:mir-opt-level-perf-chang…

    …es, r=oli-obk
    
    Bump optimization from mir_opt_level 2 to 3 and 3 to 4 and make "release" be level 2 by default
    
    r? `@oli-obk`
    GuillaumeGomez authored Mar 5, 2021
    Configuration menu
    Copy the full SHA
    be6d958 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#82797 - henryboisdequin:name-issue-num, r=X…

    …anewok
    
    Update tests names to start with `issue-`
    
    See `@JohnTitor's` [comment](rust-lang#82720 (comment))
    
    `@rustbot` label +C-cleanup
    GuillaumeGomez authored Mar 5, 2021
    Configuration menu
    Copy the full SHA
    70d6fed View commit details
    Browse the repository at this point in the history