diff options
| author | kennytm <kennytm@gmail.com> | 2017-11-29 18:37:54 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-11-29 18:37:54 +0800 |
| commit | 51bd916af49dff0e88cf3cd01d507aa5fabc6cf8 (patch) | |
| tree | 9aa394d3aa0d70c7b7cc975fb83be4fc69657737 /src/libstd | |
| parent | 9a93df9b58b5c67b4cea58a9ce01c59efbd27a40 (diff) | |
| parent | 2c98378ace8d9d406c9701844a7e556def6f7cbc (diff) | |
| download | rust-51bd916af49dff0e88cf3cd01d507aa5fabc6cf8.tar.gz rust-51bd916af49dff0e88cf3cd01d507aa5fabc6cf8.zip | |
Rollup merge of #46356 - daboross:patch-2, r=sfackler
Reject '2' as a binary digit in internals of b: number formatting The `radix!` macro generates an implementation of the private trait `GenericRadix`, and the code replaced changes Binary's implementation to no longer accept '2' as a valid digit to print. Granted, this code is literally only ever called from another method in this private trait, and that method has logic to never hand a '2' to the printing function. Even given this, the code's there, I thought it would be best to fix this for clarity of anyone reading it.
Diffstat (limited to 'src/libstd')
0 files changed, 0 insertions, 0 deletions
