about summary refs log tree commit diff
path: root/src/libsyntax/util/parser.rs
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2018-01-09 18:41:24 -0800
committerEsteban Küber <esteban@kuber.com.ar>2018-01-14 22:46:24 -0800
commit09efaaf0764ddfd366bf6627533ecd1ea6ffb234 (patch)
tree4090b3600132cd94b26b60a56a7b8562df1281af /src/libsyntax/util/parser.rs
parent509ea8efc630d4e329dc2a440a2c0fc2a3fea236 (diff)
downloadrust-09efaaf0764ddfd366bf6627533ecd1ea6ffb234.tar.gz
rust-09efaaf0764ddfd366bf6627533ecd1ea6ffb234.zip
Use `s::u::p::expr_precedence` and fix message
 - Use `syntax::util::parser::expr_precedence` to determine wether
   parenthesis are needed around the casting target.
 - Update message to not incorrectly mention rounding on `.into()`
   suggestions, as those types that do have that implemented will never
   round.
Diffstat (limited to 'src/libsyntax/util/parser.rs')
0 files changed, 0 insertions, 0 deletions