about summary refs log tree commit diff
path: root/clippy_lints/src/casts
AgeCommit message (Expand)AuthorLines
2022-04-28use non-panicking snippet, use struct update syntax and add commentasquared31415-10/+8
2022-04-24remove extra lifetimeasquared31415-5/+4
2022-04-23fix ICE by using a type to return the info we want and also fix some bugs in ...asquared31415-40/+69
2022-04-18fix ICEasquared31415-1/+1
2022-04-16Auto merge of #8706 - lupd:cast-abs-to-unsigned, r=xFrednetbors-0/+1
2022-04-15adding spell checkingwhodi-1/+1
2022-04-15Fix formatting of `cast_abs_to_unsigned` docsdlup-0/+1
2022-04-11Fix subtraction overflow in `cast_possible_truncation`Alex Macleod-11/+9
2022-04-07new lint cast_abs_to_unsignedPaolo Borelli-1/+68
2022-04-06Auto merge of #8596 - Jaic1:unnecessary_cast, r=flip1995bors-1/+13
2022-04-04Don't lint `cast_ptr_alignment` when used for unaligned reads and writesJason Newcomb-34/+66
2022-03-28First submitJaic1-1/+13
2022-03-17Add lint `cast_enum_constructor`Jason Newcomb-0/+42
2022-03-14Merge remote-tracking branch 'upstream/master' into rustupflip1995-0/+165
2022-03-11Improve `AdtDef` interning.Nicholas Nethercote-6/+6
2022-03-04lint for casting raw pointers to slices with different element sizesasquared31415-0/+165
2022-02-26Merge commit 'e329249b6a3a98830d860c74c8234a8dd9407436' into clippyupflip1995-33/+133
2022-02-18Allow various type erasure patterns in `transmute_undefined_repr`Jason Newcomb-17/+1
2022-02-18Extract some util functionsJason Newcomb-62/+10
2022-02-18New lint `cast_enum_truncation`Jason Newcomb-48/+133
2022-02-18Lint enum-to-int casts with `cast_possible_truncation`Jason Newcomb-14/+94
2022-02-17trigger ptr_as_ptr inside macrosRodrigo Mantini-1/+4
2022-01-27Merge commit 'a98e7ab8b94485be6bd03e0c6b8682ecab5b52e6' into clippyupflip1995-8/+3
2022-01-27Merge remote-tracking branch 'upstream/master' into rustupflip1995-8/+3
2022-01-26fix bad suggestion on `numeric_literal`Dharma Saputra Wijaya-8/+3
2022-01-21Remove a span from hir::ExprKind::MethodCallCameron Steffen-6/+6
2022-01-13Merge commit '97a5daa65908e59744e2bc625b14849352231c75' into clippyupflip1995-4/+4
2022-01-11Stop using in_band_lifetimesCameron Steffen-4/+4
2021-12-30Merge commit '0eff589afc83e21a03a168497bbab6b4dfbb4ef6' into clippyupflip1995-2/+3
2021-12-25fix an ICE on unwrapping a NoneAndre Bogus-2/+3
2021-12-06Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyupflip1995-15/+55
2021-11-12Auto merge of #7948 - 5225225:castlosslessbool, r=llogiqbors-15/+42
2021-11-12Change cast_lossless message for bools only5225225-4/+13
2021-11-10Added `clippy::version` attribute to all normal lintsxFrednet-0/+13
2021-11-09Check MSRV for bool to int from impl5225225-6/+20
2021-11-09Lint for bool to integer casts in `cast_lossless`5225225-6/+10
2021-11-04Merge commit 'e18101137866b79045fee0ef996e696e68c920b4' into clippyupflip1995-4/+77
2021-10-29avoid linting `possible_truncation` on bit-reducing operationsAndre Bogus-8/+73
2021-10-21Do not lint when cast is coming from `signum` method callThibsG-3/+11
2021-10-21Merge commit '91496c2ac6abf6454c413bb23e8becf6b6dc20ea' into clippyupflip1995-0/+73
2021-10-07Restriction lint for function pointer castsMichael Sproul-0/+73
2021-10-07Merge commit 'b7f3f7f6082679da2da9a0b3faf1b5adef3afd3b' into clippyupflip1995-1/+1
2021-10-04Implement equatable if let linthkalbasi-1/+1
2021-09-08Merge commit '27afd6ade4bb1123a8bf82001629b69d23d62aff' into clippyupflip1995-2/+2
2021-09-08Merge remote-tracking branch 'upstream/master' into rustupflip1995-2/+2
2021-09-05Avoid slice indexing in Clippy (down with the ICEs)xFrednet-2/+2
2021-09-02rustc_target: move `LayoutOf` to `ty::layout`.Eduard-Mihai Burtescu-1/+1
2021-07-29Merge commit '0cce3f643bfcbb92d5a1bb71858c9cbaff749d6b' into clippyupflip1995-58/+58
2021-07-28Update lint documentation to use markdown headlinesxFrednet-58/+58
2021-06-03Merge commit '3ae8faff4d46ad92f194c2a4b941c3152a701b31' into clippyupflip1995-1/+1