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

typestrong const integers #30587

Merged
merged 13 commits into from
Mar 14, 2016
Merged

typestrong const integers #30587

merged 13 commits into from
Mar 14, 2016

Commits on Mar 10, 2016

  1. typestrong constant integers

    oli-obk committed Mar 10, 2016
    Configuration menu
    Copy the full SHA
    7bde56e View commit details
    Browse the repository at this point in the history
  2. const eval failures aren't fatal, simply return a dummy instead

    Oliver 'ker' Schneider authored and oli-obk committed Mar 10, 2016
    Configuration menu
    Copy the full SHA
    0d13231 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    41f11d9 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6ee6003 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    54b15c7 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    bba1596 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    a48bd17 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    6992280 View commit details
    Browse the repository at this point in the history
  9. fix rustdoc

    oli-obk committed Mar 10, 2016
    Configuration menu
    Copy the full SHA
    7003ed3 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    d4d6260 View commit details
    Browse the repository at this point in the history
  11. break enum variant discriminant inference in case of 32-bit

    `assert_eq!(-9223372036854775808isize as u64, 0x8000000000000000);`
    
    fails on 32 bit and succeeds on 64 bit. These commits don't change that behavior.
    
    The following worked before my changes, because the discriminant was
    always processed as `u64`.
    Now it fails, because the discriminant of `Bu64` is now `0` instead of `-9223372036854775808`. This is more in line with the above assertion's code, since
    `-9223372036854775808isize as u64` on 32 bit yielded `0`.
    
    ```rust
    enum Eu64 {
        Au64 = 0,
        Bu64 = 0x8000_0000_0000_0000
    }
    ```
    oli-obk committed Mar 10, 2016
    Configuration menu
    Copy the full SHA
    fcee002 View commit details
    Browse the repository at this point in the history

Commits on Mar 11, 2016

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

Commits on Mar 14, 2016

  1. rustbuild

    oli-obk committed Mar 14, 2016
    Configuration menu
    Copy the full SHA
    f665c39 View commit details
    Browse the repository at this point in the history