rust/clippy_lints/src/utils
Guillem Nieto 8494f57c82 Fix author lint
The author lint was generating invalid code as shown on issue:
https://github.com/rust-lang-nursery/rust-clippy/issues/2442

I've changed the generated code to properly track cast
expressions.

Unfortunatelly, I've had to rewrite the `visit_decl` method, to
avoid that last if of the chain will be added. After looking at the code,
this last line was being added because of the `let x: char` part, but not
because of the `0x45df as char` expression.

It seems that let statements should not generate code on the author
lint, but I'm not sure that this is true or if I'm breaking
something on other code generation parts.

Finally, I've added a test for the author lint, but I'm not sure that
this needs to be added to the testsuite.
2018-02-24 02:19:47 +01:00
..
author.rs Fix author lint 2018-02-24 02:19:47 +01:00
comparisons.rs
conf.rs Make decimal_literal_representation a restriction lint 2018-02-06 13:05:20 +01:00
constants.rs
higher.rs Cargo fmt 2017-11-05 04:55:56 +09:00
hir_utils.rs Fix #2427 2018-02-09 15:25:12 +01:00
inspector.rs Rustup 2018-01-15 12:08:17 +01:00
internal_lints.rs Fix lint_without_lint_pass 2017-10-31 10:04:02 -07:00
mod.rs Remove rarely used type_size helper function 2018-02-09 15:24:31 +01:00
paths.rs needless_pass_by_value: Whitelist RangeArgument (fixes #2357) 2018-01-18 14:30:53 +05:30
ptr.rs
sugg.rs Rustup to rustc 1.25.0-nightly (7d6e5b9da 2018-01-27) 2018-01-28 16:28:48 +09:00