rust/clippy_lints/src
bors d509b5afef Auto merge of #4274 - daxpedda:implicit_return_fixes, r=flip1995
false positives fixes of `implicit_return`

-  Handle returning macro statements properly (remove "this error originates in a macro outside of the current crate")
-  Handle functions that return never type
-  Handle functions that panic but do not return never type

changelog: Fix false positives in `implicit_return` lint pertaining to macros and panics
2019-07-18 18:20:40 +00:00
..
methods Rename hir::map::local_def_id_from_hir_id to local_def_id 2019-07-06 10:52:51 +07:00
utils Rustup macro expansion and resolution 2019-07-12 00:26:36 +07:00
approx_const.rs Dogfood 2019-05-18 01:42:15 +02:00
arithmetic.rs
assertions_on_constants.rs Prevent symbocalypse 2019-05-17 23:53:54 +02:00
assign_ops.rs Fix warnings about unnecessary lifetime bounds 2019-06-20 01:36:23 +07:00
attrs.rs Typos and minor grammar corrections 2019-06-12 20:07:10 +02:00
bit_mask.rs
blacklisted_name.rs
block_in_if_condition.rs Fix warnings about unnecessary lifetime bounds 2019-06-20 01:36:23 +07:00
booleans.rs Fix breakage due to rust-lang/rust#61968 2019-06-21 08:14:07 +02:00
bytecount.rs Prevent symbocalypse 2019-05-17 23:53:54 +02:00
cargo_common_metadata.rs
checked_conversions.rs Removed symbols again. 2019-05-18 10:54:03 +02:00
cognitive_complexity.rs Rename hir::map::local_def_id_from_hir_id to local_def_id 2019-07-06 10:52:51 +07:00
collapsible_if.rs Fix fallout from rust-lang/rust PR 60861. 2019-06-23 17:24:45 +02:00
consts.rs Remove needless lifetimes 2019-06-21 14:41:19 +02:00
copies.rs Fix match_same_arms false negative 2019-07-02 08:18:55 +02:00
copy_iterator.rs Rename hir::map::local_def_id_from_hir_id to local_def_id 2019-07-06 10:52:51 +07:00
dbg_macro.rs Prevent symbocalypse 2019-05-17 23:53:54 +02:00
default_trait_access.rs Prevent symbocalypse 2019-05-17 23:53:54 +02:00
deprecated_lints.rs
derive.rs Rename hir::map::local_def_id_from_hir_id to local_def_id 2019-07-06 10:52:51 +07:00
doc.rs Prevent symbocalypse 2019-05-17 23:53:54 +02:00
double_comparison.rs Format code 2019-07-18 17:23:22 +02:00
double_parens.rs Rename in_macro to in_macro_or_desugar 2019-05-11 21:39:02 -07:00
drop_bounds.rs Prevent symbocalypse 2019-05-17 23:53:54 +02:00
drop_forget_ref.rs Prevent symbocalypse 2019-05-17 23:53:54 +02:00
duration_subsec.rs Prevent symbocalypse 2019-05-17 23:53:54 +02:00
else_if_without_else.rs
empty_enum.rs Rename hir::map::local_def_id_from_hir_id to local_def_id 2019-07-06 10:52:51 +07:00
entry.rs Fix warnings about unnecessary lifetime bounds 2019-06-20 01:36:23 +07:00
enum_clike.rs Rustup to rustc 1.36.0-nightly (2268d9923 2019-05-26) 2019-05-26 16:47:26 +02:00
enum_glob_use.rs rustup https://github.com/rust-lang/rust/pull/61836/ 2019-06-18 11:15:47 +02:00
enum_variants.rs Rustup to rustc 1.36.0-nightly (dbfe70dfc 2019-05-22) 2019-05-21 21:58:27 -07:00
eq_op.rs Rename in_macro to in_macro_or_desugar 2019-05-11 21:39:02 -07:00
erasing_op.rs Rename in_macro to in_macro_or_desugar 2019-05-11 21:39:02 -07:00
escape.rs Rename hir::map::local_def_id_from_hir_id to local_def_id 2019-07-06 10:52:51 +07:00
eta_reduction.rs redundant_closure_for_method_calls fixes: 2019-06-12 13:43:36 +02:00
eval_order_dependence.rs find_by_hir_id -> find 2019-06-25 14:34:07 -07:00
excessive_precision.rs
explicit_write.rs Prevent symbocalypse 2019-05-17 23:53:54 +02:00
fallible_impl_from.rs Rename hir::map::local_def_id_from_hir_id to local_def_id 2019-07-06 10:52:51 +07:00
format.rs Remove wrong lifetime from LintContext 2019-06-12 10:28:52 +02:00
formatting.rs Simplify unsugar_if to just an if expr check 2019-06-24 09:51:53 +02:00
functions.rs fmt 2019-06-25 14:41:10 -07:00
get_last_with_len.rs Formatting inside if_chain! macro 2019-05-21 10:45:38 +02:00
identity_conversion.rs Fix dogfood test failures. 2019-06-24 04:00:05 +02:00
identity_op.rs Rename in_macro to in_macro_or_desugar 2019-05-11 21:39:02 -07:00
if_not_else.rs
implicit_return.rs Improved imports 2019-07-17 20:44:09 +02:00
indexing_slicing.rs Typos and minor grammar corrections 2019-06-12 20:07:10 +02:00
infallible_destructuring_match.rs
infinite_iter.rs Dogfood 2019-05-18 01:42:15 +02:00
inherent_impl.rs Fix breakage due to rust-lang/rust#61968 2019-06-21 08:14:07 +02:00
inherent_to_string.rs Corrections for PR review. 2019-07-17 08:58:36 +02:00
inline_fn_without_body.rs Prevent symbocalypse 2019-05-17 23:53:54 +02:00
int_plus_one.rs
integer_division.rs Downgrade integer_division to restriction 2019-06-15 00:17:04 -07:00
invalid_ref.rs update tests and fix lints in clippy 2019-06-21 14:17:59 +02:00
items_after_statements.rs Rename in_macro to in_macro_or_desugar 2019-05-11 21:39:02 -07:00
large_enum_variant.rs Rename hir::map::local_def_id_from_hir_id to local_def_id 2019-07-06 10:52:51 +07:00
len_zero.rs Rename hir::map::local_def_id_from_hir_id to local_def_id 2019-07-06 10:52:51 +07:00
let_if_seq.rs Fix warnings about unnecessary lifetime bounds 2019-06-20 01:36:23 +07:00
lib.rs Implement lint for inherent to_string() method. 2019-07-17 08:58:32 +02:00
lifetimes.rs Fix warnings about unnecessary lifetime bounds 2019-06-20 01:36:23 +07:00
literal_representation.rs Add macro check for unreadable_literal lint 2019-05-15 14:57:56 +02:00
loops.rs rustfmt 2019-07-06 19:43:34 +02:00
map_clone.rs Prevent symbocalypse 2019-05-17 23:53:54 +02:00
map_unit_fn.rs Prevent symbocalypse 2019-05-17 23:53:54 +02:00
matches.rs Fix warnings about unnecessary lifetime bounds 2019-06-20 01:36:23 +07:00
mem_discriminant.rs Prevent symbocalypse 2019-05-17 23:53:54 +02:00
mem_forget.rs Prevent symbocalypse 2019-05-17 23:53:54 +02:00
mem_replace.rs Prevent symbocalypse 2019-05-17 23:53:54 +02:00
minmax.rs Prevent symbocalypse 2019-05-17 23:53:54 +02:00
misc_early.rs Rustup to rustc 1.36.0-nightly (fe0a415b4 2019-04-23) 2019-04-23 08:25:45 -07:00
misc.rs Lint 2019-07-15 14:00:07 -05:00
missing_const_for_fn.rs Rename hir::map::local_def_id_from_hir_id to local_def_id 2019-07-06 10:52:51 +07:00
missing_doc.rs Rename hir::map::local_def_id_from_hir_id to local_def_id 2019-07-06 10:52:51 +07:00
missing_inline.rs Rename hir::map::local_def_id_from_hir_id to local_def_id 2019-07-06 10:52:51 +07:00
multiple_crate_versions.rs
mut_mut.rs Fix warnings about unnecessary lifetime bounds 2019-06-20 01:36:23 +07:00
mut_reference.rs
mutex_atomic.rs Prevent symbocalypse 2019-05-17 23:53:54 +02:00
needless_bool.rs get_parent_node_by_hir_id -> get_parent_node 2019-06-25 14:33:51 -07:00
needless_borrow.rs Prevent symbocalypse 2019-05-17 23:53:54 +02:00
needless_borrowed_ref.rs Rename in_macro to in_macro_or_desugar 2019-05-11 21:39:02 -07:00
needless_continue.rs Pacify rustfmt. 2019-06-24 04:54:23 +02:00
needless_pass_by_value.rs Rename hir::map::local_def_id_from_hir_id to local_def_id 2019-07-06 10:52:51 +07:00
needless_update.rs
neg_cmp_op_on_partial_ord.rs Prevent symbocalypse 2019-05-17 23:53:54 +02:00
neg_multiply.rs
new_without_default.rs Rename hir::map::local_def_id_from_hir_id to local_def_id 2019-07-06 10:52:51 +07:00
no_effect.rs Rename in_macro to in_macro_or_desugar 2019-05-11 21:39:02 -07:00
non_copy_const.rs find_by_hir_id -> find 2019-06-25 14:34:07 -07:00
non_expressive_names.rs update tests and fix lints in clippy 2019-06-21 14:17:59 +02:00
ok_if_let.rs Prevent symbocalypse 2019-05-17 23:53:54 +02:00
open_options.rs Prevent symbocalypse 2019-05-17 23:53:54 +02:00
overflow_check_conditional.rs
panic_unimplemented.rs rustup https://github.com/rust-lang/rust/pull/61995 2019-07-03 18:00:35 +02:00
partialeq_ne_impl.rs Prevent symbocalypse 2019-05-17 23:53:54 +02:00
path_buf_push_overwrite.rs Prevent symbocalypse 2019-05-17 23:53:54 +02:00
precedence.rs Rename in_macro to in_macro_or_desugar 2019-05-11 21:39:02 -07:00
ptr_offset_with_cast.rs Prevent symbocalypse 2019-05-17 23:53:54 +02:00
ptr.rs Rename hir::map::local_def_id_from_hir_id to local_def_id 2019-07-06 10:52:51 +07:00
question_mark.rs rustup https://github.com/rust-lang/rust/pull/61995 2019-07-03 18:00:35 +02:00
ranges.rs Make use of new outer_expn_info() function 2019-06-01 16:25:51 +07:00
redundant_clone.rs rustup https://github.com/rust-lang/rust/pull/60928 2019-05-29 00:41:34 +02:00
redundant_field_names.rs
redundant_pattern_matching.rs rustup https://github.com/rust-lang/rust/pull/61995 2019-07-03 18:00:35 +02:00
redundant_static_lifetimes.rs Rename REDUNDANT_STATIC_LIFETIME to REDUNDANT_STATIC_LIFETIMES. 2019-06-14 10:45:03 +02:00
reference.rs
regex.rs Prevent symbocalypse 2019-05-17 23:53:54 +02:00
replace_consts.rs Remove lint for ONCE_INIT 2019-07-06 12:34:32 +07:00
returns.rs Rustup macro expansion and resolution 2019-07-12 00:26:36 +07:00
serde_api.rs Prevent symbocalypse 2019-05-17 23:53:54 +02:00
shadow.rs Fix breakage due to rust-lang/rust#61988 2019-07-06 19:06:49 +02:00
slow_vector_initialization.rs Fix warnings about unnecessary lifetime bounds 2019-06-20 01:36:23 +07:00
strings.rs Extract semantic constant 2019-07-08 17:51:13 -03:00
suspicious_trait_impl.rs get_parent_node_by_hir_id -> get_parent_node 2019-06-25 14:33:51 -07:00
swap.rs Prevent symbocalypse 2019-05-17 23:53:54 +02:00
temporary_assignment.rs Rustup to rustc 1.36.0-nightly (13fde05b1 2019-05-03) 2019-05-03 22:28:34 -07:00
transmute.rs Prevent symbocalypse 2019-05-17 23:53:54 +02:00
transmuting_null.rs Prevent symbocalypse 2019-05-17 23:53:54 +02:00
trivially_copy_pass_by_ref.rs Rename hir::map::local_def_id_from_hir_id to local_def_id 2019-07-06 10:52:51 +07:00
try_err.rs Making try_err machine applicable 2019-06-24 21:28:46 -04:00
types.rs Auto merge of #4268 - mikerite:fix-4260, r=flip1995 2019-07-13 08:59:12 +00:00
unicode.rs Fix tests and make other ascii lints auto-fixable 2019-05-20 16:02:50 +02:00
unsafe_removed_from_name.rs
unused_io_amount.rs Prevent symbocalypse 2019-05-17 23:53:54 +02:00
unused_label.rs Fix breakage due to rust-lang/rust#61988 2019-07-06 19:06:49 +02:00
unwrap.rs Fix warnings about unnecessary lifetime bounds 2019-06-20 01:36:23 +07:00
use_self.rs Rename hir::map::local_def_id_from_hir_id to local_def_id 2019-07-06 10:52:51 +07:00
vec.rs Make use of new outer_expn_info() function 2019-06-01 16:25:51 +07:00
wildcard_dependencies.rs
write.rs rustup https://github.com/rust-lang/rust/pull/61758/files 2019-06-12 10:28:58 +02:00
zero_div_zero.rs