1. 07 9月, 2021 1 次提交
  2. 15 8月, 2021 1 次提交
  3. 04 8月, 2021 2 次提交
  4. 23 7月, 2021 1 次提交
  5. 08 6月, 2021 2 次提交
  6. 30 1月, 2021 1 次提交
  7. 31 10月, 2020 1 次提交
  8. 05 10月, 2020 4 次提交
  9. 30 8月, 2020 1 次提交
  10. 10 8月, 2020 1 次提交
  11. 15 7月, 2020 2 次提交
  12. 09 6月, 2020 1 次提交
  13. 26 5月, 2020 1 次提交
    • A
      Display information about captured variable in `FnMut` error · 9cee22c1
      Aaron Hill 提交于
      Fixes #69446
      
      When we encounter a region error involving an `FnMut` closure, we
      display a specialized error message. However, we currently do not
      tell the user which upvar was captured. This makes it difficult to
      determine the cause of the error, especially when the closure is large.
      
      This commit records marks constraints involving closure upvars
      with `ConstraintCategory::ClosureUpvar`. When we decide to 'blame'
      a `ConstraintCategory::Return`, we additionall store
      the captured upvar if we found a `ConstraintCategory::ClosureUpvar` in
      the path.
      
      When generating an error message, we point to relevant spans if we have
      closure upvar information available. We further customize the message if
      an `async` closure is being returned, to make it clear that the captured
      variable is being returned indirectly.
      9cee22c1
  14. 11 5月, 2020 2 次提交
  15. 05 5月, 2020 1 次提交
  16. 24 4月, 2020 1 次提交
  17. 23 4月, 2020 1 次提交
  18. 30 3月, 2020 2 次提交
  19. 29 3月, 2020 1 次提交
  20. 27 3月, 2020 1 次提交
  21. 19 3月, 2020 1 次提交
  22. 28 2月, 2020 1 次提交
  23. 16 2月, 2020 1 次提交
  24. 15 2月, 2020 4 次提交
  25. 14 2月, 2020 1 次提交
  26. 12 2月, 2020 1 次提交
  27. 12 1月, 2020 1 次提交
  28. 10 1月, 2020 1 次提交
  29. 05 1月, 2020 1 次提交