1. 14 6月, 2020 1 次提交
  2. 13 6月, 2020 2 次提交
  3. 12 6月, 2020 5 次提交
  4. 11 6月, 2020 1 次提交
    • A
      Track span of function in method calls, and use this in #[track_caller] · 28946b34
      Aaron Hill 提交于
      Fixes #69977
      
      When we parse a chain of method calls like `foo.a().b().c()`, each
      `MethodCallExpr` gets assigned a span that starts at the beginning of
      the call chain (`foo`). While this is useful for diagnostics, it means
      that `Location::caller` will return the same location for every call
      in a call chain.
      
      This PR makes us separately record the span of the function name and
      arguments for a method call (e.g. `b()` in `foo.a().b().c()`). This
      `Span` is passed through HIR lowering and MIR building to
      `TerminatorKind::Call`, where it is used in preference to
      `Terminator.source_info.span` when determining `Location::caller`.
      
      This new span is also useful for diagnostics where we want to emphasize
      a particular method call - for an example, see
      https://github.com/rust-lang/rust/pull/72389#discussion_r436035990
      28946b34
  5. 07 6月, 2020 1 次提交
  6. 31 5月, 2020 1 次提交
  7. 30 5月, 2020 3 次提交
  8. 28 5月, 2020 2 次提交
  9. 26 5月, 2020 4 次提交
  10. 25 5月, 2020 8 次提交
  11. 24 5月, 2020 3 次提交
  12. 23 5月, 2020 3 次提交
  13. 21 5月, 2020 1 次提交
  14. 19 5月, 2020 1 次提交
  15. 18 5月, 2020 1 次提交
  16. 16 5月, 2020 1 次提交
  17. 12 5月, 2020 2 次提交