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

Closed
wants to merge 17 commits into from

Commits on Dec 24, 2021

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

Commits on Jan 3, 2022

  1. Configuration menu
    Copy the full SHA
    622a394 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f4545cc View commit details
    Browse the repository at this point in the history

Commits on Jan 5, 2022

  1. Configuration menu
    Copy the full SHA
    57b59af View commit details
    Browse the repository at this point in the history
  2. Switch to es6 for eslint

    Also update Node to v16.9.0, es-check to 6.1.1, and eslint to 8.6.0.
    jsha committed Jan 5, 2022
    Configuration menu
    Copy the full SHA
    f3fe912 View commit details
    Browse the repository at this point in the history
  3. Move crate drop-down to search results page

    This reduces clutter on doc pages.
    jsha committed Jan 5, 2022
    Configuration menu
    Copy the full SHA
    8abb4bb View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    4865852 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    42de973 View commit details
    Browse the repository at this point in the history

Commits on Jan 6, 2022

  1. add some missing must use to float ops

    asquared31415 committed Jan 6, 2022
    Configuration menu
    Copy the full SHA
    dd364ed View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    26edfc9 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#92248 - compiler-errors:normalize-type-for-…

    …pointee, r=jackh726
    
    Normalize struct tail type when checking Pointee trait
    
    Let's go ahead and implement the FIXMEs by properly normalizing the struct-tail type when satisfying a Pointee obligation. This should fix the ICE when we try to calculate a layout depending on `<Ty as Pointee>::Metadata` later.
    Fixes rust-lang#92128
    
    Additionally, mark the obligation as ambiguous if there are any infer types in that struct-tail type. This has the effect of causing `<_ as Pointee>::Metadata` to be properly replaced with an infer variable ([here](https://github.com/rust-lang/rust/blob/master/compiler/rustc_trait_selection/src/traits/project.rs#L813)) and registered as an obligation... this turns out to be very important in unifying function parameters with formals that are assoc types.
    
    Fixes rust-lang#91446
    Fixes rust-lang#92248
    matthiaskrgr committed Jan 6, 2022
    Configuration menu
    Copy the full SHA
    4b8fc3a View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#92490 - jsha:crates-in-results, r=Guillaume…

    …Gomez
    
    Move crate drop-down to search results page
    
    This reduces clutter on doc pages.
    
    Part of rust-lang#59840
    
    r? ``@GuillaumeGomez``
    
    Demo: https://rustdoc.crud.net/jsha/crates-in-results/std/index.html?search=str
    matthiaskrgr committed Jan 6, 2022
    Configuration menu
    Copy the full SHA
    1786cba View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#92510 - inquisitivecrystal:foreign-block, r…

    …=cjgillot
    
    Don't resolve blocks in foreign functions
    
    Although it is an error for a foreign function to have a block, it is still possible at the level of the AST. rust-lang#74204 made AST lowering skip over blocks belonging to foreign functions, since they're invalid. However, resolve still treated these blocks normally, resulting in a mismatch between the HIR and resolve, which could cause an ICE under certain circumstances. This PR changes resolve to skip over blocks belonging to foreign functions, as AST lowering does.
    
    Fixes rust-lang#91370.
    
    r? `@cjgillot`
    matthiaskrgr committed Jan 6, 2022
    Configuration menu
    Copy the full SHA
    21fe214 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#92535 - Amanieu:oom_hook_unwind, r=m-ou-se

    Allow unwinding from OOM hooks
    
    This is split off from rust-lang#88098 and contains just the bare minimum to allow specifying a custom OOM hook with `set_alloc_error_hook` which unwinds instead of aborting.
    
    See rust-lang#88098 for an actual command-line flag which switches the default OOM behavior to unwind instead of aborting.
    
    Previous perf results show a negligible impact on performance.
    matthiaskrgr committed Jan 6, 2022
    Configuration menu
    Copy the full SHA
    08e7eff View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#92568 - Mark-Simulacrum:non-exhaustive-vari…

    …ant-count, r=the8472
    
    Add note about non_exhaustive to variant_count
    
    Since `variant_count` isn't returning something opaque, I thought it makes sense to explicitly call out that its return value may change for some enums.
    
    cc rust-lang#73662
    matthiaskrgr committed Jan 6, 2022
    Configuration menu
    Copy the full SHA
    609bae7 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#92600 - asquared31415:float-must-use, r=jos…

    …htriplett
    
    Add some missing `#[must_use]` to some `f{32,64}` operations
    
    This PR adds `#[must_use]` to the following methods:
     - `f32::recip`
     - `f32::max`
     - `f32::min`
     - `f32::maximum`
     - `f32::minimum`
     and their equivalents in `f64`.
     These methods all produce a new value without modifying the original and so are pointless to call without using the result.
    matthiaskrgr committed Jan 6, 2022
    Configuration menu
    Copy the full SHA
    dc6079c View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#92610 - GuillaumeGomez:css-class-instead-of…

    …-inline-style, r=jsha
    
    Create CSS class instead of using inline style for search results
    
    I saw this change in the update you proposed in rust-lang#92404. :)
    
    r? `@jsha`
    matthiaskrgr committed Jan 6, 2022
    Configuration menu
    Copy the full SHA
    7b6c940 View commit details
    Browse the repository at this point in the history