about summary refs log tree commit diff
path: root/compiler/rustc_mir/src/transform/coverage/debug.rs
diff options
context:
space:
mode:
authorÖmer Sinan Ağacan <omeragacan@gmail.com>2021-02-27 08:01:32 +0300
committerÖmer Sinan Ağacan <omeragacan@gmail.com>2021-02-27 13:46:49 +0300
commitfb631a55c2acfae37e55e4c338dd3cc03da0fa7f (patch)
tree0c93da2d5d52369a8a4cf27132cff937bd838c83 /compiler/rustc_mir/src/transform/coverage/debug.rs
parent3da2dd3eae7b7cbf16960ab993de666470e43991 (diff)
downloadrust-fb631a55c2acfae37e55e4c338dd3cc03da0fa7f.tar.gz
rust-fb631a55c2acfae37e55e4c338dd3cc03da0fa7f.zip
Fix turbofish recovery with multiple generic args
check_mistyped_turbofish_with_multiple_type_params was previously
expecting type arguments between angle brackets, which is not right, as
we can also see const expressions. We now use generic argument parser
instead of type parser.

Test with one, two, and three generic arguments added to check
consistentcy between

1. check_no_chained_comparison: Called after parsing a nested binop
   application like `x < A > ...` where angle brackets are interpreted as
   binary operators and `A` is an expression.

2. check_mistyped_turbofish_with_multiple_type_params: called by
   `parse_full_stmt` when we expect to see a semicolon after parsing an
   expression but don't see it.

   (In `T2<1, 2>::C;`, the expression is `T2 < 1`)
Diffstat (limited to 'compiler/rustc_mir/src/transform/coverage/debug.rs')
0 files changed, 0 insertions, 0 deletions