1. 07 9月, 2021 1 次提交
  2. 22 8月, 2021 1 次提交
  3. 16 6月, 2021 1 次提交
  4. 07 6月, 2021 1 次提交
  5. 02 5月, 2021 4 次提交
  6. 03 4月, 2021 2 次提交
  7. 28 1月, 2021 1 次提交
  8. 15 1月, 2021 1 次提交
  9. 11 9月, 2020 1 次提交
    • A
      Note when a a move/borrow error is caused by a deref coercion · d18b4bb7
      Aaron Hill 提交于
      Fixes #73268
      
      When a deref coercion occurs, we may end up with a move error if the
      base value has been partially moved out of. However, we do not indicate
      anywhere that a deref coercion is occuring, resulting in an error
      message with a confusing span.
      
      This PR adds an explicit note to move errors when a deref coercion is
      involved. We mention the name of the type that the deref-coercion
      resolved to, as well as the `Deref::Target` associated type being used.
      d18b4bb7
  10. 04 9月, 2020 1 次提交
  11. 30 8月, 2020 1 次提交
  12. 27 6月, 2020 1 次提交
  13. 25 6月, 2020 1 次提交
    • E
      Provide suggestions for some moved value errors · 520461f1
      Esteban Küber 提交于
      When encountering an used moved value where the previous move happened
      in a `match` or `if let` pattern, suggest using `ref`. Fix #63988.
      
      When encountering a `&mut` value that is used in multiple iterations of
      a loop, suggest reborrowing it with `&mut *`. Fix #62112.
      520461f1
  14. 23 6月, 2020 1 次提交
  15. 12 6月, 2020 1 次提交
  16. 29 4月, 2020 1 次提交
    • E
      Suggest `;` or assignment to drop borrows in tail exprs · 2c6094e5
      Esteban Küber 提交于
      Address the diagnostics part of #70844.
      
      ```
      error[E0597]: `counter` does not live long enough
        --> $DIR/issue-54556-niconii.rs:22:20
         |
      LL |     if let Ok(_) = counter.lock() { }
         |                    ^^^^^^^-------
         |                    |
         |                    borrowed value does not live long enough
         |                    a temporary with access to the borrow is created here ...
      ...
      LL | }
         | -
         | |
         | `counter` dropped here while still borrowed
         | ... and the borrow might be used here, when that temporary is dropped and runs the destructor for type `std::result::Result<MutexGuard<'_>, ()>`
         |
      help: consider adding semicolon after the expression so its temporaries are dropped sooner, before the local variables declared by the block are dropped
         |
      LL |     if let Ok(_) = counter.lock() { };
         |                                      ^
      ```
      2c6094e5
  17. 06 4月, 2020 1 次提交
  18. 01 4月, 2020 1 次提交
  19. 30 3月, 2020 3 次提交
  20. 16 2月, 2020 1 次提交
  21. 13 1月, 2020 4 次提交
  22. 01 1月, 2020 1 次提交
  23. 31 12月, 2019 2 次提交
  24. 30 12月, 2019 1 次提交
  25. 23 12月, 2019 1 次提交
  26. 12 12月, 2019 1 次提交
  27. 04 12月, 2019 4 次提交