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

Merged
merged 22 commits into from
Sep 2, 2022
Merged

Rollup of 7 pull requests #100395

merged 22 commits into from
Sep 2, 2022

Commits on Aug 1, 2022

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

Commits on Aug 5, 2022

  1. Configuration menu
    Copy the full SHA
    127b6c4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a7c45ec View commit details
    Browse the repository at this point in the history

Commits on Aug 6, 2022

  1. Remove duplicated temporaries creating during box derefs elaboration

    Temporaries created with `MirPatch::new_temp` will be declared after
    patch application. Remove manually created duplicate declarations.
    
    Removing duplicates exposes another issue. Visitor elaborates
    terminator twice and attempts to access new, but not yet available,
    local declarations. Remove duplicated call to `visit_terminator`.
    tmiasko committed Aug 6, 2022
    Configuration menu
    Copy the full SHA
    18a21e1 View commit details
    Browse the repository at this point in the history
  2. ./x.py test --bless

    tmiasko committed Aug 6, 2022
    Configuration menu
    Copy the full SHA
    7d2131a View commit details
    Browse the repository at this point in the history

Commits on Aug 9, 2022

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

Commits on Aug 10, 2022

  1. rustdoc: simplify highlight.rs

    Split render_with_highlighting, which took many optional parameters, into three
    functions for specific purposes, which each take a smaller number of mostly
    required parameters.
    
    Remove some plumbing to pass through an "edition" parameter, which was used
    solely to avoid highlighting some 2021 Edition keywords in non-2021 code.
    jsha committed Aug 10, 2022
    Configuration menu
    Copy the full SHA
    5938fd7 View commit details
    Browse the repository at this point in the history
  2. Improve crate selection on rustdoc search results page

    Resolves all of issue rust-lang#93240
    
    Reproduces a similar change as rust-lang#99086, but with improvements
    
    In particular, this PR inlcludes:
    * redesigning the crate-search selector so the background color matches its surroundings
    * decrease the font of the dropdown menu to a reaonable size
    * add a hover effect
    * make the color of the arrow theme-dependent, using a surrounding div, with :after pseudo-element
      that can then be transformed using CSS filters to approximate the desired color
    * fix the text "in" to match the title font
    * remove the "for xyz" in the "Results for xyz in [All crates]" title when
      searching for search term "xyz"; you can already see what you're searching for
      as it's typed in the search bar!
    * in line with rust-lang#99086, handle super-long crate names appropriately without a long <select>
      element escaping the screen area; the improvement is that we also keep the title
      within a single line now; uses some flex layout shenanigans...
    * the margins / paddings are adjusted so the selected label of the <select> fits within
      the rest of that title nicely; also some inconsistency in the way that Firefox renders
      a <select> with "appearance: none" (roughly 4px more padding left and right of the text
      than e.g. Chrome) is worked around, and it now produces a result that looks (essentially)
      identical to Chrome
    * the color of the help menu and settings menu border in light theme is made to match with
      the color of the corresponding buttons, like they do (match) in the ayu theme
    * the casing of "All crates" changes to "all crates"
    * the new tests from rust-lang#99086 are temporarily disabled, until they can be adapted later
    steffahn authored and GuillaumeGomez committed Aug 10, 2022
    Configuration menu
    Copy the full SHA
    16bcc18 View commit details
    Browse the repository at this point in the history
  3. Two small improvements:

    Fix oversight duplicate property left in CSS (dark theme).
    
    Improve wording in comment that mentions `appearance: none`
    steffahn authored and GuillaumeGomez committed Aug 10, 2022
    Configuration menu
    Copy the full SHA
    e957480 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    107e039 View commit details
    Browse the repository at this point in the history
  5. Update GUI test

    GuillaumeGomez committed Aug 10, 2022
    Configuration menu
    Copy the full SHA
    ea05be2 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    e1e25a8 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    0df84ae View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    a3b84ad View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    dfb3713 View commit details
    Browse the repository at this point in the history

Commits on Aug 11, 2022

  1. Rollup merge of rust-lang#92744 - lambinoo:I-91161-non-exhaustive-for…

    …eign-variants, r=scottmcm
    
    Check if enum from foreign crate has any non exhaustive variants when attempting a cast
    
    Fixes rust-lang#91161
    
    As stated in the issue, this will require a crater run as it might break other people's stuff.
    Dylan-DPC authored Aug 11, 2022
    Configuration menu
    Copy the full SHA
    23acd82 View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#99337 - jsha:simplify-highlight, r=Guillaum…

    …eGomez
    
    rustdoc: simplify highlight.rs
    
    Split render_with_highlighting, which took many optional parameters, into three functions for specific purposes, which each take a smaller number of mostly required parameters.
    
    Remove some plumbing to pass through an "edition" parameter, which was used solely to avoid highlighting some 2021 Edition keywords in non-2021 code.
    
    I've tested a build of std docs before and after, and this does not change the generated HTML at all.
    
    Followup from rust-lang#91264 (comment)
    
    r? ``@GuillaumeGomez``
    Dylan-DPC authored Aug 11, 2022
    Configuration menu
    Copy the full SHA
    72d0be4 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#100007 - ChrisDenton:dtor-inline-never, r=m…

    …ichaelwoerister
    
    Never inline Windows dtor access
    
    Inlining can cause problem If used in a Rust dylib. See rust-lang#44391.
    
    r? `@Mark-Simulacrum`
    Dylan-DPC authored Aug 11, 2022
    Configuration menu
    Copy the full SHA
    5b2ad6e View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#100030 - WaffleLapkin:nice_pointer_sis, r=s…

    …cottmcm
    
    cleanup code w/ pointers in std a little
    
    Use pointer methods (`byte_add`, `null_mut`, etc) to make code in std a little nicer.
    Dylan-DPC authored Aug 11, 2022
    Configuration menu
    Copy the full SHA
    8bdb414 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#100192 - tmiasko:rm-duplicated-locals, r=na…

    …gisa
    
     Remove duplicated temporaries creating during box derefs elaboration
    
    Temporaries created with `MirPatch::new_temp` will be declared after
    patch application. Remove manually created duplicate declarations.
    
    Removing duplicates exposes another issue. Visitor elaborates
    terminator twice and attempts to access new, but not yet available,
    local declarations. Remove duplicated call to `visit_terminator`.
    
    Extracted from rust-lang#99946.
    Dylan-DPC authored Aug 11, 2022
    Configuration menu
    Copy the full SHA
    58dc085 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#100247 - cjgillot:verify-dyn-trait-alias-de…

    …faults, r=lcnr
    
    Generalize trait object generic param check to aliases.
    
    The current algorithm only checks that `Self` does not appear in defaults for traits.  This is not sufficient for trait aliases.
    This PR moves the check to trait object elaboration, which sees through trait aliases.
    
    Fixes rust-lang#82927.
    Fixes rust-lang#84789.
    Dylan-DPC authored Aug 11, 2022
    Configuration menu
    Copy the full SHA
    a9f3a27 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#100374 - GuillaumeGomez:improve_rustdoc_sea…

    …rch_results_page_crates_selection, r=notriddle
    
    Improve crate selection on rustdoc search results page
    
    Take over of rust-lang#98855 (screenshots and explanations are there).
    
    You can test it [here](https://rustdoc.crud.net/imperio/improve_rustdoc_search_results_page_crates_selection/std/index.html?search=test).
    
    cc `@steffahn` `@jsha`
    r? `@notriddle`
    Dylan-DPC authored Aug 11, 2022
    Configuration menu
    Copy the full SHA
    5a5cd6b View commit details
    Browse the repository at this point in the history