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 9 pull requests #100456

Merged
merged 26 commits into from
Aug 12, 2022
Merged

Rollup of 9 pull requests #100456

merged 26 commits into from
Aug 12, 2022

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

  1. Configuration menu
    Copy the full SHA
    be6bb56 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
    7b2a5f2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2bd9479 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d52ed82 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    0436067 View commit details
    Browse the repository at this point in the history
  5. 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
    3d21c37 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e1e25a8 View commit details
    Browse the repository at this point in the history
  4. 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
    e3c5bd6 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9818526 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#100022 - joboet:faster_threadid, r=joshtrip…

    …lett
    
    Optimize thread ID generation
    
    By using atomics where available, thread IDs can be generated without locking while still enforcing uniqueness.
    Dylan-DPC authored Aug 12, 2022
    Configuration menu
    Copy the full SHA
    a8c799a View commit details
    Browse the repository at this point in the history
  5. 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
    51eed00 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#100229 - RalfJung:extra-const-ub-checks, r=…

    …lcnr
    
    add -Zextra-const-ub-checks to enable more UB checking in const-eval
    
    Cc rust-lang#99923
    r? `@oli-obk`
    Dylan-DPC authored Aug 12, 2022
    Configuration menu
    Copy the full SHA
    392ba5f View commit details
    Browse the repository at this point in the history
  7. 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
    caac670 View commit details
    Browse the repository at this point in the history
  8. 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
    da3b89d View commit details
    Browse the repository at this point in the history
  9. 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
    9e69dbc View commit details
    Browse the repository at this point in the history
  10. 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
    9914c96 View commit details
    Browse the repository at this point in the history
  11. 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
    0356034 View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#100443 - est31:let_else_regression_tests, r…

    …=Mark-Simulacrum
    
    Add two let else regression tests
    
    Adds a regression test for rust-lang#94176, as it was fixed by rust-lang#98574 but doesn't have a regression test. The PR also incorporates a commit from rust-lang#94012 which added a test for an issue discovered in that PR.
    
    Originally they have been part of rust-lang#99291, but I've moved them out in the hopes of getting them merged more quickly, as that PR is already open since a month, and so that rust-lang#99291 can focus on the drop order part of things.
    
    Closes rust-lang#94176
    Closes rust-lang#96961 -- dupe of rust-lang#94176
    Dylan-DPC authored Aug 12, 2022
    Configuration menu
    Copy the full SHA
    3bc30bb View commit details
    Browse the repository at this point in the history