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

Closed
wants to merge 34 commits into from
Closed

Commits on Oct 12, 2022

  1. remove HRTB from [T]::is_sorted_by{,_key}

    Lukas Markeffsky committed Oct 12, 2022
    Configuration menu
    Copy the full SHA
    a02ec4c View commit details
    Browse the repository at this point in the history
  2. add regression test

    Lukas Markeffsky committed Oct 12, 2022
    Configuration menu
    Copy the full SHA
    f3d7b39 View commit details
    Browse the repository at this point in the history

Commits on Oct 24, 2022

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

Commits on Oct 28, 2022

  1. Configuration menu
    Copy the full SHA
    6c54745 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d3b5192 View commit details
    Browse the repository at this point in the history

Commits on Nov 12, 2022

  1. Configuration menu
    Copy the full SHA
    422b935 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    18a1de2 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    1ebe279 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    9f6c6bd View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    4c24176 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    ecaf5f7 View commit details
    Browse the repository at this point in the history

Commits on Nov 13, 2022

  1. constify remaining layout methods

    Remove bad impl for Eq
    
    Update Cargo.lock and fix last ValidAlign
    CraftSpider committed Nov 13, 2022
    Configuration menu
    Copy the full SHA
    1c56a53 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c207dc9 View commit details
    Browse the repository at this point in the history
  3. Update with derive_const

    CraftSpider committed Nov 13, 2022
    Configuration menu
    Copy the full SHA
    3860cb1 View commit details
    Browse the repository at this point in the history
  4. Add derive_const feature

    CraftSpider committed Nov 13, 2022
    Configuration menu
    Copy the full SHA
    21c61e1 View commit details
    Browse the repository at this point in the history
  5. Fix issue number

    CraftSpider committed Nov 13, 2022
    Configuration menu
    Copy the full SHA
    c8e5ac4 View commit details
    Browse the repository at this point in the history
  6. Use ? instead of match

    CraftSpider committed Nov 13, 2022
    Configuration menu
    Copy the full SHA
    bbcdebd View commit details
    Browse the repository at this point in the history

Commits on Nov 16, 2022

  1. Configuration menu
    Copy the full SHA
    d75c76d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9d4b1f9 View commit details
    Browse the repository at this point in the history

Commits on Nov 17, 2022

  1. Edit docs for rustc_errors::Handler::stash_diagnostic

    Clarify that the diagnostic can be retrieved with `steal_diagnostic`.
    pierwill committed Nov 17, 2022
    Configuration menu
    Copy the full SHA
    19b63bc View commit details
    Browse the repository at this point in the history
  2. rustdoc: use code-header class to format enum variants

    The font size and weights should be exactly the same after this commit,
    but the spacing is changed to be exactly the same as methods.
    notriddle committed Nov 17, 2022
    Configuration menu
    Copy the full SHA
    4525eb1 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    616f34e View commit details
    Browse the repository at this point in the history

