about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2017-03-17 08:49:01 -0400
committerGitHub <noreply@github.com>2017-03-17 08:49:01 -0400
commit5aab3b97af7691636928b35350a46b393f0d6d5a (patch)
treead3861d6d8ad79453bdf6f56231a4374b0c99e72 /src/rustllvm/RustWrapper.cpp
parente389f6a67ef68b1c06a8f1aeb411e5b5401f549c (diff)
parente3b8550a601ca920284f91ceff30a29340832fe7 (diff)
downloadrust-5aab3b97af7691636928b35350a46b393f0d6d5a.tar.gz
rust-5aab3b97af7691636928b35350a46b393f0d6d5a.zip
Rollup merge of #40500 - estebank:turbofish-help, r=pnkfelix
Point out correct turbofish usage on `Foo<Bar<Baz>>`

Whenever we parse a chain of binary operations, as long as the first
operation is `<` and the subsequent operations are either `>` or `<`,
present the following diagnostic help:

    use `::<...>` instead of `<...>` if you meant to specify type arguments

This will lead to spurious recommendations on situations like
`2 < 3 < 4` but should be clear from context that the help doesn't apply
in that case.

Fixes #40396.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions