]> git.lizzy.rs Git - rust.git/commit - src/tools/miri
Rollup merge of #74188 - estebank:tweak-ascription-typo-heuristic, r=petrochenkov
authorManish Goregaokar <manishsmail@gmail.com>
Thu, 9 Jul 2020 18:50:50 +0000 (11:50 -0700)
committerGitHub <noreply@github.com>
Thu, 9 Jul 2020 18:50:50 +0000 (11:50 -0700)
commit9353e21bfdea148e910b2530270a3418db836bf3
tree7bafe998869c457ebaa9f82179f49c37baf7a551
parent31d53decd06f9cd854bbfe11f03abcd398e396b6
parente771a4f989644fd6397c391af1db94d459980b2e
Rollup merge of #74188 - estebank:tweak-ascription-typo-heuristic, r=petrochenkov

Tweak `::` -> `:` typo heuristic and reduce verbosity

Do not trigger on correct type ascription expressions with trailing
operators and _do_ trigger on likely path typos where a turbofish is
used.

On likely path typos, remove note explaining type ascription.

Clean up indentation.

r? @petrochenkov
src/librustc_parse/parser/diagnostics.rs
src/librustc_resolve/diagnostics.rs