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 12 pull requests #77224

Merged
merged 43 commits into from
Sep 26, 2020
Merged

Rollup of 12 pull requests #77224

merged 43 commits into from
Sep 26, 2020

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 committed 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 committed 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 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
  5. Update mdBook

    0.4.2 -> 0.4.3
    camelid committed Sep 23, 2020
    Configuration menu
    Copy the full SHA
    945a732 View commit details
    Browse the repository at this point in the history

Commits on Sep 24, 2020

  1. Add x.py setup

    - Suggest `x.py setup` if config.toml doesn't exist yet (twice, once
    before and once after the build)
    - Prompt for a profile if not given on the command line
    - Print the configuration file that will be used
    - Print helpful starting commands after setup
    - Link to the dev-guide after finishing
    - Note that distro maintainers will see the changelog warning
    jyn514 committed Sep 24, 2020
    Configuration menu
    Copy the full SHA
    9baa601 View commit details
    Browse the repository at this point in the history
  2. 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
  3. 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
  4. Configuration menu
    Copy the full SHA
    e5430e5 View commit details
    Browse the repository at this point in the history
  5. 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. Configuration menu
    Copy the full SHA
    21ee171 View commit details
    Browse the repository at this point in the history
  4. 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 committed Sep 26, 2020
    Configuration menu
    Copy the full SHA
    1e62382 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#76631 - jyn514:x.py-setup, r=Mark-Simulacrum

    Add `x.py setup`
    
    Closes rust-lang#76503.
    
    - Suggest `x.py setup` if config.toml doesn't exist yet
    - Prompt for a profile if not given on the command line
    - Print the configuration that will be used
    - Print helpful starting commands after setup
    - Link to the dev-guide after finishing
    RalfJung committed Sep 26, 2020
    Configuration menu
    Copy the full SHA
    c39598a View commit details
    Browse the repository at this point in the history
  6. 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 committed Sep 26, 2020
    Configuration menu
    Copy the full SHA
    31fd0ad View commit details
    Browse the repository at this point in the history
  7. 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 committed Sep 26, 2020
    Configuration menu
    Copy the full SHA
    ac8169d View commit details
    Browse the repository at this point in the history
  8. 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 committed Sep 26, 2020
    Configuration menu
    Copy the full SHA
    3b544e7 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#77127 - camelid:update-mdbook, r=Dylan-DPC

    Update mdBook
    
    0.4.2 -> 0.4.3
    
    Also updated version requirement in `Cargo.toml` from 0.4.0 to 0.4.3.
    RalfJung committed Sep 26, 2020
    Configuration menu
    Copy the full SHA
    7ff5b44 View commit details
    Browse the repository at this point in the history
  10. 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 committed Sep 26, 2020
    Configuration menu
    Copy the full SHA
    7c47b1e View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    f614ae4 View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#77181 - GuillaumeGomez:add-pointer-alias, r…

    …=jyn514,pickfire
    
    Add doc alias for pointer primitive
    RalfJung committed Sep 26, 2020
    Configuration menu
    Copy the full SHA
    0a19836 View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#77204 - LingMan:patch-3, r=jonas-schievink

    Remove stray word from `ClosureKind::extends` docs
    RalfJung committed Sep 26, 2020
    Configuration menu
    Copy the full SHA
    67f8c59 View commit details
    Browse the repository at this point in the history
  14. 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 committed Sep 26, 2020
    Configuration menu
    Copy the full SHA
    259e947 View commit details
    Browse the repository at this point in the history
  15. Rollup merge of rust-lang#77211 - est31:remove_unused_allow, r=oli-obk

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