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 6 pull requests #95830

Closed
wants to merge 14 commits into from
Closed

Commits on Mar 27, 2022

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

Commits on Apr 7, 2022

  1. Configuration menu
    Copy the full SHA
    39bff4b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    aa3c141 View commit details
    Browse the repository at this point in the history

Commits on Apr 8, 2022

  1. Configuration menu
    Copy the full SHA
    43d0497 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5e8bd9b View commit details
    Browse the repository at this point in the history
  3. WIP PROOF-OF-CONCEPT: Make the compiler complain about all int<->ptr …

    …casts.
    
    ALL
    
    OF
    
    THEM
    Gankra authored and niluxv committed Apr 8, 2022
    Configuration menu
    Copy the full SHA
    1040cab View commit details
    Browse the repository at this point in the history
  4. Split fuzzy_provenance_casts into lossy and fuzzy, feature gate and…

    … test it
    
    * split `fuzzy_provenance_casts` into a ptr2int and a int2ptr lint
    * feature gate both lints
    * update documentation to be more realistic short term
    * add tests for these lints
    niluxv committed Apr 8, 2022
    Configuration menu
    Copy the full SHA
    98a4834 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    f6c7f10 View commit details
    Browse the repository at this point in the history

Commits on Apr 9, 2022

  1. Rollup merge of rust-lang#95374 - RalfJung:assert_uninit_valid, r=Mar…

    …k-Simulacrum
    
    assert_uninit_valid: ensure we detect at least arrays of uninhabited types
    
    We can't easily extend this check to *all* arrays (Cc rust-lang#87041), but it turns out the existing check already catches arrays of uninhabited types. So let's make sure it stays that way by adding them to the test.
    Dylan-DPC authored Apr 9, 2022
    Configuration menu
    Copy the full SHA
    bdcefe9 View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#95599 - niluxv:strict-provenance-lint, r=mi…

    …chaelwoerister
    
    Strict provenance lints
    
    See rust-lang#95488.
    This PR introduces two unstable (allow by default) lints to which lint on int2ptr and ptr2int casts, as the former is not possible in the strict provenance model and the latter can be written nicer using the `.addr()` API.
    Based on an initial version of the lint by ``@Gankra`` in rust-lang#95199.
    Dylan-DPC authored Apr 9, 2022
    Configuration menu
    Copy the full SHA
    f54d1e1 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#95751 - compiler-errors:ambig-int, r=jackh726

    Don't report numeric inference ambiguity when we have previous errors
    
    Fixes rust-lang#95648
    Dylan-DPC authored Apr 9, 2022
    Configuration menu
    Copy the full SHA
    a999fce View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#95787 - yaahc:panic-doc-update-v2, r=dtolnay

    reword panic vs result section to remove recoverable vs unrecoverable framing
    
    Based on feedback from the Error Handling FAQ: rust-lang/project-error-handling#50 (comment)
    
    r? ```@dtolnay```
    Dylan-DPC authored Apr 9, 2022
    Configuration menu
    Copy the full SHA
    192372e View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#95804 - GuillaumeGomez:empty-doc-comment-wi…

    …th-backline, r=notriddle
    
    rustdoc: Fix empty doc comment with backline ICE
    
    Fixes rust-lang#95800.
    
    r? ``@notriddle``
    Dylan-DPC authored Apr 9, 2022
    Configuration menu
    Copy the full SHA
    1769808 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#95813 - Urgau:rustdoc-where-clause-space, r…

    …=GuillaumeGomez
    
    Remove extra space before a where clause
    
    Remove extra space before where clause in the generated documentation.
    
    The fix is to move the space before the break-line so that it doesn't appear visually but is still here. Removing it completely would create things like this `impl<D> Delta<D>where D: MyTrait` (missing a space before the where) which I don't think we want.
    
    Added two regression test, first one test that the `<br>` is after the space and the second check that the `<br>` is before the spaces.
    
    Before:
    ![image](https://user-images.githubusercontent.com/3616612/162475212-d4bb6727-ed66-4a55-a4a2-4f55189bf8bd.png)
    
    After:
    ![image](https://user-images.githubusercontent.com/3616612/162475467-508fd082-60a7-4a8c-b693-8b188e8843e6.png)
    
    r? ``@GuillaumeGomez``
    Dylan-DPC authored Apr 9, 2022
    Configuration menu
    Copy the full SHA
    70a7a1c View commit details
    Browse the repository at this point in the history