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

Closed
wants to merge 19 commits into from
Closed

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 8, 2022

  1. Configuration menu
    Copy the full SHA
    cc8259e 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
  2. Configuration menu
    Copy the full SHA
    0436067 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ee8a01f View commit details
    Browse the repository at this point in the history

Commits on Aug 10, 2022

  1. errors: don't fail on broken primary translations

    If a primary bundle doesn't contain a message then the fallback bundle
    is used. However, if the primary bundle's message is broken (e.g. it
    refers to a interpolated variable that the compiler isn't providing)
    then this would just result in a compiler panic. While there aren't any
    primary bundles right now, this is the type of issue that could come up
    once translation is further along.
    
    Signed-off-by: David Wood <david.wood@huawei.com>
    davidtwco committed Aug 10, 2022
    Configuration menu
    Copy the full SHA
    2eebd34 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e1e25a8 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0df84ae View commit details
    Browse the repository at this point in the history

Commits on Aug 11, 2022

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

Commits on Aug 12, 2022

  1. rustdoc: don't generate DOM element for operator

    In our source page highlighting, we were generating `<span class="op">`
    tags for all "operators", including e.g. `<` `>` around generic
    parameters, `*`, `&`. This contributed significantly to DOM size, but
    we don't actually style `.op` except in the ayu theme.
    
    Remove the styles for `.op` in ayu, and stop generating the `<span>`s.
    
    This reduces DOM size of an example page[1] from 265,938 HTML elements
    to 242,165 elements, a 9% reduction.
    
    [1]:
    https://doc.rust-lang.org/nightly/src/core/up/up/stdarch/crates/core_arch/src/x86/avx512f.rs.html
    jsha committed Aug 12, 2022
    Configuration menu
    Copy the full SHA
    dd4613c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f5765ae View commit details
    Browse the repository at this point in the history
  3. 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 12, 2022
    Configuration menu
    Copy the full SHA
    5272810 View commit details
    Browse the repository at this point in the history
  4. 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 12, 2022
    Configuration menu
    Copy the full SHA
    511eda1 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#100255 - thedanvail:issue-98861-fix, r=josh…

    …triplett
    
    Adding more verbose documentation for `std::fmt::Write`
    
    Attempts to address rust-lang#98861
    Dylan-DPC authored Aug 12, 2022
    Configuration menu
    Copy the full SHA
    dbea6ac View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#100299 - compiler-errors:issue-100283, r=no…

    …triddle
    
    make `clean::Item::span` return `Option` instead of dummy span
    
    Fixes rust-lang#100283
    Dylan-DPC authored Aug 12, 2022
    Configuration menu
    Copy the full SHA
    f3e083a View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#100366 - davidtwco:translation-never-fail, …

    …r=compiler-errors
    
    errors: don't fail on broken primary translations
    
    If a primary bundle doesn't contain a message then the fallback bundle is used. However, if the primary bundle's message is broken (e.g. it refers to a interpolated variable that the compiler isn't providing) then this would just result in a compiler panic. While there aren't any primary bundles right now, this is the type of issue that could come up once translation is further along.
    
    r? ``@compiler-errors`` (since this comes out of a in-person discussion we had at RustConf)
    Dylan-DPC authored Aug 12, 2022
    Configuration menu
    Copy the full SHA
    aa2b716 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#100396 - chenyukang:fix-100394, r=petrochenkov

    Suggest const and static for global variable
    
    Fixing rust-lang#100394
    Dylan-DPC authored Aug 12, 2022
    Configuration menu
    Copy the full SHA
    e9fbfa2 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#100409 - jsha:highlight-lighter, r=Guillaum…

    …eGomez
    
    rustdoc: don't generate DOM element for operator
    
    In our source page highlighting, we were generating `<span class="op">` tags for all "operators", including e.g. `<` `>` around generic parameters, `*`, `&`. This contributed significantly to DOM size, but we don't actually style `.op` except in the ayu theme.
    
    Remove the styles for `.op` in ayu, and stop generating the `<span>`s.
    
    This reduces DOM size of an example page[1] from 265,938 HTML elements to 242,165 elements, a 9% reduction.
    
    r? `@GuillaumeGomez`
    
    Demo: (warning - slow!) https://rustdoc.crud.net/jsha/highlight-lighter/src/core/up/up/stdarch/crates/core_arch/src/x86/avx512f.rs.html
    
    [1]:
    https://doc.rust-lang.org/nightly/src/core/up/up/stdarch/crates/core_arch/src/x86/avx512f.rs.html
    Dylan-DPC authored Aug 12, 2022
    Configuration menu
    Copy the full SHA
    5a9a84f View commit details
    Browse the repository at this point in the history