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

handle elision in async fn correctly #63499

Merged

Commits on Aug 8, 2019

  1. Configuration menu
    Copy the full SHA
    43a2cbd View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a694782 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d9294a2 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    f395787 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    5ce8f7a View commit details
    Browse the repository at this point in the history

Commits on Aug 12, 2019

  1. revamp how we handle elision in async fn

    We now always make fresh lifetimne parameters for all elided
    lifetimes, whether they are in the inputs or outputs. But then
    we generate `'_` in the case of elided lifetimes from the outputs.
    
    Example:
    
    ```rust
    async fn foo<'a>(x: &'a u32) -> &u32 { .. }
    ```
    
    becomes
    
    ```rust
    type Foo<'a, 'b> = impl Future<Output = &'b u32>;
    fn foo<'a>(x: &'a u32) -> Foo<'a, '_>
    ```
    nikomatsakis committed Aug 12, 2019
    Configuration menu
    Copy the full SHA
    03e7b96 View commit details
    Browse the repository at this point in the history
  2. revamp comment

    nikomatsakis committed Aug 12, 2019
    Configuration menu
    Copy the full SHA
    948739f View commit details
    Browse the repository at this point in the history
  3. fix README.md

    nikomatsakis committed Aug 12, 2019
    Configuration menu
    Copy the full SHA
    ad214fe View commit details
    Browse the repository at this point in the history

Commits on Aug 13, 2019

  1. bless tests

    nikomatsakis committed Aug 13, 2019
    Configuration menu
    Copy the full SHA
    d7c7c52 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    18d69c8 View commit details
    Browse the repository at this point in the history