about summary refs log tree commit diff
path: root/clippy_lints/src/casts
AgeCommit message (Expand)AuthorLines
2022-08-19Move `BorrowAsPtr` into `Casts` lint passJason Newcomb-1/+77
2022-08-19Move `AsUnderscore` into `Casts` lint passJason Newcomb-3/+60
2022-08-04Fix cast_abs_to_unsigned generates non-compiling code when original code is i...alex-semenyuk-1/+1
2022-07-03Correct `[clippy::version]` for 1.62 lints and add note to docsxFrednet-1/+1
2022-06-09Correct some `#[clippy::version]`sAlex Macleod-2/+2
2022-06-06Suppress `unused` in doc examplesSerial-12/+6
2022-06-05Improve lint doc consistencySerial-16/+30
2022-06-04Merge remote-tracking branch 'upstream/master' into rustupPhilipp Krones-22/+24
2022-05-23Lifetime variance fixes for clippyMichael Goulet-6/+6
2022-05-23cast_abs_to_unsigned: do not remove cast if it's requiredAlex Macleod-22/+24
2022-05-21Merge 'rust-clippy/master' into clippyupxFrednet-17/+18
2022-05-13Tweak some words improved representationydah-2/+2
2022-05-08Pass msrvs by copySamuel E. Moelius III-14/+14
2022-05-06Auto merge of #8778 - sunfishcode:main, r=giraffatebors-1/+1
2022-05-05Added missing `### What it does`Federico Martinez-0/+1
2022-05-05Merge commit '7c21f91b15b7604f818565646b686d90f99d1baf' into clippyupflip1995-54/+79
2022-05-02Fix `cast_lossless` to avoid warning on `usize` to `f64` conversion.Dan Gohman-1/+1
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-08Merge commit '984330a6ee3c4d15626685d6dc8b7b759ff630bd' into clippyupflip1995-36/+147
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-24Merge commit 'd0cf3481a84e3aa68c2f185c460e282af36ebc42' into clippyupflip1995-0/+42
2022-03-17Add lint `cast_enum_constructor`Jason Newcomb-0/+42
2022-03-14Merge commit 'dc5423ad448877e33cca28db2f1445c9c4473c75' into clippyupflip1995-0/+165
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