Commits on Nov 18, 2022

  1. Configuration menu
    Copy the full SHA
    da3c539 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b3da04a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    39e076a View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#102207 - CraftSpider:const-layout, r=scottmcm

    Constify remaining `Layout` methods
    
    Makes the methods on `Layout` that aren't yet unstably const, under the same feature and issue, rust-lang#67521. Most of them required no changes, only non-trivial change is probably constifying `ValidAlignment` which may affect rust-lang#102072
    Manishearth authored Nov 18, 2022
    Configuration menu
    Copy the full SHA
    3c19543 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#102977 - lukas-code:is-sorted-hrtb, r=m-ou-se

    remove HRTB from `[T]::is_sorted_by{,_key}`
    
    Changes the signature of `[T]::is_sorted_by{,_key}` to match `[T]::binary_search_by{,_key}` and make code like rust-lang#53485 (comment) compile.
    
    Tracking issue: rust-lang#53485
    
    ~~Do we need an ACP for something like this?~~ Edit: Filed ACP here: rust-lang/libs-team#121
    Manishearth authored Nov 18, 2022
    Configuration menu
    Copy the full SHA
    c4fb7f9 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#103456 - scottmcm:fix-unchecked-shifts, r=s…

    …cottmcm
    
    `unchecked_{shl|shr}` should use `u32` as the RHS
    
    The other shift methods, such as https://doc.rust-lang.org/nightly/std/primitive.u64.html#method.checked_shr and https://doc.rust-lang.org/nightly/std/primitive.i16.html#method.wrapping_shl, use `u32` for the shift amount.  That's consistent with other things, like `count_ones`, which also always use `u32` for a bit count, regardless of the size of the type.
    
    This PR changes `unchecked_shl` and `unchecked_shr` to also use `u32` for the shift amount (rather than Self).
    
    cc rust-lang#85122, the `unchecked_math` tracking issue
    Manishearth authored Nov 18, 2022
    Configuration menu
    Copy the full SHA
    1bb8339 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#103701 - WaffleLapkin:__points-at-implement…

    …ation__--this-can-be-simplified, r=scottmcm
    
    Simplify some pointer method implementations
    
    - Make `pointer::with_metadata_of` const (+simplify implementation) (cc rust-lang#75091)
    - Simplify implementation of various pointer methods
    
    r? ``@scottmcm``
    
    ----
    
    `from_raw_parts::<T>(this, metadata(self))` was annoying me for a while and I've finally figured out how it should _actually_ be done.
    Manishearth authored Nov 18, 2022
    Configuration menu
    Copy the full SHA
    774f17f View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#104047 - crlf0710:icu_based_list_formatting…

    …, r=davidtwco
    
    Diagnostics `icu4x` based list formatting.
    
    This adds a new kind of `DiagnosticArg` and add the ability to convert it to a `FluentValue::Custom`. When emitting fluent output, it makes use of `ListFormatter` from `icu4x` project to convert it to localized version of list following the fluent locale, as a kind of eager translation.
    
    Tested locally with locales like `en`, `ja`, etc, and they work fine. <del>Though neither `zh-CN` nor `zh-Hans` works correctly, it seems they fallback to `und` locale somehow, emitting only comma-based list. I believe this is an internal issue of `icu4x` itself.</del>(Works fine after rust-lang#104047 (comment))
    
    Would love to hear what others think.
    
    r? `@davidtwco`
    cc `@Manishearth`
    Manishearth authored Nov 18, 2022
    Configuration menu
    Copy the full SHA
    2709c2d View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#104338 - compiler-errors:pointer-sized, r=e…

    …holk
    
    Enforce that `dyn*` coercions are actually pointer-sized
    
    Implement a perma-unstable, rudimentary `PointerSized` trait to enforce `dyn*` casts are `usize`-sized for now, at least to prevent ICEs and weird codegen issues from cropping up after monomorphization since currently we enforce *nothing*.
    
    This probably can/should be removed in favor of a more sophisticated trait for handling `dyn*` conversions when we decide on one, but I just want to get something up for discussion and experimentation for now.
    
    r? ``@eholk`` cc ``@tmandry`` (though feel free to claim/reassign)
    
    Fixes rust-lang#102141
    Fixes rust-lang#102173
    Manishearth authored Nov 18, 2022
    Configuration menu
    Copy the full SHA
    171b519 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#104498 - pierwill:stash-diag-docs, r=compil…

    …er-errors
    
    Edit docs for `rustc_errors::Handler::stash_diagnostic`
    
    Clarify that the diagnostic can be retrieved with `steal_diagnostic`.
    
    r? ``@compiler-errors``
    Manishearth authored Nov 18, 2022
    Configuration menu
    Copy the full SHA
    6a8391a View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#104556 - notriddle:notriddle/variant, r=Gui…

    …llaumeGomez
    
    rustdoc: use `code-header` class to format enum variants
    
    The font size and weights should be exactly the same after this PR, but the spacing is changed to be the same as methods.
    
    Preview: http://notriddle.com/notriddle-rustdoc-demos/variant/test_dingus_enum/enum.TestEnum.html
    Manishearth authored Nov 18, 2022
    Configuration menu
    Copy the full SHA
    75bb4f9 View commit details
    Browse the repository at this point in the history
  12. coalesce lockfile changes

    Manishearth committed Nov 18, 2022
    Configuration menu
    Copy the full SHA
    60b2f24 View commit details
    Browse the repository at this point in the history