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 8 pull requests #100881

Merged
merged 25 commits into from
Aug 22, 2022
Merged

Rollup of 8 pull requests #100881

merged 25 commits into from
Aug 22, 2022

Commits on Jun 17, 2022

  1. expand inner or pattern

    ouz-a committed Jun 17, 2022
    Configuration menu
    Copy the full SHA
    90abfe9 View commit details
    Browse the repository at this point in the history

Commits on Jun 24, 2022

  1. use true recursion

    ouz-a committed Jun 24, 2022
    Configuration menu
    Copy the full SHA
    661d488 View commit details
    Browse the repository at this point in the history

Commits on Jul 30, 2022

  1. Fix Ipv6Addr::is_global to check for global reachability rather tha…

    …n global scope
    CDirkx authored and chotchki committed Jul 30, 2022
    Configuration menu
    Copy the full SHA
    f7d8805 View commit details
    Browse the repository at this point in the history
  2. Change Ipv4Addr::is_global to be in line with Ipv6Addr::is_global

    Rebasing off master
    CDirkx authored and chotchki committed Jul 30, 2022
    Configuration menu
    Copy the full SHA
    f299064 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3365b06 View commit details
    Browse the repository at this point in the history
  4. Original branch seems to have missed excluding the benchmark range fr…

    …om the globally reachable change
    chotchki committed Jul 30, 2022
    Configuration menu
    Copy the full SHA
    f659088 View commit details
    Browse the repository at this point in the history

Commits on Aug 9, 2022

  1. Guarantee try_reserve preserves the contents on error

    Update doc comments to make the guarantee explicit. However, some
    implementations does not have the statement though.
    
    * `HashMap`, `HashSet`: require guarantees on hashbrown side.
    * `PathBuf`: simply redirecting to `OsString`.
    
    Fixes rust-lang#99606.
    lo48576 committed Aug 9, 2022
    Configuration menu
    Copy the full SHA
    2bb7e1e View commit details
    Browse the repository at this point in the history

Commits on Aug 12, 2022

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

Commits on Aug 17, 2022

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

Commits on Aug 20, 2022

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

Commits on Aug 21, 2022

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

Commits on Aug 22, 2022

  1. Add guarantee that Vec::default() does not alloc

    Currently `Vec::new()` is guaranteed to not allocate until elements are
    pushed onto the `Vec`, but such a guarantee is missing for `Vec`'s
    implementation of `Default::default`. This adds such a guarantee for
    `Vec::default()` to the API reference.
    JanBeh committed Aug 22, 2022
    Configuration menu
    Copy the full SHA
    0227b71 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d744f36 View commit details
    Browse the repository at this point in the history
  3. remove stray comment

    fee1-dead committed Aug 22, 2022
    Configuration menu
    Copy the full SHA
    460daf3 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    f019b6c View commit details
    Browse the repository at this point in the history
  5. fix tidy

    fee1-dead committed Aug 22, 2022
    Configuration menu
    Copy the full SHA
    f1db3be View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#98200 - ouz-a:issue-98177, r=oli-obk

    Expand potential inner `Or` pattern for THIR
    
    Code assumed there wouldn't be a deeper `Or` pattern inside expanded `PatStack` this fixes it by looking for the `Or` pattern inside expanded `PatStack`.
    
    A more ideal solution would be recursively doing this but I haven't found a good way to do that.
    _fixes #97898_
    Dylan-DPC committed Aug 22, 2022
    Configuration menu
    Copy the full SHA
    56ba13a View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#99770 - Nilstrieb:mir-pass-unit-test, r=oli…

    …-obk
    
    Make some const prop mir-opt tests `unit-test`s
    
    Most of these have no or only tiny diffs beyond line numbers being changed (would it make sense to not have line numbers in mir-opt tests?). Some things changed a bit, but I think it should all be fine, not sure though.
    Dylan-DPC committed Aug 22, 2022
    Configuration menu
    Copy the full SHA
    e77c208 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#99957 - chotchki:ip-globally-reachable_reba…

    …se, r=Mark-Simulacrum
    
    Rework Ipv6Addr::is_global to check for global reachability rather than global scope - rebase
    
    Rebasing of pull request rust-lang#86634 off of master to try and get the feature "ip" stabilized.
    
    I also found a test failure in the rebase that is_global was considering the benchmark space to be globally reachable.
    
    This is related to my other rebasing pull request rust-lang#99947
    Dylan-DPC committed Aug 22, 2022
    Configuration menu
    Copy the full SHA
    c1a5ec7 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#100331 - lo48576:try-reserve-preserve-on-fa…

    …ilure, r=thomcc
    
    Guarantee `try_reserve` preserves the contents on error
    
    Update doc comments to make the guarantee explicit. However, some
    implementations does not have the statement though.
    
    * `HashMap`, `HashSet`: require guarantees on hashbrown side.
    * `PathBuf`: simply redirecting to `OsString`.
    
    Fixes rust-lang#99606.
    Dylan-DPC committed Aug 22, 2022
    Configuration menu
    Copy the full SHA
    382ba73 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#100336 - fee1-dead-contrib:fix-wf-const-tra…

    …it, r=oli-obk
    
    Fix two const_trait_impl issues
    
    r? ``@oli-obk``
    
    Fixes rust-lang#100222.
    Fixes rust-lang#100543.
    Dylan-DPC committed Aug 22, 2022
    Configuration menu
    Copy the full SHA
    14c8a68 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#100713 - Xiretza:parser-expr-session-diagno…

    …stics, r=estebank
    
    Convert diagnostics in parser/expr to SessionDiagnostic
    
    This migrates all the easy cases in `rustc_parse::parser::expr` to `SessionDiagnostic`s, I've left things such as `multipart_suggestion`s out for now in the hopes of a derive API being developed soon.
    Dylan-DPC committed Aug 22, 2022
    Configuration menu
    Copy the full SHA
    75b7089 View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#100820 - WaffleLapkin:use_ptr_is_aligned_me…

    …thods, r=scottmcm
    
    Use pointer `is_aligned*` methods
    
    This PR replaces some manual alignment checks with calls to `pointer::{is_aligned, is_aligned_to}` and removes a useless pointer cast.
    
    r? `@scottmcm`
    
    _split off from #100746_
    Dylan-DPC committed Aug 22, 2022
    Configuration menu
    Copy the full SHA
    58d2373 View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#100872 - JanBeh:PR_vec_default_alloc_doc, r…

    …=fee1-dead
    
    Add guarantee that Vec::default() does not alloc
    
    Currently `Vec::new()` is guaranteed to not allocate until elements are pushed onto the `Vec`, but such a guarantee is missing for `Vec`'s implementation of `Default::default`.
    
    This adds such a guarantee for `Vec::default()` to the API reference.
    
    See also [this discussion on URLO](https://users.rust-lang.org/t/guarantee-that-vec-default-does-not-allocate/79903).
    Dylan-DPC committed Aug 22, 2022
    Configuration menu
    Copy the full SHA
    4ed8fa4 View commit details
    Browse the repository at this point in the history