I'd like a chance to audit all the code that rustdoc is inserting into
the docs. Currently I am skeptical that showing ryu's internal usages
of APIs is a net benefit to the public documentation. I am also
skeptical that quite so many examples are needed, and that they should
be featured so prominently in comparison to handwritten docs. Lastly I
wish there were a way to turn this behavior off on a more granular
basis.
GitHub's default timeout is 6 hours. Recently some of my GitHub Actions
jobs have started randomly stalling for that long, which is inconvenient
because it ties up a chunk of my runner quota. It apepars to be very
rare for a job to recover after stalling. It's better to time out
quicker and retry on a different runner.
error: casting to the same type is unnecessary (`u32` -> `u32`)
--> src/pretty/mantissa.rs:46:17
|
46 | let c = (output - 10_000 * (output / 10_000)) as u32;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `(output - 10_000 * (output / 10_000))`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
= note: `-D clippy::unnecessary-cast` implied by `-D clippy::all`
error: casting to the same type is unnecessary (`u32` -> `u32`)
--> src/pretty/mantissa.rs:63:17
|
63 | let c = ((output % 100) << 1) as u32;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `((output % 100) << 1)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting to the same type is unnecessary (`u32` -> `u32`)
--> src/pretty/mantissa.rs:73:17
|
73 | let c = (output << 1) as u32;
| ^^^^^^^^^^^^^^^^^^^^ help: try: `(output << 1)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting to the same type is unnecessary (`u32` -> `u32`)
--> src/pretty/mod.rs:164:9
|
164 | ((bits >> FLOAT_MANTISSA_BITS) & ((1u32 << FLOAT_EXPONENT_BITS) - 1)) as u32;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `((bits >> FLOAT_MANTISSA_BITS) & ((1u32 << FLOAT_EXPONENT_BITS) - 1))`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting to the same type is unnecessary (`u32` -> `u32`)
--> src/s2f.rs:223:68
|
223 | let ieee = ((((signed_m as u32) << f2s::FLOAT_EXPONENT_BITS) | ieee_e2 as u32)
| ^^^^^^^^^^^^^^ help: try: `ieee_e2`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
= note: `-D clippy::unnecessary-cast` implied by `-D clippy::all`
These atomics are not synchronizing anything outside of their own value,
so we don't need the Acquire/Release guarantee that all memory
operations prior to the store are visible after the subsequent load, nor
the SeqCst guarantee of all threads seeing all of the sequentially
consistent operations in the same order.