about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorDmitry Kadashev <dkadashev@gmail.com>2019-11-02 14:51:10 +0700
committerDmitry Kadashev <dkadashev@gmail.com>2019-11-02 14:55:03 +0700
commit774e60b0c16d234d247978b92db27869d6ab45fa (patch)
treed4b95d41c085f76a82c0eac3ecf42a65e18859e9 /src/libsyntax/parse
parent4e10b75951e5ab7975952826a7591f8eca77e423 (diff)
downloadrust-774e60b0c16d234d247978b92db27869d6ab45fa.tar.gz
rust-774e60b0c16d234d247978b92db27869d6ab45fa.zip
Prettify mismatched types error message in a special case
Type parameters are referenced in the error message after the previous
few commits (using span label). But when the main error message already
references the very same type parameter it becomes clumsy. Do not show
the additional label in this case as per code review comment by
@estebank.

Also this contains a small style fix.
Diffstat (limited to 'src/libsyntax/parse')
0 files changed, 0 insertions, 0 deletions