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 10 pull requests #77222

Closed
wants to merge 39 commits into from
Closed

Commits on Aug 12, 2020

  1. Explicitly document the size guarantees that Option makes.

    Triggered by a discussion on wg-unsafe-code-guidelines about which layouts of
    `Option<T>` one can guarantee are optimised to a single pointer.
    ltratt committed Aug 12, 2020
    Configuration menu
    Copy the full SHA
    73ada2d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f5118a5 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    83f47aa View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    f3d7196 View commit details
    Browse the repository at this point in the history
  5. Change notation.

    Co-authored-by: Ralf Jung <[email protected]>
    ltratt and RalfJung authored Aug 12, 2020
    Configuration menu
    Copy the full SHA
    8cb8955 View commit details
    Browse the repository at this point in the history
  6. Add Rust function pointers.

    Co-authored-by: Ralf Jung <[email protected]>
    ltratt and RalfJung authored Aug 12, 2020
    Configuration menu
    Copy the full SHA
    55802e3 View commit details
    Browse the repository at this point in the history

Commits on Aug 17, 2020

  1. Rename the types for clarity.

    ltratt committed Aug 17, 2020
    Configuration menu
    Copy the full SHA
    68209c3 View commit details
    Browse the repository at this point in the history
  2. Grammar tweak.

    ltratt committed Aug 17, 2020
    Configuration menu
    Copy the full SHA
    9bac577 View commit details
    Browse the repository at this point in the history

Commits on Sep 8, 2020

  1. Point at named argument not found when using format_args_capture in…

    …stead of whole format string
    estebank committed Sep 8, 2020
    Configuration menu
    Copy the full SHA
    2ac89ff View commit details
    Browse the repository at this point in the history

Commits on Sep 23, 2020

  1. merge need_type_info_err(_const)

    lcnr committed Sep 23, 2020
    Configuration menu
    Copy the full SHA
    45d92b4 View commit details
    Browse the repository at this point in the history
  2. unused path

    lcnr committed Sep 23, 2020
    Configuration menu
    Copy the full SHA
    0abb1ab View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3dbfdb0 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    0e84b61 View commit details
    Browse the repository at this point in the history

Commits on Sep 24, 2020

  1. Remove TrustedLen requirement from BuilderMethods::switch

    The main use case of TrustedLen is allowing APIs to specialize on it,
    but no use of it uses that specialization. Instead, only the .len()
    function provided by ExactSizeIterator is used, which is already
    required to be accurate.
    
    Thus, the TrustedLen requirement on BuilderMethods::switch is redundant.
    est31 committed Sep 24, 2020
    Configuration menu
    Copy the full SHA
    12ada5c View commit details
    Browse the repository at this point in the history
  2. update Miri

    RalfJung committed Sep 24, 2020
    Configuration menu
    Copy the full SHA
    47843f5 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e5430e5 View commit details
    Browse the repository at this point in the history
  4. nit

    lcnr committed Sep 24, 2020
    Configuration menu
    Copy the full SHA
    ff7009a View commit details
    Browse the repository at this point in the history

Commits on Sep 25, 2020

  1. Configuration menu
    Copy the full SHA
    0d2521a View commit details
    Browse the repository at this point in the history
  2. Put floating point arithmetic behind its own feature gate

    This refactors handling of `Rvalue::{Unary,Binary}Op` in the
    const-checker. Now we `span_bug` if there's an unexpected type in a
    primitive operation. This also allows unary negation on
    `char` values through the const-checker because it makes the code a bit
    cleaner. `char` does not actually support these operations, and if it
    did, we could evaluate them at compile-time.
    ecstatic-morse committed Sep 25, 2020
    Configuration menu
    Copy the full SHA
    2049052 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6a52c09 View commit details
    Browse the repository at this point in the history
  4. Bless tests

    ecstatic-morse committed Sep 25, 2020
    Configuration menu
    Copy the full SHA
    b428f28 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    4cac90c View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    659028f View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    187162e View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    900daba View commit details
    Browse the repository at this point in the history
  9. Rename whence to span

    It's called `span` elsewhere in the compiler and `span` is also less
    surprising. `whence` is whimsical, but not super clear :)
    camelid committed Sep 25, 2020
    Configuration menu
    Copy the full SHA
    aa6a2f4 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    12187b7 View commit details
    Browse the repository at this point in the history

