1. 15 1月, 2021 4 次提交
    • I
      ...and update Cargo.lock again · 3ac464fb
      Igor Matuszewski 提交于
      3ac464fb
    • I
      c4735063
    • I
      Update RLS and Rustfmt · d72ea1b1
      Igor Matuszewski 提交于
      d72ea1b1
    • B
      Auto merge of #79689 - Vooblin:patch1, r=tmandry · 4275ef6c
      bors 提交于
      Update tests of "unused_lifetimes" lint for async functions and corresponding source code
      
      Before this PR the following code would cause an error:
      ```
      #![deny(unused_lifetimes)]
      async fn f<'a>(_: &'a i32) {}
      fn main() {}
      ```
      It was happening because of the desugaring of return type in async functions. As a result of the desugaring, the return type contains all lifetimes involved in the function signature. And these lifetimes were interpreted separately from the same in the function scope => so they are unused.
      
      Now, all lifetimes from the return type are interpreted as used. It is also not perfect, but at least this lint doesn't cause wrong errors now.
      
      This PR connected to issues #78522, #77217
      4275ef6c
  2. 14 1月, 2021 12 次提交
  3. 13 1月, 2021 24 次提交