profile
viewpoint

Ask questionsError linting project using wasm-bindgen on nighlty

<!-- Hi there! Whether you've come to make a suggestion for a new lint, an improvement to an existing lint or to report a bug or a false positive in Clippy, you've come to the right place.

For bug reports and false positives, please include the output of cargo clippy -V in the report.

Thank you for using Clippy!

Write your comment below this line: -->

cargo clippy --all -- -D clippy::pedantic -D warnings is ok

running cargo +nightly clippy --all -- -D clippy::pedantic -D warnings produces:

error: integer type suffix should be separated by an underscore
  --> jason/src/api/connection.rs:28:1
   |
28 | #[wasm_bindgen]
   | ^^^^^^^^^^^^^^^ help: add an underscore: `#[wasm_bindg_u32`
   |
   = note: `-D clippy::unseparated-literal-suffix` implied by `-D clippy::pedantic`
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unseparated_literal_suffix
cargo clippy -V 
clippy 0.0.212 (e3cb40e 2019-06-25)
cargo +nightly clippy -V
clippy 0.0.212 (aeadf15 2019-09-03)

Reproduction.

rust-lang/rust-clippy

Answer questions lzutao

I added it back in #4510. But unfortunately, proc-macro is out of my league. It would be nice if someone could add a regression test for this.

useful!
source:https://uonfu.com/
Github User Rank List