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

Merged
merged 13 commits into from
Jun 3, 2022
Merged

Rollup of 5 pull requests #97679

merged 13 commits into from
Jun 3, 2022

Commits on May 24, 2022

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

Commits on Jun 2, 2022

  1. Configuration menu
    Copy the full SHA
    fafccdc View commit details
    Browse the repository at this point in the history
  2. comment

    Co-authored-by: Oli Scherer <github35764891676564198441@oli-obk.de>
    RalfJung and oli-obk committed Jun 2, 2022
    Configuration menu
    Copy the full SHA
    d5a590f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7676f07 View commit details
    Browse the repository at this point in the history
  4. On E0204 suggest missing type param bounds

    ```
    error[E0204]: the trait `Copy` may not be implemented for this type
      --> f42.rs:9:17
       |
    9  | #[derive(Debug, Copy, Clone)]
       |                 ^^^^
    10 | pub struct AABB<K>{
    11 |     pub loc: Vector2<K>,
       |     ------------------- this field does not implement `Copy`
    12 |     pub size: Vector2<K>
       |     -------------------- this field does not implement `Copy`
       |
    note: the `Copy` impl for `Vector2<K>` requires that `K: Debug`
      --> f42.rs:11:5
       |
    11 |     pub loc: Vector2<K>,
       |     ^^^^^^^^^^^^^^^^^^^
    note: the `Copy` impl for `Vector2<K>` requires that `K: Debug`
      --> f42.rs:12:5
       |
    12 |     pub size: Vector2<K>
       |     ^^^^^^^^^^^^^^^^^^^^
       = note: this error originates in the derive macro `Copy` (in Nightly builds, run with -Z macro-backtrace for more info)
    help: consider restricting type parameter `K`
       |
    10 | pub struct AABB<K: Debug>{
       |                  +++++++
    ```
    
    Fix rust-lang#89137.
    estebank committed Jun 2, 2022
    Configuration menu
    Copy the full SHA
    8567b68 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    7dd3861 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    dadf3bd View commit details
    Browse the repository at this point in the history
  7. Tweak output

    estebank committed Jun 2, 2022
    Configuration menu
    Copy the full SHA
    f9aa2e0 View commit details
    Browse the repository at this point in the history

Commits on Jun 3, 2022

  1. Rollup merge of rust-lang#97366 - WaffleLapkin:stabilize_array_slice_…

    …from_ref, r=dtolnay
    
    Stabilize `{slice,array}::from_ref`
    
    This PR stabilizes the following APIs as `const` functions in Rust `1.63`:
    ```rust
    // core::array
    pub const fn from_ref<T>(s: &T) -> &[T; 1];
    
    // core::slice
    pub const fn from_ref<T>(s: &T) -> &[T];
    ```
    
    Note that the `mut` versions are not stabilized as unique references (`&mut _`) are [unstable in const context].
    
    FCP: rust-lang#90206 (comment)
    
    r? rust-lang/libs-api `@rustbot` label +T-libs-api -T-libs
    
    [unstable in const context]: rust-lang#57349
    Dylan-DPC authored Jun 3, 2022
    Configuration menu
    Copy the full SHA
    025cf96 View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#97653 - RalfJung:int-to-ptr, r=oli-obk

    add cast kind of from_exposed_addr (int-to-ptr casts)
    
    This is basically the dual to rust-lang#97582, for int2ptr casts.
    
    Cc `@tmiasko` rust-lang#97649
    Dylan-DPC authored Jun 3, 2022
    Configuration menu
    Copy the full SHA
    f116dd7 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#97663 - RalfJung:keine-halben-sachen, r=oli…

    …-obk
    
    take back half-baked noaliasing check in Assignment
    
    Doing an aliasing check in `copy_op` does not make a ton of sense. We have to eventually do something in the `Assignment` statement handling instead.
    Dylan-DPC authored Jun 3, 2022
    Configuration menu
    Copy the full SHA
    a6d7939 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#97664 - estebank:suggest-bound-derive-copy,…

    … r=compiler-errors
    
    On E0204 suggest missing type param bounds
    
    ```
    error[E0204]: the trait `Copy` may not be implemented for this type
      --> f42.rs:9:17
       |
    9  | #[derive(Debug, Copy, Clone)]
       |                 ^^^^
    10 | pub struct AABB<K>{
    11 |     pub loc: Vector2<K>,
       |     ------------------- this field does not implement `Copy`
    12 |     pub size: Vector2<K>
       |     -------------------- this field does not implement `Copy`
       |
    note: the `Copy` impl for `Vector2<K>` requires that `K: Debug`
      --> f42.rs:11:5
       |
    11 |     pub loc: Vector2<K>,
       |     ^^^^^^^^^^^^^^^^^^^
    note: the `Copy` impl for `Vector2<K>` requires that `K: Debug`
      --> f42.rs:12:5
       |
    12 |     pub size: Vector2<K>
       |     ^^^^^^^^^^^^^^^^^^^^
       = note: this error originates in the derive macro `Copy` (in Nightly builds, run with -Z macro-backtrace for more info)
    help: consider restricting type parameter `K`
       |
    10 | pub struct AABB<K: Debug>{
       |                  +++++++
    ```
    
    Fix rust-lang#89137.
    Dylan-DPC authored Jun 3, 2022
    Configuration menu
    Copy the full SHA
    b71ddd6 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    d6f35b3 View commit details
    Browse the repository at this point in the history