rust-clippy/tests
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
..
auxiliary aux -> auxiliary (breaks Windows) 2016-10-04 09:15:03 +05:30
run-pass Fixes #2426 (if_same_then_else false positive) 2018-02-09 15:31:55 +01:00
ui Fix author lint 2018-02-24 02:19:47 +01:00
camel_case.rs fallout 2016-08-17 18:35:25 +02:00
cc_seme.rs Run rustfmt 2017-04-12 11:06:32 +02:00
compile-test.rs Give travis a guaranteed existing directory for ui test output 2018-02-01 14:35:56 +01:00
conf_whitelisted.rs Apply changes that were required for running in the rustc test suite 2017-11-14 14:56:00 +01:00
dogfood.rs Don't run dogfood on windows or in the rustc test suite 2018-01-19 13:14:43 +01:00
ice_exacte_size.rs run rustfmt 2016-12-20 10:20:41 +01:00
issue-825.rs Cargo fmt 2017-11-05 04:55:56 +09:00
matches.rs Run nightly rustfmt 2017-09-05 12:39:27 +02:00
mut_mut_macro.rs mut_mut_macro is missing plugin(clippy) 2018-01-29 09:48:06 +05:30
needless_continue_helpers.rs Run nightly rustfmt 2017-09-05 12:39:27 +02:00
trim_multiline.rs run rustfmt 2016-12-20 10:20:41 +01:00
used_underscore_binding_macro.rs Run rustfmt 2017-04-12 11:06:32 +02:00
versioncheck.rs remove rustc-serialize dependency and factor util::cargo out into a crate 2017-01-26 11:31:26 +01:00