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 7 pull requests #117180

Merged
merged 17 commits into from
Oct 25, 2023
Merged

Rollup of 7 pull requests #117180

merged 17 commits into from
Oct 25, 2023

Commits on Oct 24, 2023

  1. Configuration menu
    Copy the full SHA
    ff7bf79 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b3cfd5b View commit details
    Browse the repository at this point in the history
  3. Require target features to match exactly during inlining

    In general it is not correct to inline a callee with a target features
    that are subset of the callee. Require target features to match exactly
    during inlining.
    
    The exact match could be potentially relaxed, but this would require
    identifying specific feature that are allowed to differ, those that need
    to match, and those that can be present in caller but not in callee.
    
    This resolves MIR part of rust-lang#116573. For other concerns with respect to
    the previous implementation also see areInlineCompatible in LLVM.
    tmiasko committed Oct 24, 2023
    Configuration menu
    Copy the full SHA
    011b260 View commit details
    Browse the repository at this point in the history

Commits on Oct 25, 2023

  1. Configuration menu
    Copy the full SHA
    bc18509 View commit details
    Browse the repository at this point in the history
  2. Remove support for alias -Z instrument-coverage

    This flag was stabilized in rustc 1.60.0 as `-C instrument-coverage`, but the
    old unstable flag was kept around as an alias to ease migration.
    Zalathar committed Oct 25, 2023
    Configuration menu
    Copy the full SHA
    65b0f6a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2334143 View commit details
    Browse the repository at this point in the history
  4. Work around the fact that check_mod_type_wf may spuriously return `…

    …ErrorGuaranteed`, even if that error is only emitted by `check_modwitem_types`
    oli-obk committed Oct 25, 2023
    Configuration menu
    Copy the full SHA
    beaf46f View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    32339f8 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    a9fad1c View commit details
    Browse the repository at this point in the history
  7. Make Iterator a lang item

    oli-obk committed Oct 25, 2023
    Configuration menu
    Copy the full SHA
    268ec72 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#117111 - Zalathar:zinstrument, r=compiler-e…

    …rrors
    
    Remove support for alias `-Z instrument-coverage`
    
    This flag was stabilized in rustc 1.60.0 (2022-04-07) as `-C instrument-coverage`, but the old unstable flag was kept around (with a warning) as an alias to ease migration.
    
    It should now be reasonable to remove the somewhat tricky code that implemented that alias.
    
    Fixes rust-lang#116980.
    matthiaskrgr committed Oct 25, 2023
    Configuration menu
    Copy the full SHA
    24254d2 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#117141 - tmiasko:inline-target-features, r=…

    …oli-obk
    
    Require target features to match exactly during inlining
    
    In general it is not correct to inline a callee with a target features
    that are subset of the callee. Require target features to match exactly
    during inlining.
    
    The exact match could be potentially relaxed, but this would require
    identifying specific feature that are allowed to differ, those that need
    to match, and those that can be present in caller but not in callee.
    
    This resolves MIR part of rust-lang#116573. For other concerns with respect to
    the previous implementation also see areInlineCompatible in LLVM.
    matthiaskrgr committed Oct 25, 2023
    Configuration menu
    Copy the full SHA
    a1ab167 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#117152 - compiler-errors:no-ret-coercion, r…

    …=chenyukang
    
    Fix unwrap suggestion for async fn
    
    Use `body_fn_sig` to get the expected return type of the function instead of `ret_coercion` in `FnCtxt`. This avoids accessing the `ret_coercion` when it's already mutably borrowed (e.g. when checking `return` expressions).
    
    Fixes rust-lang#117144
    
    r? `@chenyukang`
    matthiaskrgr committed Oct 25, 2023
    Configuration menu
    Copy the full SHA
    585a122 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    74c2b98 View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#117159 - oli-obk:error_shenanigans, r=estebank

    Work around the fact that `check_mod_type_wf` may spuriously return `ErrorGuaranteed`
    
    Even if that error is only emitted by `check_mod_item_types`.
    
    fixes rust-lang#117153
    
    A cleaner refactoring would merge/chain these queries in ways that ensure we only actually get an `ErrorGuaranteed` if there was an error emitted.
    matthiaskrgr committed Oct 25, 2023
    Configuration menu
    Copy the full SHA
    26a9e08 View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#117163 - tmiasko:compiletest-mir-opt, r=com…

    …piler-errors
    
    compiletest: Display compilation errors in mir-opt tests
    
    Previously when compilation failed the `check_mir_dump` would panic first, so we would never display the compiler output.
    matthiaskrgr committed Oct 25, 2023
    Configuration menu
    Copy the full SHA
    beba522 View commit details
    Browse the repository at this point in the history
  14. Rollup merge of rust-lang#117173 - oli-obk:gen_fn_split2, r=compiler-…

    …errors
    
    Make `Iterator` a lang item
    
    r? `@compiler-errors`
    
    pulled out of rust-lang#116447
    
    We're doing this change on its own, because iterator was the one diagnostic item that was load bearing on us correctly emitting errors about `diagnostic_item` mis-uses. It was used in some diagnostics as an early abort, before the actual checks of the diagnostic, so effectively the compiler was *unconditionally* checking for the iterator diagnostic item, even if it didn't emit any diagnostics. Changing those uses to use the lang item, caused us not to invoke the `all_diagnostic_items` query anymore, which then caused us to miss some issues around diagnostic items until they were actually used.
    
    The reason we keep the diagnostic item around is that clippy uses it a lot and having `Iterator` be a lang item and a diagnostic item at the same time doesn't cost us anything, but makes clippy's internal code simpler
    matthiaskrgr committed Oct 25, 2023
    Configuration menu
    Copy the full SHA
    b0521fe View commit details
    Browse the repository at this point in the history