Commit fb3d126
authored
Rollup merge of rust-lang#94842 - tspiteri:there-is-no-try, r=Dylan-DPC
Remove unnecessary try_opt for operations that cannot fail
As indicated in the added comments, some operation cannot overflow, so using `try_opt!` for them is unnecessary.2 files changed
+6
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2166 | 2166 | | |
2167 | 2167 | | |
2168 | 2168 | | |
2169 | | - | |
| 2169 | + | |
| 2170 | + | |
2170 | 2171 | | |
2171 | 2172 | | |
2172 | 2173 | | |
2173 | 2174 | | |
2174 | 2175 | | |
2175 | 2176 | | |
2176 | 2177 | | |
2177 | | - | |
| 2178 | + | |
| 2179 | + | |
2178 | 2180 | | |
2179 | 2181 | | |
2180 | 2182 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2119 | 2119 | | |
2120 | 2120 | | |
2121 | 2121 | | |
2122 | | - | |
| 2122 | + | |
| 2123 | + | |
2123 | 2124 | | |
2124 | 2125 | | |
2125 | 2126 | | |
| |||
0 commit comments