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 #131624

Closed
wants to merge 17 commits into from

Commits on Sep 23, 2024

  1. Check ABI target compatibility for function pointers

    This check was previously only performed on functions not function pointers.
    
    Co-authored-by: Folkert <[email protected]>
    tdittr and folkertdev committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    47293c1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    867e776 View commit details
    Browse the repository at this point in the history

Commits on Sep 29, 2024

  1. make Step doc-comments more clear

    Signed-off-by: onur-ozkan <[email protected]>
    onur-ozkan committed Sep 29, 2024
    Configuration menu
    Copy the full SHA
    8ef0ba2 View commit details
    Browse the repository at this point in the history

Commits on Oct 5, 2024

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

Commits on Oct 10, 2024

  1. More clearly document Stdin::read_line

    These are common pitfalls for beginners, so I think it's worth
    making the subtleties more visible.
    theemathas committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    2035737 View commit details
    Browse the repository at this point in the history

Commits on Oct 11, 2024

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

Commits on Oct 12, 2024

  1. Emit an error for unstable attributes that reference already stable f…

    …eatures
    
    Add missing error annotations and .stderr file
    
    Acknowledge comments
    CastilloDel committed Oct 12, 2024
    Configuration menu
    Copy the full SHA
    497100a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    043928a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a0661ec View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#128784 - tdittr:check-abi-on-fn-ptr, r=comp…

    …iler-errors
    
    Check ABI target compatibility for function pointers
    
    Tracking issue: rust-lang#130260
    Related tracking issue: rust-lang#87678
    
    Compatibility of an ABI for a target was previously only performed on function definitions and `extern` blocks. This PR adds it also to function pointers to be consistent.
    
    This might have broken some of the `tests/ui/` depending on the platform, so a try run seems like a good idea.
    
    Also this might break existing code, because we now emit extra errors. Does this require a crater run?
    
    # Example
    ```rust
    // build with: --target=x86_64-unknown-linux-gnu
    
    // These raise E0570
    extern "thiscall" fn foo() {}
    extern "thiscall" { fn bar() }
    
    // This did not raise any error
    fn baz(f: extern "thiscall" fn()) { f() }
    ```
    
    # Open Questions
    * [x] Should this report a future incompatibility warning like rust-lang#87678 ?
    * [ ] Is this the best place to perform the check?
    matthiaskrgr authored Oct 12, 2024
    Configuration menu
    Copy the full SHA
    5079679 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#130965 - onur-ozkan:bootstrap-step-trait-do…

    …c, r=Mark-Simulacrum
    
    make `Step` doc-comments more clear
    
    Aiming to improve complicated `Step` documentation. Once we merge this, I will update [this page](https://rustc-dev-guide.rust-lang.org/building/bootstrapping/how-bootstrap-does-it.html?highlight=Step#synopsis-of--step) too.
    matthiaskrgr authored Oct 12, 2024
    Configuration menu
    Copy the full SHA
    a676b83 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#131239 - VulnBandit:trait-vulnerability, r=…

    …lcnr
    
    Don't assume traits used as type are trait objs in 2021 edition
    
    Fixes rust-lang#127548
    
    When you use a trait as a type, the compiler automatically assumes you meant to use a trait object, which is not always the case.
    This PR fixes the bug where you don't need a trait object, so the error message was changed to:
    ```
    error[E0782]: expected a type, found a trait
    ```
    Also fixes some ICEs:
    Fixes rust-lang#120241
    Fixes rust-lang#120482
    Fixes rust-lang#125512
    matthiaskrgr authored Oct 12, 2024
    Configuration menu
    Copy the full SHA
    5ce78bf View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#131277 - ismailarilik:handle-potential-quer…

    …y-instability-lint-for-clippy, r=xFrednet
    
    Handle `clippy` cases of `rustc::potential_query_instability` lint
    
    This PR removes `#![allow(rustc::potential_query_instability)]` line from [`src/tools/clippy/clippy_lints/src/lib.rs`](https://github.com/rust-lang/rust/blob/master/src/tools/clippy/clippy_lints/src/lib.rs#L30) and converts `FxHash{Map,Set}` types into `FxIndex{Map,Set}` to suppress lint errors.
    
    A somewhat tracking issue: rust-lang#84447
    matthiaskrgr authored Oct 12, 2024
    Configuration menu
    Copy the full SHA
    e85b23e View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#131503 - theemathas:stdin_read_line_docs, r…

    …=Mark-Simulacrum
    
    More clearly document Stdin::read_line
    
    These are common pitfalls for beginners, so I think it's worth making the subtleties more visible.
    matthiaskrgr authored Oct 12, 2024
    Configuration menu
    Copy the full SHA
    df9ba78 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#131567 - CastilloDel:reject-unstable-with-a…

    …ccepted-features, r=jieyouxu
    
    Emit an error for unstable attributes that reference already stable features
    
    Closes rust-lang#129814
    matthiaskrgr authored Oct 12, 2024
    Configuration menu
    Copy the full SHA
    79d8116 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#131616 - RalfJung:const_ip, r=tgross35

    merge const_ipv4 / const_ipv6 feature gate into 'ip' feature gate
    
    rust-lang#76205 has been closed a while ago, but there are still some functions that reference it. Those functions are all unstable *and* const-unstable. There's no good reason to use a separate feature gate for their const-stability, so this PR moves their const-stability under the same gate as their regular stability, and therefore removes the remaining references to rust-lang#76205.
    matthiaskrgr authored Oct 12, 2024
    Configuration menu
    Copy the full SHA
    1b941a7 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#131617 - RalfJung:const_cow_is_borrowed, r=…

    …tgross35
    
    remove const_cow_is_borrowed feature gate
    
    The two functions guarded by this are still unstable, and there's no reason to require a separate feature gate for their const-ness -- we can just have `cow_is_borrowed` cover both kinds of stability.
    
    Cc rust-lang#65143
    matthiaskrgr authored Oct 12, 2024
    Configuration menu
    Copy the full SHA
    1787b68 View commit details
    Browse the repository at this point in the history