]> git.lizzy.rs Git - rust.git/commit
Hide "type ascription is experimental error" unless it's the only one
authorEsteban Küber <esteban@kuber.com.ar>
Wed, 13 Mar 2019 23:47:55 +0000 (16:47 -0700)
committerEsteban Küber <esteban@kuber.com.ar>
Sat, 23 Mar 2019 02:50:18 +0000 (19:50 -0700)
commit81b876b6a3e3e489fdad8514f69b67264ab1d338
tree675bab6d388d01cf8108d380e79de1b3b6edacac
parent72a3089092da16c247d57915f5e4b99adf2fea4d
Hide "type ascription is experimental error" unless it's the only one

In order to minimize the verbosity of common syntax errors that are parsed
as type ascription, hide the feature gate error unless there are no other
errors being emitted by the parser.
src/libsyntax/feature_gate.rs
src/test/ui/suggestions/type-ascription-instead-of-let.rs
src/test/ui/suggestions/type-ascription-instead-of-let.stderr
src/test/ui/suggestions/type-ascription-instead-of-path.rs
src/test/ui/suggestions/type-ascription-instead-of-path.stderr