rust-clippy/clippy_lints/src
Philipp Hansch 676f14baa0
Add custom ICE message that points to Clippy repo
This utilizes https://github.com/rust-lang/rust/pull/60584 by setting
our own `panic_hook` and pointing to our own issue tracker instead of
the rustc issue tracker.

This also adds a new internal lint to test the ICE message.

**Potential downsides**

* This essentially copies rustc's `report_ice` function as
  `report_clippy_ice`. I think that's how it's meant to be implemented, but
  maybe @jonas-schievink could have a look as well =)

  The downside of more-or-less copying this function is that we have to
  maintain it as well now.
  The original function can be found [here][original].
* `driver` now depends directly on `rustc` and `rustc_errors`

Closes #2734

[original]: 59367b074f/src/librustc_driver/lib.rs (L1185)
2019-11-29 20:47:47 +01:00
..
methods Rollup merge of #4847 - rust-lang:offest, r=phansch 2019-11-28 10:19:06 +01:00
utils Add custom ICE message that points to Clippy repo 2019-11-29 20:47:47 +01:00
approx_const.rs add a good example for the approx_const lint 2019-11-19 20:14:09 +01:00
arithmetic.rs Remove negative float literal checks. 2019-11-25 19:23:28 +01:00
as_conversions.rs implemented as_conversions lint 2019-11-25 18:12:52 +03:00
assertions_on_constants.rs Move match_function_call to utils 2019-10-10 10:57:12 +02:00
assign_ops.rs new lints around #[must_use] fns 2019-10-14 12:09:04 +02:00
attrs.rs Rustup rust-lang/rust#66188 2019-11-08 15:12:08 -05:00
bit_mask.rs new lints around #[must_use] fns 2019-10-14 12:09:04 +02:00
blacklisted_name.rs Rustup to rust-lang/rust#64813 2019-09-27 17:21:20 +02:00
block_in_if_condition.rs Rustup to rust-lang/rust#64813 2019-09-27 17:21:20 +02:00
booleans.rs Rustup to rustc 1.40.0-nightly (237d54ff6 2019-10-15) 2019-10-15 12:29:28 -07:00
bytecount.rs Add BorrowKind::Ref 2019-11-27 14:39:28 -08:00
cargo_common_metadata.rs deps: update cargo_metadata from 0.8.0 to 0.9.0 2019-10-23 17:30:24 +02:00
checked_conversions.rs new lints around #[must_use] fns 2019-10-14 12:09:04 +02:00
cognitive_complexity.rs new lints around #[must_use] fns 2019-10-14 12:09:04 +02:00
collapsible_if.rs Rustup to rust-lang/rust#64813 2019-09-27 17:21:20 +02:00
comparison_chain.rs [comparison_chain] #4827 Check core::cmp::Ord is implemented 2019-11-24 10:00:06 +01:00
consts.rs Rustup rust-lang/rust#66233 2019-11-14 17:44:23 +09:00
copies.rs Implement if_same_cond_fn lint 2019-11-20 06:54:46 +03:00
copy_iterator.rs Rustup to rust-lang/rust#64813 2019-09-27 17:21:20 +02:00
dbg_macro.rs Refactor option handling 2019-09-04 16:19:59 +02:00
default_trait_access.rs Rustup to rust-lang/rust#64813 2019-09-27 17:21:20 +02:00
deprecated_lints.rs Auto merge of #4757 - evanjs:issue/4748, r=phansch 2019-11-07 20:47:14 +00:00
derive.rs Fix false positive in derive_hash_xor_eq 2019-11-11 07:59:53 +01:00
doc.rs Rustup rust-lang/rust#66188 2019-11-08 15:12:08 -05:00
double_comparison.rs Add a new lint for unused self 2019-10-15 09:58:11 +02:00
double_parens.rs Rustup to rust-lang/rust#64813 2019-09-27 17:21:20 +02:00
drop_bounds.rs Prevent symbocalypse 2019-05-17 23:53:54 +02:00
drop_forget_ref.rs Rustup to rust-lang/rust#64813 2019-09-27 17:21:20 +02:00
duration_subsec.rs Rustup to rust-lang/rust#64813 2019-09-27 17:21:20 +02:00
else_if_without_else.rs Rustup to rust-lang/rust#64813 2019-09-27 17:21:20 +02:00
empty_enum.rs Rustup to rust-lang/rust#64813 2019-09-27 17:21:20 +02:00
entry.rs Add BorrowKind::Ref 2019-11-27 14:39:28 -08:00
enum_clike.rs rustup https://github.com/rust-lang/rust/pull/64781/ 2019-09-28 10:42:41 +02:00
enum_glob_use.rs Add a new lint for unused self 2019-10-15 09:58:11 +02:00
enum_variants.rs new lints around #[must_use] fns 2019-10-14 12:09:04 +02:00
eq_op.rs Add BorrowKind::Ref 2019-11-27 14:39:28 -08:00
erasing_op.rs Clean up some unused vars 2019-09-29 23:46:32 +07:00
escape.rs Add projections check to EUV for escape analysis 2019-11-29 12:57:10 +01:00
eta_reduction.rs Rustup to rust-lang/rust#64813 2019-09-27 17:21:20 +02:00
eval_order_dependence.rs Re-add wildcards for BorrowKind in some places 2019-11-27 15:09:48 -08:00
excessive_precision.rs literal representation restructure 12 2019-11-13 08:28:50 +02:00
exit.rs remove unused warnings 2019-11-08 10:23:42 +07:00
explicit_write.rs Add BorrowKind::Ref 2019-11-27 14:39:28 -08:00
fallible_impl_from.rs Rustup to rust-lang/rust#64813 2019-09-27 17:21:20 +02:00
format.rs Add BorrowKind::Ref 2019-11-27 14:39:28 -08:00
formatting.rs new lints around #[must_use] fns 2019-10-14 12:09:04 +02:00
functions.rs Re-add wildcards for BorrowKind in some places 2019-11-27 15:09:48 -08:00
get_last_with_len.rs Clean up some unused vars 2019-09-29 23:46:32 +07:00
identity_conversion.rs Use match_function_call wherever possible 2019-10-10 20:06:04 +02:00
identity_op.rs Rustup to rust-lang/rust#64813 2019-09-27 17:21:20 +02:00
if_not_else.rs Rustup to rust-lang/rust#64813 2019-09-27 17:21:20 +02:00
implicit_return.rs Use match_function_call wherever possible 2019-10-10 20:06:04 +02:00
indexing_slicing.rs Rustup to rust-lang/rust#64813 2019-09-27 17:21:20 +02:00
infallible_destructuring_match.rs Rustup to rust-lang/rust#64813 2019-09-27 17:21:20 +02:00
infinite_iter.rs Add BorrowKind::Ref 2019-11-27 14:39:28 -08:00
inherent_impl.rs Ignore impls derived from macros 2019-09-27 20:47:00 -05:00
inherent_to_string.rs Fix typo in inherent_to_string documentation 2019-10-04 10:58:53 +01:00
inline_fn_without_body.rs Rustup to rust-lang/rust#64813 2019-09-27 17:21:20 +02:00
int_plus_one.rs Add a new lint for unused self 2019-10-15 09:58:11 +02:00
integer_division.rs Rustup to rust-lang/rust#64813 2019-09-27 17:21:20 +02:00
items_after_statements.rs Rustup to rust-lang/rust#64813 2019-09-27 17:21:20 +02:00
large_enum_variant.rs new lints around #[must_use] fns 2019-10-14 12:09:04 +02:00
large_stack_arrays.rs Fix fallout 2019-11-23 18:09:09 +01:00
len_zero.rs Rustup to rust-lang/rust#64813 2019-09-27 17:21:20 +02:00
let_if_seq.rs Rustup to rust-lang/rust#64813 2019-09-27 17:21:20 +02:00
lib.rs Add custom ICE message that points to Clippy repo 2019-11-29 20:47:47 +01:00
lifetimes.rs Add suggested good cases in docs for lifetimes lint 2019-11-19 20:03:41 +01:00
literal_representation.rs literal repr: ignore more warnings in macros 2019-11-14 08:19:02 +02:00
loops.rs Use infer_ctxt 2019-11-29 11:12:19 +01:00
main_recursion.rs Rustup to rustc 1.40.0-nightly (7a76fe76f 2019-11-07) 2019-11-07 13:14:40 +01:00
map_clone.rs Rustup to rust-lang/rust#64813 2019-09-27 17:21:20 +02:00
map_unit_fn.rs new lints around #[must_use] fns 2019-10-14 12:09:04 +02:00
matches.rs Add BorrowKind::Ref 2019-11-27 14:39:28 -08:00
mem_discriminant.rs Add BorrowKind::Ref 2019-11-27 14:39:28 -08:00
mem_forget.rs Rustup to rust-lang/rust#64813 2019-09-27 17:21:20 +02:00
mem_replace.rs Add BorrowKind::Ref 2019-11-27 14:39:28 -08:00
minmax.rs Rustup to rust-lang/rust#64813 2019-09-27 17:21:20 +02:00
misc.rs MutImmutable -> Immutable, MutMutable -> Mutable, CaptureClause -> CaptureBy 2019-11-11 10:58:39 -08:00
misc_early.rs Rustup to rust-lang/rust#65884 2019-11-07 13:27:00 +01:00
missing_const_for_fn.rs new lints around #[must_use] fns 2019-10-14 12:09:04 +02:00
missing_doc.rs new lints around #[must_use] fns 2019-10-14 12:09:04 +02:00
missing_inline.rs Rustup to rust-lang/rust#64813 2019-09-27 17:21:20 +02:00
mul_add.rs Move manual_mul_add into nursery 2019-10-26 19:57:01 +02:00
multiple_crate_versions.rs Use lint pass macros 2019-04-17 09:35:22 -07:00
mut_mut.rs Add BorrowKind::Ref 2019-11-27 14:39:28 -08:00
mut_reference.rs Add BorrowKind::Ref 2019-11-27 14:39:28 -08:00
mutable_debug_assertion.rs Add BorrowKind::Ref 2019-11-27 14:39:28 -08:00
mutex_atomic.rs chore: remove unnecessary parentheses around type 2019-11-05 22:05:55 +07:00
needless_bool.rs Rustup to rust-lang/rust#64813 2019-09-27 17:21:20 +02:00
needless_borrow.rs Add BorrowKind::Ref 2019-11-27 14:39:28 -08:00
needless_borrowed_ref.rs MutImmutable -> Immutable, MutMutable -> Mutable, CaptureClause -> CaptureBy 2019-11-11 10:58:39 -08:00
needless_continue.rs new lints around #[must_use] fns 2019-10-14 12:09:04 +02:00
needless_pass_by_value.rs Use infer_ctxt 2019-11-29 11:12:19 +01:00
needless_update.rs Rustup to rust-lang/rust#64813 2019-09-27 17:21:20 +02:00
neg_cmp_op_on_partial_ord.rs Rustup to rust-lang/rust#64813 2019-09-27 17:21:20 +02:00
neg_multiply.rs Fix ICE #4579 2019-10-02 09:39:04 +02:00
new_without_default.rs Rustup to rust-lang/rust#64813 2019-09-27 17:21:20 +02:00
no_effect.rs Re-add wildcards for BorrowKind in some places 2019-11-27 15:09:48 -08:00
non_copy_const.rs new lints around #[must_use] fns 2019-10-14 12:09:04 +02:00
non_expressive_names.rs Rustup rust-lang/rust#66188 2019-11-08 15:12:08 -05:00
ok_if_let.rs Rustup to rust-lang/rust#64813 2019-09-27 17:21:20 +02:00
open_options.rs Rustup to rust-lang/rust#64813 2019-09-27 17:21:20 +02:00
overflow_check_conditional.rs Rustup to rust-lang/rust#64813 2019-09-27 17:21:20 +02:00
panic_unimplemented.rs Split out tests 2019-10-18 07:40:48 +02:00
partialeq_ne_impl.rs Rustup to rust-lang/rust#64813 2019-09-27 17:21:20 +02:00
path_buf_push_overwrite.rs rustup rust-lang/rust#65776 2019-11-06 17:46:45 +07:00
precedence.rs Rustup to rust-lang/rust#65884 2019-11-07 13:27:00 +01:00
ptr.rs MutImmutable -> Immutable, MutMutable -> Mutable, CaptureClause -> CaptureBy 2019-11-11 10:58:39 -08:00
ptr_offset_with_cast.rs new lints around #[must_use] fns 2019-10-14 12:09:04 +02:00
question_mark.rs Rustup to rust-lang/rust#64813 2019-09-27 17:21:20 +02:00
ranges.rs Rustup to rust-lang/rust#64813 2019-09-27 17:21:20 +02:00
redundant_clone.rs extern rustc_index 2019-10-03 08:27:47 +09:00
redundant_field_names.rs Rustup to rust-lang/rust#64813 2019-09-27 17:21:20 +02:00
redundant_pattern_matching.rs Rustup to rust-lang/rust#64813 2019-09-27 17:21:20 +02:00
redundant_static_lifetimes.rs Rustup to rust-lang/rust#64813 2019-09-27 17:21:20 +02:00
reference.rs Re-add wildcards for BorrowKind in some places 2019-11-27 15:09:48 -08:00
regex.rs Add BorrowKind::Ref 2019-11-27 14:39:28 -08:00
replace_consts.rs Dogfood for inefficient_to_string 2019-10-16 17:12:41 -04:00
returns.rs Add a new lint for unused self 2019-10-15 09:58:11 +02:00
serde_api.rs Rustup to rust-lang/rust#64813 2019-09-27 17:21:20 +02:00
shadow.rs Re-add wildcards for BorrowKind in some places 2019-11-27 15:09:48 -08:00
slow_vector_initialization.rs Add a new lint for unused self 2019-10-15 09:58:11 +02:00
strings.rs trigger string_lit_as_bytes when literal has escapes 2019-11-26 17:07:17 -05:00
suspicious_trait_impl.rs Rustup to rust-lang/rust#64813 2019-09-27 17:21:20 +02:00
swap.rs Rustup to rust-lang/rust#64813 2019-09-27 17:21:20 +02:00
tabs_in_doc_comments.rs add new lint tabs in doc comments 2019-11-15 16:25:47 +01:00
temporary_assignment.rs Rustup to rust-lang/rust#64813 2019-09-27 17:21:20 +02:00
to_digit_is_some.rs Really fix to_digit_is_some documentation 2019-11-10 18:00:04 +02:00
trait_bounds.rs Made lint pedantic 2019-08-17 11:45:05 +01:00
transmute.rs MutImmutable -> Immutable, MutMutable -> Mutable, CaptureClause -> CaptureBy 2019-11-11 10:58:39 -08:00
transmuting_null.rs Clean up some unused vars 2019-09-29 23:46:32 +07:00
trivially_copy_pass_by_ref.rs config.usize_ty -> config.ptr_width 2019-11-27 15:09:48 -08:00
try_err.rs Don't emit try_err lint in external macros 2019-10-24 07:52:01 +02:00
types.rs MutImmutable -> Immutable, MutMutable -> Mutable, CaptureClause -> CaptureBy 2019-11-11 10:58:39 -08:00
unicode.rs Rustup to rust-lang/rust#64813 2019-09-27 17:21:20 +02:00
unsafe_removed_from_name.rs rustup rust-lang/rust#65776 2019-11-06 17:46:45 +07:00
unused_io_amount.rs Rustup to rust-lang/rust#64813 2019-09-27 17:21:20 +02:00
unused_label.rs Rustup to rust-lang/rust#64813 2019-09-27 17:21:20 +02:00
unused_self.rs Change terminology from static to associated 2019-10-15 09:58:12 +02:00
unwrap.rs Rustup to rust-lang/rust#64813 2019-09-27 17:21:20 +02:00
use_self.rs Move use_self to nursery 2019-11-29 07:51:49 +01:00
vec.rs Add BorrowKind::Ref 2019-11-27 14:39:28 -08:00
wildcard_dependencies.rs Use lint pass macros 2019-04-17 09:35:22 -07:00
write.rs Rustup to rustc 1.41.0-nightly (a0d40f8bd 2019-11-18) 2019-11-18 23:49:58 -08:00
zero_div_zero.rs Rustup to rust-lang/rust#64813 2019-09-27 17:21:20 +02:00