Commits on Sep 26, 2020

  1. rename functions

    lcnr committed Sep 26, 2020
    Configuration menu
    Copy the full SHA
    32195ac View commit details
    Browse the repository at this point in the history
  2. unused into

    lcnr committed Sep 26, 2020
    Configuration menu
    Copy the full SHA
    9a607c0 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#75454 - ltratt:option_optimisation_guarante…

    …es, r=dtolnay
    
    Explicitly document the size guarantees that Option makes.
    
    Triggered by a discussion on wg-unsafe-code-guidelines about which layouts of `Option<T>` one can guarantee are optimised to a single pointer.
    
    CC @RalfJung
    RalfJung authored Sep 26, 2020
    Configuration menu
    Copy the full SHA
    2b53e01 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#76485 - estebank:format_arg_capture_spans, …

    …r=davidtwco
    
    Point at named argument not found when using `format_args_capture` instead of whole format string
    RalfJung authored Sep 26, 2020
    Configuration menu
    Copy the full SHA
    bc9c67f View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#77076 - GuillaumeGomez:missing-code-example…

    …s-slice-iter, r=Dylan-DPC
    
    Add missing code examples on slice iter types
    
    r? @Dylan-DPC
    RalfJung authored Sep 26, 2020
    Configuration menu
    Copy the full SHA
    6e54446 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#77093 - lcnr:const-generics-infer-warning, …

    …r=varkor
    
    merge `need_type_info_err(_const)`
    
    I hoped that this would automatically solve rust-lang#76737 but it doesn't quite seem like it
    
    fixes rust-lang#77092
    
    r? @varkor
    RalfJung authored Sep 26, 2020
    Configuration menu
    Copy the full SHA
    04c4696 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#77122 - ecstatic-morse:const-fn-arithmetic,…

    … r=RalfJung,oli-obk
    
    Add `#![feature(const_fn_floating_point_arithmetic)]`
    
    cc rust-lang#76618
    
    This is a template for splitting up `const_fn` into granular feature gates. I think this will make it easier, both for us and for users, to track stabilization of each individual feature. We don't *have* to do this, however. We could also keep stabilizing things out from under `const_fn`.
    
    cc @rust-lang/wg-const-eval
    r? @oli-obk
    RalfJung authored Sep 26, 2020
    Configuration menu
    Copy the full SHA
    273317d View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#77161 - est31:swich_len_already_trusted, r=…

    …petrochenkov
    
    Remove TrustedLen requirement from BuilderMethods::switch
    
    The main use case of TrustedLen is allowing APIs to specialize on it,
    but no use of it uses that specialization. Instead, only the .len()
    function provided by ExactSizeIterator is used, which is already
    required to be accurate.
    
    Thus, the TrustedLen requirement on BuilderMethods::switch is redundant.
    RalfJung authored Sep 26, 2020
    Configuration menu
    Copy the full SHA
    2007588 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    fbbcd57 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#77204 - LingMan:patch-3, r=jonas-schievink

    Remove stray word from `ClosureKind::extends` docs
    RalfJung authored Sep 26, 2020
    Configuration menu
    Copy the full SHA
    41a3106 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#77207 - camelid:whence-to-span, r=jyn514

    Rename `whence` to `span`
    
    It's called `span` elsewhere in the compiler and `span` is also less
    surprising. `whence` is whimsical, but not super clear :)
    
    See [this Discord conversation](https://discord.com/channels/442252698964721669/459149231702278154/758731658689511444) for more.
    
    r? @jyn514
    RalfJung authored Sep 26, 2020
    Configuration menu
    Copy the full SHA
    6b62525 View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#77211 - est31:remove_unused_allow, r=oli-obk

    Remove unused #[allow(...)] statements from compiler/
    RalfJung authored Sep 26, 2020
    Configuration menu
    Copy the full SHA
    644b592 View commit details
    Browse the repository at this point in the history