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

Closed
wants to merge 20 commits into from
Closed

Commits on Mar 10, 2022

  1. Fix cargo run tidy

    When I implemented rust-only bootstrapping in rust-lang#92260,
    I neglected to test stage0 tools - it turns out they were broken because
    they couldn't find the sysroot of the initial bootstrap compiler.
    
    This fixes stage0 tools by using `rustc --print sysroot` instead of assuming rustc is already in a
    sysroot and hard-coding the relative directory.
    jyn514 committed Mar 10, 2022
    Configuration menu
    Copy the full SHA
    25a7d2d View commit details
    Browse the repository at this point in the history

Commits on Mar 23, 2022

  1. Configuration menu
    Copy the full SHA
    38e0ae5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b51f20e View commit details
    Browse the repository at this point in the history

Commits on Mar 25, 2022

  1. Configuration menu
    Copy the full SHA
    0cf6061 View commit details
    Browse the repository at this point in the history
  2. Use ManuallyDrop::take instead of into_inner

    Co-authored-by: Daniel Henry-Mantilla <[email protected]>
    jhorstmann and danielhenrymantilla authored Mar 25, 2022
    Configuration menu
    Copy the full SHA
    d14c0d2 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4b53f56 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c3840c9 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    d9a438d View commit details
    Browse the repository at this point in the history

Commits on Mar 30, 2022

  1. async: Give predictable, reserved name to binding generated from .awa…

    …it expressions.
    
    This name makes it to debuginfo and allows debuggers to identify such bindings and
    their captured versions in suspended async fns.
    michaelwoerister committed Mar 30, 2022
    Configuration menu
    Copy the full SHA
    78e27e2 View commit details
    Browse the repository at this point in the history
  2. Don't ICE when opaque types get their hidden type constrained again.

    Contrary to popular belief, `codegen_fulfill_obligation` does not get used solely in codegen, so we cannot rely on `param_env` being set to RevealAll and thus revealing the hidden types instead of constraining them.
    oli-obk committed Mar 30, 2022
    Configuration menu
    Copy the full SHA
    1144677 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f0b12f4 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e4248fe View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    39a8442 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    759d1e6 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#94806 - jyn514:cargo-run-tidy, r=Mark-Simul…

    …acrum
    
    Fix `cargo run tidy`
    
    When I implemented rust-only bootstrapping in rust-lang#92260,
    I neglected to test stage0 tools - it turns out they were broken because
    they couldn't find the sysroot of the initial bootstrap compiler.
    
    This fixes stage0 tools by using `rustc --print sysroot` instead of assuming rustc is already in a
    sysroot and hard-coding the relative directory.
    
    Fixes rust-lang#94797 (properly, without having to change rustup).
    Dylan-DPC authored Mar 30, 2022
    Configuration menu
    Copy the full SHA
    4842f4f View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#95011 - michaelwoerister:awaitee_field, r=t…

    …mandry
    
    async: Give predictable name to binding generated from .await expressions.
    
    This name makes it to debuginfo and allows debuggers to identify such bindings and their captured versions in suspended async fns.
    
    This will be useful for async stack traces, as discussed in https://internals.rust-lang.org/t/async-debugging-logical-stack-traces-setting-goals-collecting-examples/15547.
    
    I don't know if this needs some discussion by ```@rust-lang/compiler,``` e.g. about the name of the binding (`__awaitee`) or about the fact that this PR introduces a (soft) guarantee about a compiler generated name. Although, regarding the later, I think the same reasoning applies here as it does for debuginfo in general.
    
    r? ```@tmandry```
    Dylan-DPC authored Mar 30, 2022
    Configuration menu
    Copy the full SHA
    e6ff7b1 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#95032 - m-ou-se:std-features, r=yaahc

    Clean up, categorize and sort unstable features in std.
    Dylan-DPC authored Mar 30, 2022
    Configuration menu
    Copy the full SHA
    e0719bd View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    957dc51 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#95298 - jhorstmann:fix-double-drop-of-alloc…

    …ator-in-vec-into-iter, r=oli-obk
    
    Fix double drop of allocator in IntoIter impl of Vec
    
    Fixes rust-lang#95269
    
    The `drop` impl of `IntoIter` reconstructs a `RawVec` from `buf`, `cap` and `alloc`, when that `RawVec` is dropped it also drops the allocator. To avoid dropping the allocator twice we wrap it in `ManuallyDrop` in the `InttoIter` struct.
    
    Note this is my first contribution to the standard library, so I might be missing some details or a better way to solve this.
    Dylan-DPC authored Mar 30, 2022
    Configuration menu
    Copy the full SHA
    d7b0032 View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#95471 - oli-obk:tait_ice, r=estebank

    Don't ICE when opaque types get their hidden type constrained again.
    
    Contrary to popular belief, `codegen_fulfill_obligation` does not get used solely in codegen, so we cannot rely on `param_env` being set to RevealAll and thus revealing the hidden types instead of constraining them.
    
    Fixes rust-lang#89312 (for real this time)
    Dylan-DPC authored Mar 30, 2022
    Configuration menu
    Copy the full SHA
    e5d022f View commit details
    Browse the repository at this point in the history