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 5 pull requests #70404

Merged
merged 31 commits into from
Mar 25, 2020
Merged

Rollup of 5 pull requests #70404

merged 31 commits into from
Mar 25, 2020

Commits on Mar 23, 2020

  1. add missing visit_consts

    lcnr committed Mar 23, 2020
    Configuration menu
    Copy the full SHA
    513ea64 View commit details
    Browse the repository at this point in the history
  2. add missing const super folds

    lcnr committed Mar 23, 2020
    Configuration menu
    Copy the full SHA
    bda976d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d7ecc8c View commit details
    Browse the repository at this point in the history

Commits on Mar 24, 2020

  1. Configuration menu
    Copy the full SHA
    03bb3bd View commit details
    Browse the repository at this point in the history
  2. Refactor changes

    bishtpawan committed Mar 24, 2020
    Configuration menu
    Copy the full SHA
    cd9921e View commit details
    Browse the repository at this point in the history
  3. Update tools_lints

    bishtpawan committed Mar 24, 2020
    Configuration menu
    Copy the full SHA
    10226da View commit details
    Browse the repository at this point in the history
  4. improve normalize cycle error

    lcnr committed Mar 24, 2020
    Configuration menu
    Copy the full SHA
    6c4d5d9 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    1509160 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    b31707e View commit details
    Browse the repository at this point in the history
  7. update mir opt test

    lcnr committed Mar 24, 2020
    Configuration menu
    Copy the full SHA
    11763d4 View commit details
    Browse the repository at this point in the history
  8. Implement Fuse with Option

    The former `done` flag was roughly similar to an `Option` tag, but left
    the possibity of misuse. By using a real `Option`, we can set `None`
    when the iterator is exhausted, removing any way to call it again. We
    also allow niche layout this way, so the `Fuse` may be smaller.
    
    The `FusedIterator` specialization does want to ignore the possibility
    of exhaustion though, so it uses `unsafe { intrinsics::unreachable() }`
    to optimize that branch away. The entire `Fuse` implementation is now
    isolated in its own module to contain that unsafety.
    cuviper committed Mar 24, 2020
    Configuration menu
    Copy the full SHA
    212e6ce View commit details
    Browse the repository at this point in the history

Commits on Mar 25, 2020

  1. fix type name typo in doc comments

    InterpCtx => InterpCx 
    (rustc_mir::interpret::InterpCx)
    JOE1994 committed Mar 25, 2020
    Configuration menu
    Copy the full SHA
    bedc358 View commit details
    Browse the repository at this point in the history
  2. update tool_lints

    bishtpawan committed Mar 25, 2020
    Configuration menu
    Copy the full SHA
    5c65568 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5be304b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    1ddbdc6 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    9de6008 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    cd15b65 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    d7e2650 View commit details
    Browse the repository at this point in the history
  8. remove unnecessary cast

    RalfJung committed Mar 25, 2020
    Configuration menu
    Copy the full SHA
    f16b491 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    0bc108a View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    afcb634 View commit details
    Browse the repository at this point in the history
  11. add helper method for ptr ops on Scalar; reduce unnecessary large ope…

    …rand of overflowing_signed_offset
    RalfJung committed Mar 25, 2020
    Configuration menu
    Copy the full SHA
    1d67ca0 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    b7db732 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    7400955 View commit details
    Browse the repository at this point in the history
  14. run test only on 64bit

    lcnr committed Mar 25, 2020
    Configuration menu
    Copy the full SHA
    f8e3da5 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    4f429c0 View commit details
    Browse the repository at this point in the history
  16. Rollup merge of rust-lang#70226 - RalfJung:checked, r=oli-obk

    use checked casts and arithmetic in Miri engine
    
    This is unfortunately pretty annoying because we have to cast back and forth between `u64` and `usize` more often that should be necessary, and that cast is considered fallible.
    
    For example, should [this](https://doc.rust-lang.org/nightly/nightly-rustc/rustc/mir/interpret/value/enum.ConstValue.html) really be `usize`?
    
    Also, `LayoutDetails` uses `usize` for field indices, but in Miri we use `u64` to be able to also handle array indexing. Maybe methods like `mplace_field` should be suitably generalized to accept both `u64` and `usize`?
    
    r? @oli-obk Cc @eddyb
    Dylan-DPC committed Mar 25, 2020
    Configuration menu
    Copy the full SHA
    97f0a9e View commit details
    Browse the repository at this point in the history
  17. Rollup merge of rust-lang#70319 - lcnr:issue63695, r=eddyb

    correctly normalize constants
    
    closes rust-lang#70317
    
    implements rust-lang#70125 (comment)
    
    r? eddyb cc @varkor
    Dylan-DPC committed Mar 25, 2020
    Configuration menu
    Copy the full SHA
    1154023 View commit details
    Browse the repository at this point in the history
  18. Rollup merge of rust-lang#70352 - bishtpawan:doc/61137-add-long-error…

    …-code-e0710, r=Dylan-DPC
    
    Add long error explanation for E0710
    
    Add long explanation for the E0710 error code
    Part of rust-lang#61137
    
    r? @GuillaumeGomez
    Dylan-DPC committed Mar 25, 2020
    Configuration menu
    Copy the full SHA
    3586ab6 View commit details
    Browse the repository at this point in the history
  19. Rollup merge of rust-lang#70366 - cuviper:option-fuse, r=dtolnay

    Implement Fuse with Option
    
    The former `done` flag was roughly similar to an `Option` tag, but left
    the possibity of misuse. By using a real `Option`, we can set `None`
    when the iterator is exhausted, removing any way to call it again. We
    also allow niche layout this way, so the `Fuse` may be smaller.
    
    The `FusedIterator` specialization does want to ignore the possibility
    of exhaustion though, so it uses `unsafe { intrinsics::unreachable() }`
    to optimize that branch away. The entire `Fuse` implementation is now
    isolated in its own module to contain that unsafety.
    
    r? @scottmcm
    Dylan-DPC committed Mar 25, 2020
    Configuration menu
    Copy the full SHA
    530c320 View commit details
    Browse the repository at this point in the history
  20. Rollup merge of rust-lang#70379 - JOE1994:patch-2, r=petrochenkov

    fix incorrect type name in doc comments
    
    Change : `InterpCtx` => `InterpCx`
    (`rustc_mir::interpret::InterpCx`)
    Dylan-DPC committed Mar 25, 2020
    Configuration menu
    Copy the full SHA
    9a9cb2d View commit details
    Browse the repository at this point in the history