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

Closed
wants to merge 27 commits into from

Commits on Jan 15, 2023

  1. Tweak E0597

    estebank committed Jan 15, 2023
    Configuration menu
    Copy the full SHA
    656db98 View commit details
    Browse the repository at this point in the history
  2. Fix fulldeps-ui tests

    estebank committed Jan 15, 2023
    Configuration menu
    Copy the full SHA
    e4f61af View commit details
    Browse the repository at this point in the history

Commits on Jan 17, 2023

  1. Configuration menu
    Copy the full SHA
    be2ec32 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c6111e8 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7b8251e View commit details
    Browse the repository at this point in the history

Commits on Jan 19, 2023

  1. Configuration menu
    Copy the full SHA
    e1f630f View commit details
    Browse the repository at this point in the history
  2. Add rustc_on_unimplemented on Sync for cell types

    Suggest using a lock instead.
    Noratrieb committed Jan 19, 2023
    Configuration menu
    Copy the full SHA
    6d0c91f View commit details
    Browse the repository at this point in the history

Commits on Jan 23, 2023

  1. Add hint for missing lifetime bound on trait object when type alias i…

    …s used
    yanchen4791 committed Jan 23, 2023
    Configuration menu
    Copy the full SHA
    62a1e76 View commit details
    Browse the repository at this point in the history
  2. Bring tests back into rustc source tarball

    They were missing after recent move from src/test to tests.
    tmiasko committed Jan 23, 2023
    Configuration menu
    Copy the full SHA
    7f5ce94 View commit details
    Browse the repository at this point in the history

Commits on Jan 24, 2023

  1. Configuration menu
    Copy the full SHA
    e6e93e0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ad73936 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    11a94f2 View commit details
    Browse the repository at this point in the history
  4. implement builtin candidate

    BoxyUwU committed Jan 24, 2023
    Configuration menu
    Copy the full SHA
    430dab0 View commit details
    Browse the repository at this point in the history
  5. sorry erica

    BoxyUwU committed Jan 24, 2023
    Configuration menu
    Copy the full SHA
    2f924b0 View commit details
    Browse the repository at this point in the history
  6. no without_constness

    BoxyUwU committed Jan 24, 2023
    Configuration menu
    Copy the full SHA
    a418e39 View commit details
    Browse the repository at this point in the history

