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 10 pull requests #127533

Closed
wants to merge 28 commits into from

Commits on Apr 25, 2024

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

Commits on Jul 5, 2024

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

Commits on Jul 8, 2024

  1. Configuration menu
    Copy the full SHA
    321eba5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ec662e7 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    96a7916 View commit details
    Browse the repository at this point in the history

Commits on Jul 9, 2024

  1. Configuration menu
    Copy the full SHA
    7097dbc View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e38109d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    fd9a925 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    aece064 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    dd175fe View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    7af825f View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    cd68a28 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    bbbff80 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    4700b5b View commit details
    Browse the repository at this point in the history
  10. Adds expr_2024 migration lit

    This is adding a migration lint for the current (in the 2021 edition and previous)
    to move expr to expr_2021 from expr
    
    Co-Developed-by: Eric Holk
    Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
    vincenzopalazzo committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    25637e2 View commit details
    Browse the repository at this point in the history
  11. tests: adds cargo fix tests

    Co-Developed-by: Eric Holk
    Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
    vincenzopalazzo committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    568e78f View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    dfac6fa View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#124339 - oli-obk:supports_feature, r=wesley…

    …wiser
    
    allow overwriting the output of `rustc --version`
    
    Our wonderful bisection folk [have to work around](rust-lang#123276 (comment)) crates that do incomplete nightly/feature detection, as otherwise the bisection just points to where the feature detection breaks, and not to the actual breakage they are looking for.
    
    This is also annoying behaviour to nightly users who did not opt-in to those nightly features. Most nightly users want to be in control of the nightly breakage they get, by
    
    * choosing when to update rustc
    * choosing when to update dependencies
    * choosing which nightly features they are willing to take the breakage for
    
    The reason this breakage occurs is that the build script of some crates run `rustc --version`, and if the version looks like nightly or dev, it will enable nightly features. These nightly features may break in random ways whenever we change something in nightly, so every release of such a crate will only work with a small range of nightly releases. This causes bisection to fail whenever it tries an unsupported nightly, even though that crate is not related to the bisection at all, but is just an unrelated dependency.
    
    This PR (and the policy I want to establish with this FCP) is only for situations like the `version_check`'s `supports_feature` function. It is explicitly not for `autocfg` or similar feature-detection-by-building-rust-code, irrespective of my opinions on it and the similarity of nightly breakage that can occur with such schemes. These cause much less breakage, but should the breakage become an issue, they should get covered by this policy, too.
    
    This PR allows changing the version and release strings reported by `rustc --version` via the `RUSTC_FORCE_RUSTC_VERSION` env var. The bisection issue is then fixed by rust-lang/cargo-bisect-rustc#335.
    
    I mainly want to establish a compiler team policy:
    
    > We do not consider feature detection on nightly (on stable via compiler version numbering is fine) a valid use case that we need to support, and if it causes problems, we are at liberty to do what we deem best - either actively working to prevent it or to actively ignore it. We may try to work with responsive and cooperative authors, but are not obligated to.
    
    Should they subvert the workarounds that nightly users or cargo-bisect-rustc can use, we should be able to land rustc PRs that target the specific crates that cause issues for us and outright replace their build script's logic to disable nightly detection.
    
    I am not including links to crates, PRs or issues here, as I don't actually care about the specific use cases and don't want to make it trivial to go there and leave comments. This discussion is going to be interesting enough on its own, without branching out.
    matthiaskrgr authored Jul 9, 2024
    Configuration menu
    Copy the full SHA
    4d44291 View commit details
    Browse the repository at this point in the history
  14. Rollup merge of rust-lang#125627 - vincenzopalazzo:macros/cargo-fix-e…

    …xpr2024, r=compiler-errors,eholk
    
    migration lint for `expr2024` for the edition 2024
    
    This is adding a migration lint for the current (in the 2021 edition and previous)
    to move expr to expr_2021 from expr
    
    Issue rust-lang#123742
    
    I created also a repository to test out the migration https://github.com/vincenzopalazzo/expr2024-cargo-fix-migration
    
    Co-Developed-by: `@eholk`
    matthiaskrgr authored Jul 9, 2024
    Configuration menu
    Copy the full SHA
    9fc9f13 View commit details
    Browse the repository at this point in the history
  15. Rollup merge of rust-lang#127091 - Sky9x:fused-error-sources-iter, r=…

    …dtolnay
    
    impl FusedIterator and a size hint for the error sources iter
    
    cc tracking issue rust-lang#58520
    matthiaskrgr authored Jul 9, 2024
    Configuration menu
    Copy the full SHA
    82bd4a8 View commit details
    Browse the repository at this point in the history
  16. Rollup merge of rust-lang#127358 - oli-obk:taint_itemctxt, r=fmease

    Automatically taint when reporting errors from ItemCtxt
    
    This isn't very robust yet, as you need to use `itemctxt.dcx()` instead of `tcx.dcx()` for it to take effect, but it's at least more convenient than sprinkling `set_tainted_by_errors` calls in individual places.
    
    based on rust-lang#127357
    
    r? ````@fmease````
    matthiaskrgr authored Jul 9, 2024
    Configuration menu
    Copy the full SHA
    503268e View commit details
    Browse the repository at this point in the history
  17. Rollup merge of rust-lang#127484 - ShE3py:rustdoc-doc-alias-whitespac…

    …e-doc, r=fmease
    
    `#[doc(alias)]`'s doc: say that ASCII spaces are allowed
    
    PR rust-lang#77570 allowed ASCII spaces in doc aliases, but the documentation wasn't updated to say so.
    
    The code checking the aliases:
    https://github.com/rust-lang/rust/blob/7fdefb804ec300fb605039522a7c0dfc9e7dc366/compiler/rustc_passes/src/check_attr.rs#L693-L704
    
    ````@rustbot```` label +A-docs
    matthiaskrgr authored Jul 9, 2024
    Configuration menu
    Copy the full SHA
    615f5a3 View commit details
    Browse the repository at this point in the history
  18. Rollup merge of rust-lang#127495 - compiler-errors:more-trait-error-r…

    …eworking, r=lcnr
    
    More trait error reworking
    
    More work on rust-lang#127492, specifically those sub-bullets under "Move trait error reporting to `error_reporting::traits`". Stacked on top of rust-lang#127493.
    
    This does introduce new `TypeErrCtxt.*Ext` traits, but those will be deleted soon. Splitting this work into bite-sized pieces is the only way that it's gonna be feasible to both author and review ❤️
    
    r? lcnr
    matthiaskrgr authored Jul 9, 2024
    Configuration menu
    Copy the full SHA
    9dcac1c View commit details
    Browse the repository at this point in the history
  19. Rollup merge of rust-lang#127496 - tgross35:f16-f128-pattern-fixme, r…

    …=Nadrieril
    
    Update `f16`/`f128` FIXMEs that needed `(NEG_)INFINITY`
    
    Just a small fix to the pattern matching tests now that we can. Also contains a small unrelated comment tweak.
    matthiaskrgr authored Jul 9, 2024
    Configuration menu
    Copy the full SHA
    056bac8 View commit details
    Browse the repository at this point in the history
  20. Rollup merge of rust-lang#127508 - lcnr:search-graph-prep, r=compiler…

    …-errors
    
    small search graph refactor
    
    small improvements which shouldn't impact behavior.
    
    r? ````@compiler-errors````
    matthiaskrgr authored Jul 9, 2024
    Configuration menu
    Copy the full SHA
    7320313 View commit details
    Browse the repository at this point in the history
  21. Rollup merge of rust-lang#127521 - spastorino:remove-myself-from-smir…

    …-pings, r=lqd
    
    Remove spastorino from SMIR
    
    r? `@oli-obk`
    matthiaskrgr authored Jul 9, 2024
    Configuration menu
    Copy the full SHA
    998f4f4 View commit details
    Browse the repository at this point in the history
  22. Rollup merge of rust-lang#127532 - simonLeary42:patch-1, r=Nilstrieb

    documentation: update cmake version
    
    Previously discussed here: rust-lang#127531
    matthiaskrgr authored Jul 9, 2024
    Configuration menu
    Copy the full SHA
    53aae31 View commit details
    Browse the repository at this point in the history