1. 13 2月, 2022 2 次提交
    • B
      Auto merge of #91403 - cjgillot:inherit-async, r=oli-obk · 3cfa4def
      bors 提交于
      Inherit lifetimes for async fn instead of duplicating them.
      
      The current desugaring of `async fn foo<'a>(&usize) -> &u8` is equivalent to
      ```rust
      fn foo<'a, '0>(&'0 usize) -> foo<'static, 'static>::Opaque<'a, '0, '_>;
      type foo<'_a, '_0>::Opaque<'a, '0, '1> = impl Future<Output = &'1 u8>;
      ```
      following the RPIT model.
      
      Duplicating all the inherited lifetime parameters and setting the inherited version to `'static` makes lowering more complex and causes issues like #61949. This PR removes the duplication of inherited lifetimes to directly use
      ```rust
      fn foo<'a, '0>(&'0 usize) -> foo<'a, '0>::Opaque<'_>;
      type foo<'a, '0>::Opaque<'1> = impl Future<Output = &'1 u8>;
      ```
      following the TAIT model.
      
      Fixes https://github.com/rust-lang/rust/issues/61949
      3cfa4def
    • B
      Auto merge of #93939 - RalfJung:miri, r=RalfJung · 5d8767cb
      bors 提交于
      update miri
      
      to fix the libcore test suite
      r? `@ghost`
      5d8767cb
  2. 12 2月, 2022 38 次提交