]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #48235 - varkor:parse-float-lonely-exponent, r=alexcrichton
authorkennytm <kennytm@gmail.com>
Sun, 25 Feb 2018 13:36:46 +0000 (21:36 +0800)
committerkennytm <kennytm@gmail.com>
Sun, 25 Feb 2018 13:36:46 +0000 (21:36 +0800)
commit0652af21b5b2cedacff71c6e613addbd8d17ec58
tree704067324b813ed1ef3e3a0746bf6af5ff918424
parent268b6d61894d535f8414eee923ac740d8d3fef81
parentc0e87f13a4d2f6fcef92c8c01bdc8dda9e0549a5
Rollup merge of #48235 - varkor:parse-float-lonely-exponent, r=alexcrichton

Make ".e0" not parse as 0.0

This forces floats to have either a digit before the separating point, or after. Thus `".e0"` is invalid like `"."`, when using `parse()`. Fixes #40654. As mentioned in the issue, this is technically a breaking change... but clearly incorrect behaviour at present.