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

Merged
merged 21 commits into from
Jan 23, 2024
Merged

Rollup of 8 pull requests #120251

merged 21 commits into from
Jan 23, 2024

Commits on Jan 19, 2024

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

Commits on Jan 20, 2024

  1. Track verbose and verbose_internals

    bjorn3 says:
    > On errors we don't finalize the incr comp cache, but non-fatal diagnostics are cached afaik.
    Otherwise we would have to replay the query in question, which we may not be able to do if the query
    key is not reconstructible from the dep node fingerprint.
    
    So we must track these flags to avoid replaying incorrect diagnostics.
    jyn514 committed Jan 20, 2024
    Configuration menu
    Copy the full SHA
    c3e4c45 View commit details
    Browse the repository at this point in the history

Commits on Jan 22, 2024

  1. Fix a trimmed_def_paths assertion failure.

    `RegionHighlightMode::force_print_trimmed_def_path` can call
    `trimmed_def_paths` even when `tcx.sess.opts.trimmed_def_paths` is
    false. Based on the `force` in the method name, it seems this is
    deliberate, so I have removed the assertion.
    
    Fixes rust-lang#120035.
    nnethercote committed Jan 22, 2024
    Configuration menu
    Copy the full SHA
    012a304 View commit details
    Browse the repository at this point in the history
  2. Document Token{Stream,Tree}::Display more thoroughly.

    To expressly warn against the kind of proc macro implementation that was
    broken in rust-lang#119875.
    nnethercote committed Jan 22, 2024
    Configuration menu
    Copy the full SHA
    c4fc9ff View commit details
    Browse the repository at this point in the history
  3. Fix msys2 tty detection for /dev/ptmx

    Our "true negative" detection assumes that if at least one std handle is a Windows console then no other handle will be a msys2 tty pipe. This turns out to be a faulty assumption in the case of  `/dev/ptmx`.
    ChrisDenton committed Jan 22, 2024
    Configuration menu
    Copy the full SHA
    e74c667 View commit details
    Browse the repository at this point in the history
  4. Tweak

    Nadrieril committed Jan 22, 2024
    Configuration menu
    Copy the full SHA
    dbc1f07 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    a9ea07d View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    d1f1075 View commit details
    Browse the repository at this point in the history
  7. Revert "Auto merge of rust-lang#118133 - Urgau:stabilize_trait_upcast…

    …ing, r=WaffleLapkin"
    
    This reverts commit 6d2b84b, reversing
    changes made to 73bc121.
    oli-obk committed Jan 22, 2024
    Configuration menu
    Copy the full SHA
    9a20cf1 View commit details
    Browse the repository at this point in the history
  8. Add regression test

    oli-obk committed Jan 22, 2024
    Configuration menu
    Copy the full SHA
    483382b View commit details
    Browse the repository at this point in the history
  9. std: move cmath into sys

    joboet committed Jan 22, 2024
    Configuration menu
    Copy the full SHA
    f88e643 View commit details
    Browse the repository at this point in the history
  10. Use -> ! to test divergence

    Nadrieril committed Jan 22, 2024
    Configuration menu
    Copy the full SHA
    c5a4e07 View commit details
    Browse the repository at this point in the history
  11. Test async fn

    Nadrieril committed Jan 22, 2024
    Configuration menu
    Copy the full SHA
    3ff1024 View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#119664 - ChrisDenton:mingw-pty, r=thomcc

    Fix tty detection for msys2's `/dev/ptmx`
    
    Our "true negative" detection assumes that if at least one std handle is a Windows console then no other handle will be a msys2 tty pipe. This turns out to be a faulty assumption in the case of redirection to  `/dev/ptmx` in an msys2 shell. Maybe this is an msys2 bug but in any case we should try to make it work.
    
    An alternative to this would be to replace the "true negative" detection with an attempt to detect if we're in an msys environment (e.g. by sniffing environment variables) but that seems like it'd be flaky too.
    
    Fixes rust-lang#119658
    matthiaskrgr committed Jan 22, 2024
    Configuration menu
    Copy the full SHA
    67d0936 View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#120104 - Nadrieril:never-pat-diverges, r=co…

    …mpiler-errors
    
    never_patterns: Count `!` bindings as diverging
    
    A binding that is a never pattern is not reachable, hence counts as diverging code. This allows in particular `fn foo(!: Void) -> SomeType {}` to typecheck.
    
    r? ``@compiler-errors``
    matthiaskrgr committed Jan 22, 2024
    Configuration menu
    Copy the full SHA
    042cc72 View commit details
    Browse the repository at this point in the history
  14. Rollup merge of rust-lang#120109 - joboet:move_pal_cmath, r=ChrisDenton

    Move cmath into `sys`
    
    Part of rust-lang#117276.
    
    r? ``@ChrisDenton``
    matthiaskrgr committed Jan 22, 2024
    Configuration menu
    Copy the full SHA
    42e1db5 View commit details
    Browse the repository at this point in the history
  15. Rollup merge of rust-lang#120143 - compiler-errors:consolidate-instan…

    …ce-resolve-for-coroutines, r=oli-obk
    
    Consolidate logic around resolving built-in coroutine trait impls
    
    Deduplicates a lot of code. Requires defining a new lang item for `Coroutine::resume` for consistency, but it seems not harmful at worst, and potentially later useful at best.
    
    r? oli-obk
    matthiaskrgr committed Jan 22, 2024
    Configuration menu
    Copy the full SHA
    221115c View commit details
    Browse the repository at this point in the history
  16. Rollup merge of rust-lang#120159 - jyn514:track-verbose, r=wesleywiser

    Track `verbose` and `verbose_internals`
    
    `verbose_internals` has been UNTRACKED since it was introduced. When i added `verbose` in rust-lang#119129 i made it UNTRACKED as well.
    
    ``@bjorn3`` says: rust-lang#119286 (comment)
    > On errors we don't finalize the incr comp cache, but non-fatal diagnostics are cached afaik.
    Otherwise we would have to replay the query in question, which we may not be able to do if the query key is not reconstructible from the dep node fingerprint.
    
    So we must track these flags to avoid replaying incorrect diagnostics.
    
    r? incremental
    matthiaskrgr committed Jan 22, 2024
    Configuration menu
    Copy the full SHA
    8966d60 View commit details
    Browse the repository at this point in the history
  17. Rollup merge of rust-lang#120216 - nnethercote:fix-trimmed_def_paths-…

    …assertion, r=compiler-errors
    
    Fix a `trimmed_def_paths` assertion failure.
    
    `RegionHighlightMode::force_print_trimmed_def_path` can call `trimmed_def_paths` even when `tcx.sess.opts.trimmed_def_paths` is false. Based on the `force` in the method name, it seems this is deliberate, so I have removed the assertion.
    
    Fixes rust-lang#120035.
    
    r? `@compiler-errors`
    matthiaskrgr committed Jan 22, 2024
    Configuration menu
    Copy the full SHA
    31b56a8 View commit details
    Browse the repository at this point in the history
  18. Rollup merge of rust-lang#120220 - nnethercote:TokenStream-Display-do…

    …cs, r=petrochenkov
    
    Document `Token{Stream,Tree}::Display` more thoroughly.
    
    To expressly warn against the kind of proc macro implementation that was broken in rust-lang#119875.
    
    r? ``@petrochenkov``
    matthiaskrgr committed Jan 22, 2024
    Configuration menu
    Copy the full SHA
    a430718 View commit details
    Browse the repository at this point in the history
  19. Rollup merge of rust-lang#120233 - oli-obk:revert_trait_obj_upcast_st…

    …abilization, r=lcnr
    
    Revert stabilization of trait_upcasting feature
    
    Reverts rust-lang#118133
    
    This reverts commit 6d2b84b, reversing changes made to 73bc121.
    
    The feature has a soundness bug:
    
    * rust-lang#120222
    
    It is unclear to me whether we'll actually want to destabilize, but I thought it was still prudent to open the PR for easy destabilization once we get there.
    matthiaskrgr committed Jan 22, 2024
    Configuration menu
    Copy the full SHA
    a787232 View commit details
    Browse the repository at this point in the history