rust/tests/compile-fail
Adolfo Ochagavía 87ef5f4d3b Lint against indexing and slicing
This can be useful to prevent panics in a codebase. ATM it is a pedantic
lint, but in the future it should be added to the restricions group.
2016-03-11 21:30:35 +01:00
..
absurd-extreme-comparisons.rs improve the no_effect lint 2016-02-11 13:50:41 +01:00
approx_const.rs Tests shouldn't be executable (fixes #444) 2015-11-09 08:49:20 +05:30
array_indexing.rs Lint against indexing and slicing 2016-03-11 21:30:35 +01:00
attrs.rs added semver lint 2016-01-09 02:05:43 +01:00
bit_masks.rs improve the no_effect lint 2016-02-11 13:50:41 +01:00
block_in_if_condition.rs fixed #528 2016-01-31 23:25:10 +01:00
bool_comparison.rs Improve testing and suggestion messages on bool_comparison 2016-02-09 15:44:07 -05:00
box_vec.rs Merge pull request #523 from sanxiyn/escape-arg 2016-01-16 00:03:58 +01:00
cast.rs improve the no_effect lint 2016-02-11 13:50:41 +01:00
char_lit_as_u8.rs Add a lint for casts from char literals to u8 2016-01-27 20:23:59 +01:00
cmp_nan.rs improve the no_effect lint 2016-02-11 13:50:41 +01:00
cmp_owned.rs lint on items following statements 2016-01-24 10:16:56 +01:00
collapsible_if.rs Fix suggestion in COLLAPSIBLE_IF lint 2016-02-15 17:43:16 +01:00
complex_types.rs fallout 2016-02-01 13:01:16 +01:00
copies.rs Remove all ExprRange 2016-03-07 16:31:38 +01:00
cyclomatic_complexity.rs fix cyclomatic complexity lint triggering because of short circuit operations 2016-03-08 15:10:02 +01:00
derive.rs Make DERIVE_HASH_NOT_EQ symmetric 2016-02-16 00:15:11 +01:00
dlist.rs Tests shouldn't be executable (fixes #444) 2015-11-09 08:49:20 +05:30
drop_ref.rs Add lint to warn for calls to std::mem::drop with a reference argument 2016-02-02 20:24:41 +01:00
duplicate_underscore_argument.rs Add new lint on function naming check (the '_') 2016-01-03 14:48:54 +01:00
entry.rs lint ! and != in if expressions with else branches 2016-02-29 12:34:48 +01:00
enum_glob_use.rs fix enum glob use (again) 2016-02-18 16:08:45 +01:00
enum_variants.rs fix enum_variant_names linting on all caps enum variants 2016-02-17 13:33:32 +01:00
enums_clike.rs lint unportable clike enum discriminants 2016-02-29 09:36:13 +01:00
eq_op.rs improve the no_effect lint 2016-02-11 13:50:41 +01:00
escape_analysis.rs fixed #606 2016-02-01 20:37:07 +01:00
eta.rs Warn about calling a closure in the same expression where it's defined. 2016-03-05 22:41:52 +05:30
float_cmp.rs improve the no_effect lint 2016-02-11 13:50:41 +01:00
for_loop.rs Fix ICE in for_loop with globals 2016-03-07 23:32:43 +01:00
format.rs Limit USELESS_FORMAT with args to string args 2016-02-22 17:54:46 +01:00
formatting.rs Add a lint about suspiciously formatted else if 2016-02-27 18:18:53 +01:00
identity_op.rs improve the no_effect lint 2016-02-11 13:50:41 +01:00
if_not_else.rs lint ! and != in if expressions with else branches 2016-02-29 12:34:48 +01:00
item_after_statement.rs lint on items following statements 2016-01-24 10:16:56 +01:00
len_zero.rs Use span_suggestion in len_zero 2016-02-24 20:52:47 +01:00
let_return.rs Tests shouldn't be executable (fixes #444) 2015-11-09 08:49:20 +05:30
let_unit.rs Tests shouldn't be executable (fixes #444) 2015-11-09 08:49:20 +05:30
lifetimes.rs Fix false positive in NEEDLESS_LIFETIMES 2016-01-29 22:31:12 +01:00
map_clone.rs Add a lint about using clone on Copy types 2016-02-02 22:35:01 +01:00
matches.rs Improve the MATCH_REF_PATS suggestions 2016-03-09 16:22:31 +01:00
methods.rs Fix types comparison 2016-03-08 17:00:44 +01:00
min_max.rs Match min and max functions using DefId 2015-11-11 11:08:33 -05:00
modulo_one.rs improve the no_effect lint 2016-02-11 13:50:41 +01:00
mut_mut.rs improve the no_effect lint 2016-02-11 13:50:41 +01:00
mut_reference.rs Rustup to 1.9.0-nightly (c9629d61c 2016-03-10) 2016-03-11 14:18:56 +01:00
mutex_atomic.rs Add a lint for sized integer types in a mutex 2015-10-07 22:58:34 +02:00
needless_bool.rs Lint ifs with the same then and else blocks 2016-02-07 13:26:34 +01:00
needless_features.rs Update to rustc 1.7.0-nightly (d0bac3f14 2016-01-18) 2016-01-18 13:27:42 +01:00
needless_return.rs Use suggestion for needless_return 2015-12-11 16:28:05 +09:00
needless_update.rs New lint for statement with no effect 2015-10-29 15:50:35 +09:00
new_without_default.rs Fix types comparison 2016-03-08 17:00:44 +01:00
no_effect.rs Remove all ExprRange 2016-03-07 16:31:38 +01:00
open_options.rs Fix case conventions 2016-02-05 21:54:29 +01:00
overflow_check_conditional.rs fix cyclomatic complexity lint triggering because of short circuit operations 2016-03-08 15:10:02 +01:00
panic.rs Fix #518 2015-12-23 22:37:52 +01:00
patterns.rs Tests shouldn't be executable (fixes #444) 2015-11-09 08:49:20 +05:30
precedence.rs Tests shouldn't be executable (fixes #444) 2015-11-09 08:49:20 +05:30
print.rs Lint usage of Debug-based formatting 2016-02-09 21:22:54 +01:00
ptr_arg.rs Tests shouldn't be executable (fixes #444) 2015-11-09 08:49:20 +05:30
range.rs Make clippy tests compatible with new lint 2015-12-12 21:39:10 -08:00
redundant_closure_call.rs Warn about calling a closure in the same expression where it's defined. 2016-03-05 22:41:52 +05:30
regex.rs Put regex_macros tests in a separate feature 2016-03-07 19:39:49 +01:00
shadow.rs Upgrade rust to rustc 1.6.0-nightly (462ec0576 2015-12-09) 2015-12-09 15:56:49 -05:00
strings.rs Add lint for "string literal".as_bytes() 2016-01-19 19:17:50 +01:00
swap.rs Lint manual swaps 2016-02-28 12:16:13 +01:00
temporary_assignment.rs New lint for assignment to temporary 2015-11-04 21:37:18 +09:00
toplevel_ref_arg.rs Don’t use {:?} and use span_suggestion in TOPLEVEL_REF_ARG 2016-02-09 21:22:30 +01:00
transmute.rs Upgrade rust to rustc 1.6.0-nightly (462ec0576 2015-12-09) 2015-12-09 15:56:49 -05:00
unicode.rs Tests shouldn't be executable (fixes #444) 2015-11-09 08:49:20 +05:30
unit_cmp.rs Tests shouldn't be executable (fixes #444) 2015-11-09 08:49:20 +05:30
unneeded_field_pattern.rs Add new lint on function naming check (the '_') 2016-01-03 14:48:54 +01:00
unused_labels.rs Lint unused labels 2016-03-08 16:43:40 +01:00
unused_lt.rs Consider lifetime in self paramter in unused_lifetime lint 2016-01-14 19:27:24 +01:00
used_underscore_binding.rs fallout 2016-02-01 13:01:16 +01:00
vec.rs Add a lint to warn about &vec![_] if &[_] would do 2016-01-29 17:41:52 +01:00
while_loop.rs Fix wrong suggestion in WHILE_LET_LOOP 2016-02-28 12:09:28 +01:00
wrong_self_convention.rs Add missing WRONG_PUB_SELF_CONVENTION in lint_array! and corresponding test 2016-01-03 14:42:24 +01:00
zero_div_zero.rs Add - and / to EQ_OP 2016-02-07 13:26:34 +01:00