Commits on Jan 25, 2023

  1. rustdoc: use smarter encoding for playground URL

    The old way would compress okay with DEFLATE, but this version makes
    uncompressed docs smaller, which matters for memory usage and stuff
    like `cargo doc`.
    
    Try it out: <https://play.rust-lang.org/?code=fn+main()+{%0Alet+mut+v+=+Vec::new();%0Av.push(1+/+1);%0Aprintln!(%22{}%22,+v[0]);%0A}>
    
    In local testing, this change shrinks sample pages by anywhere between
    5.0% and 0.044%
    
        $ du -b after.dir/std/vec/struct.Vec.html before.dir/std/vec/struct.Vec.html
        753023  after.dir/std/vec/struct.Vec.html
        781842  before.dir/std/vec/struct.Vec.html
    
    100*((753023-781842)/781842)=-3.7
    
        $ du -b after.dir/std/num/struct.Wrapping.html before.dir/std/num/struct.Wrapping.html
        3189989 after.dir/std/num/struct.Wrapping.html
        3204351 before.dir/std/num/struct.Wrapping.html
    
    100*((3189989-3204351)/3204351)=-0.044
    
        $ du -b after.dir/std/keyword.match.html before.dir/std/keyword.match.html
        8067    after.dir/std/keyword.match.html
        8495    before.dir/std/keyword.match.html
    
    100*((8067-8495)/8495)=-5.0
    
    Gzipped tarball sizes seem shrunk, but not by much.
    
        du -s before.tar.gz after.tar.gz
        69600   before.tar.gz
        69492   after.tar.gz
    
    100*((69492-69600)/69600)=-0.16
    notriddle committed Jan 25, 2023
    Configuration menu
    Copy the full SHA
    273254e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e500c44 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0db0419 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#105345 - yanchen4791:issue-103582-fix, r=ja…

    …ckh726
    
    Add hint for missing lifetime bound on trait object when type alias is used
    
    Fix issue rust-lang#103582.
    
    The problem: When a type alias is used to specify the return type of the method in a trait impl, the suggestion for fixing the problem of "missing lifetime bound on trait object" of the trait impl will not be created. The issue caused by the code which searches for the return trait objects when constructing the hint suggestion is not able to find the trait objects since they are specified in the type alias path instead of the return path of the trait impl.
    
    The solution: Trace the trait objects in the type alias path and provide them along with the alias span to generate the suggestion in case the type alias is used in return type of the method in the trait impl.
    matthiaskrgr authored Jan 25, 2023
    Configuration menu
    Copy the full SHA
    0c9d9e5 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    4d0e6aa View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#106944 - Nilstrieb:there-once-was-a-diagnos…

    …tic, r=WaffleLapkin
    
    Suggest using a lock for `*Cell: Sync` bounds
    
    I mostly did this for `OnceCell<T>` at first because users will be confused to see that the `OnceCell<T>` in `std` isn't `Sync` but then extended it to `Cell<T>` and `RefCell<T>` as well.
    matthiaskrgr authored Jan 25, 2023
    Configuration menu
    Copy the full SHA
    11b227a View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#107239 - tmiasko:tests, r=Mark-Simulacrum

    Bring tests back into rustc source tarball
    
    They were missing after recent move from src/test to tests.
    
    cc ``@albertlarsan68``
    
    Fixes rust-lang#107081
    matthiaskrgr authored Jan 25, 2023
    Configuration menu
    Copy the full SHA
    a1dcdea View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#107255 - lcnr:implied-b-hr, r=oli-obk

    add test where we ignore hr implied bounds
    
    r? types
    matthiaskrgr authored Jan 25, 2023
    Configuration menu
    Copy the full SHA
    7cebffe View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#107256 - JakobDegen:delete-sai, r=cjgillot

    Delete `SimplifyArmIdentity` and `SimplifyBranchSame` mir opts
    
    I had attempted to fix the first of these opts in rust-lang#94177 . However, despite that PR already being a full re-write, it still did not fix some of the core soundness issues. The optimizations that are attempted here are likely to be desirable, but I do not expect any of the currently written code to survive into a sound implementation. Deleting the code keeps us from having to maintain the passes in the meantime.
    
    Closes rust-lang#77359 , closes rust-lang#72800 , closes rust-lang#78628
    
    r? ``@cjgillot``
    matthiaskrgr authored Jan 25, 2023
    Configuration menu
    Copy the full SHA
    82ea29c View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#107266 - kadiwa4:source_viewer_scrollbar, r…

    …=notriddle
    
    rustdoc: prohibit scroll bar on source viewer in Safari
    
    Fixes rust-lang#106455.
    matthiaskrgr authored Jan 25, 2023
    Configuration menu
    Copy the full SHA
    7cede15 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#107282 - BoxyUwU:erica_builtin_pointee_impl…

    …s, r=compiler-errors
    
    erica solver: implement builtin `Pointee` trait impl candidates
    
    r? ``@compiler-errors``
    matthiaskrgr authored Jan 25, 2023
    Configuration menu
    Copy the full SHA
    32eca9f View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#107284 - notriddle:notriddle/plus, r=jsha

    rustdoc: use smarter encoding for playground URL
    
    The old way would compress okay with DEFLATE, but this version makes uncompressed docs smaller, which matters for memory usage and stuff like `cargo doc`.
    
    Try it out: <https://play.rust-lang.org/?code=fn+main()+{%0Alet+mut+v+=+Vec::new();%0Av.push(1+/+1);%0Aprintln!(%22{}%22,+v[0]);%0A}>
    
    In local testing, this change shrinks sample pages by anywhere between 5.0% and 0.044%
    
        $ du -b after.dir/std/vec/struct.Vec.html before.dir/std/vec/struct.Vec.html
        753023  after.dir/std/vec/struct.Vec.html
        781842  before.dir/std/vec/struct.Vec.html
    
    100*((753023-781842)/781842)=-3.7
    
        $ du -b after.dir/std/num/struct.Wrapping.html before.dir/std/num/struct.Wrapping.html
        3189989 after.dir/std/num/struct.Wrapping.html
        3204351 before.dir/std/num/struct.Wrapping.html
    
    100*((3189989-3204351)/3204351)=-0.044
    
        $ du -b after.dir/std/keyword.match.html before.dir/std/keyword.match.html
        8067    after.dir/std/keyword.match.html
        8495    before.dir/std/keyword.match.html
    
    100*((8067-8495)/8495)=-5.0
    
    Gzipped tarball sizes seem shrunk, but not by much.
    
        du -s before.tar.gz after.tar.gz
        69600   before.tar.gz
        69492   after.tar.gz
    
    100*((69492-69600)/69600)=-0.16
    matthiaskrgr authored Jan 25, 2023
    Configuration menu
    Copy the full SHA
    0168598 View commit details
    Browse the repository at this point in the history