• aggligator-util 0.3.1/src/speed.rs
    107
            #[allow(clippy::assertions_on_constants)]
    108
            while limit.map(|limit| sent_total <= limit).unwrap_or(true)
  • amethyst_rendy 0.15.3/src/sprite/prefab.rs
    319
        #[test]
    320
        #[allow(clippy::assertions_on_constants)]
    321
        fn sprite_sheet_prefab() {
  • arranged 0.1.2/src/range/inclusive/unit_tests/ri_i128/end.rs
    6
    #[test]
    7
    #[allow(clippy::assertions_on_constants)]
    8
    const fn returns_expected_value() {
  • arranged 0.1.2/src/range/inclusive/unit_tests/ri_i128/into_iter.rs
    7
    #[test]
    8
    #[allow(clippy::assertions_on_constants, clippy::items_after_statements)]
    9
    fn returns_expected_iterator() {
  • arranged 0.1.2/src/range/inclusive/unit_tests/ri_i128/start.rs
    6
    #[test]
    7
    #[allow(clippy::assertions_on_constants)]
    8
    const fn returns_expected_value() {
  • arranged 0.1.2/src/range/inclusive/unit_tests/ri_i16/end.rs
    6
    #[test]
    7
    #[allow(clippy::assertions_on_constants)]
    8
    const fn returns_expected_value() {
  • arranged 0.1.2/src/range/inclusive/unit_tests/ri_i16/into_iter.rs
    7
    #[test]
    8
    #[allow(clippy::assertions_on_constants, clippy::items_after_statements)]
    9
    fn returns_expected_iterator() {
  • arranged 0.1.2/src/range/inclusive/unit_tests/ri_i16/start.rs
    6
    #[test]
    7
    #[allow(clippy::assertions_on_constants)]
    8
    const fn returns_expected_value() {
  • arranged 0.1.2/src/range/inclusive/unit_tests/ri_i32/end.rs
    6
    #[test]
    7
    #[allow(clippy::assertions_on_constants)]
    8
    const fn returns_expected_value() {
  • arranged 0.1.2/src/range/inclusive/unit_tests/ri_i32/into_iter.rs
    7
    #[test]
    8
    #[allow(clippy::assertions_on_constants, clippy::items_after_statements)]
    9
    fn returns_expected_iterator() {
  • arranged 0.1.2/src/range/inclusive/unit_tests/ri_i32/start.rs
    6
    #[test]
    7
    #[allow(clippy::assertions_on_constants)]
    8
    const fn returns_expected_value() {
  • arranged 0.1.2/src/range/inclusive/unit_tests/ri_i64/end.rs
    6
    #[test]
    7
    #[allow(clippy::assertions_on_constants)]
    8
    const fn returns_expected_value() {
  • arrow-buffer 32.0.0/src/util/bit_chunk_iterator.rs
    467
        #[test]
    468
        #[allow(clippy::assertions_on_constants)]
    469
        fn test_unaligned_bit_chunk_iterator() {
  • asynchronix 0.1.0/src/model/ports/broadcaster/task_set.rs
    54
        /// which notifier is provided.
    55
        #[allow(clippy::assertions_on_constants)]
    56
        pub(super) fn new(notifier: WakeSource) -> Self {
  • asynchronix 0.1.0/src/util/bit.rs
    30
    /// in the binary search but was found to be slower than the tree-of-adders.
    31
    #[allow(clippy::assertions_on_constants)]
    32
    pub(crate) fn find_bit<F: FnOnce(usize) -> usize>(value: usize, rank_fn: F) -> usize {
    107
    /// ```
    108
    #[allow(clippy::assertions_on_constants)]
    109
    const fn sum_masks() -> [usize; usize::BITS.trailing_zeros() as usize] {
  • bee-crypto 0.3.0/src/ternary/sponge/curlp/batched/bct_curlp.rs
    21
    impl BctCurlP {
    22
        #[allow(clippy::assertions_on_constants)]
    23
        pub(crate) fn new(rounds: CurlPRounds) -> Self {
  • bit-struct 0.3.0/tests/integration.rs
    60
    #[test]
    61
    #[allow(clippy::assertions_on_constants)]
    62
    fn test_always_valid_enum() {
  • casper-execution-engine 2.0.1/src/core/runtime_context/tests.rs
    146
    #[allow(clippy::assertions_on_constants)]
    147
    fn assert_forged_reference<T>(result: Result<T, Error>) {
    154
    #[allow(clippy::assertions_on_constants)]
    155
    fn assert_invalid_access<T: std::fmt::Debug>(result: Result<T, Error>, expecting: AccessRights) {
  • casper-execution-engine 2.0.1/src/storage/trie/mod.rs
    325
    impl ::std::fmt::Debug for PointerBlock {
    326
        #[allow(clippy::assertions_on_constants)]
    327
        fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
  • casper-node 1.4.8/src/utils/ds.rs
    85
    #[cfg(test)]
    86
    #[allow(clippy::assertions_on_constants)] // used by sanity checks around `SAMPLE_SIZE`
    87
    mod tests {
  • casperlabs-engine-core 0.7.1/src/runtime_context/tests.rs
    143
    #[allow(clippy::assertions_on_constants)]
    144
    fn assert_forged_reference<T>(result: Result<T, Error>) {
    151
    #[allow(clippy::assertions_on_constants)]
    152
    fn assert_invalid_access<T: std::fmt::Debug>(result: Result<T, Error>, expecting: AccessRights) {
  • casperlabs-engine-storage 0.7.1/src/trie/mod.rs
    193
    impl ::std::fmt::Debug for PointerBlock {
    194
        #[allow(clippy::assertions_on_constants)]
    195
        fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
  • cbe-program 1.15.0/src/sysvar/recent_blockhashes.rs
    167
        #[test]
    168
        #[allow(clippy::assertions_on_constants)]
    169
        fn test_sysvar_can_hold_all_active_blockhashes() {
  • cbe-program-runtime 1.15.0/src/executor_cache.rs
    274
            const PRIMER_COUNT_TARGET_PERCENTILE: u64 = 85;
    275
            #[allow(clippy::assertions_on_constants)]
    276
            {
  • cfg-if 1.0.0/src/lib.rs
    142
        #[test]
    143
        #[allow(clippy::assertions_on_constants)]
    144
        fn test_usage_within_a_function() {
  • const_fixedp 0.1.1/src/lib.rs
    962
            #[test]
    963
            #[allow(clippy::assertions_on_constants)]
    964
            fn frac_missing_right_zeroes() {
    972
            #[test]
    973
            #[allow(clippy::assertions_on_constants)]
    974
            fn frac_including_left_zeroes() -> Result<(), Box<dyn std::error::Error>> {
    985
            #[test]
    986
            #[allow(clippy::assertions_on_constants)]
    987
            fn frac_out_of_range() -> Result<(), Box<dyn std::error::Error>> {
  • const_fixedp 0.1.1/src/serde.rs
    101
            #[test]
    102
            #[allow(clippy::assertions_on_constants)]
    103
            fn frac_out_of_range() -> Result<(), Box<dyn std::error::Error>> {
    123
            #[test]
    124
            #[allow(clippy::assertions_on_constants)]
    125
            fn integer_out_of_range() -> Result<(), Box<dyn std::error::Error>> {
    145
            #[test]
    146
            #[allow(clippy::assertions_on_constants)]
    147
            fn negative() -> Result<(), Box<dyn std::error::Error>> {
  • croaring 0.7.0/src/bitmap/imp.rs
    9
        #[inline]
    10
        #[allow(clippy::assertions_on_constants)]
    11
        unsafe fn take_heap(p: *mut roaring_bitmap_t) -> Self {
  • croaring 0.7.0/src/bitmap/ops.rs
    64
    impl Drop for Bitmap {
    65
        #[allow(clippy::assertions_on_constants)]
    66
        fn drop(&mut self) {
  • crumsort 0.1.0/src/lib.rs
    45
    #[allow(clippy::assertions_on_constants)]
    46
    const _: () = assert!(2 * CRUM_CHUNK_SIZE <= SWAP_SIZE);
  • cursed-collections 0.8.3/src/symbol_table.rs
    10
    #[allow(clippy::assertions_on_constants)]
    11
    const _: () = assert!(
  • d3_geo_rs 0.1.5/src/path/context.rs
    129
                }
    130
                #[allow(clippy::assertions_on_constants)]
    131
                PointState::Init => {
  • d3_geo_voronoi_rs 0.1.2/tests/voronoi.rs
    622
                            };
    623
                            #[allow(clippy::assertions_on_constants)]
    624
                            if ((u.x - v.x).abs() < 1e-6 && (u.y - v.y).abs() < 1e-6)
  • domino_program 0.1.2/src/sysvar/recent_blockhashes.rs
    168
        #[test]
    169
        #[allow(clippy::assertions_on_constants)]
    170
        fn test_sysvar_can_hold_all_active_blockhashes() {
  • domino-program-dp 0.1.11/src/sysvar/recent_blockhashes.rs
    168
        #[test]
    169
        #[allow(clippy::assertions_on_constants)]
    170
        fn test_sysvar_can_hold_all_active_blockhashes() {
  • elrond-wasm-debug 0.38.0/tests/derive_managed_vec_item_biguint_test.rs
    21
    #[test]
    22
    #[allow(clippy::assertions_on_constants)]
    23
    fn struct_with_numbers_static() {
  • elrond-wasm-debug 0.38.0/tests/derive_managed_vec_item_esdt_token_payment_test.rs
    25
    #[test]
    26
    #[allow(clippy::assertions_on_constants)]
    27
    fn struct_with_numbers_static() {
  • elrond-wasm-debug 0.38.0/tests/derive_managed_vec_item_simple_enum.rs
    18
    #[test]
    19
    #[allow(clippy::assertions_on_constants)]
    20
    fn enum_static() {
  • elrond-wasm-debug 0.38.0/tests/derive_managed_vec_item_struct_1_test.rs
    20
    #[test]
    21
    #[allow(clippy::assertions_on_constants)]
    22
    fn struct_1_static() {
  • elrond-wasm-debug 0.38.0/tests/derive_managed_vec_item_struct_2_test.rs
    20
    #[test]
    21
    #[allow(clippy::assertions_on_constants)]
    22
    fn struct_2_static() {
  • ergotree-interpreter 0.22.0/src/sigma_protocol.rs
    113
        #[allow(clippy::assertions_on_constants)]
    114
        #[test]
  • esl01-dag 0.3.0/src/iddagstore/indexedlog_store.rs
    544
        #[allow(clippy::assertions_on_constants)]
    545
        pub fn log_open_options() -> log::OpenOptions {
  • fast-erasure-shake-rng 0.2.0/src/lib.rs
    239
    #[allow(clippy::assertions_on_constants)]
    240
    const _: () = assert!(LANES == RATE_LANES + 2 * CAPACITY_LANES);
  • gemachain-ledger 1.8.0/tests/shred.rs
    188
    #[allow(clippy::assertions_on_constants)]
    189
    fn setup_different_sized_fec_blocks(
  • gemachain-program 1.8.2/src/sysvar/recent_blockhashes.rs
    167
        #[test]
    168
        #[allow(clippy::assertions_on_constants)]
    169
        fn test_sysvar_can_hold_all_active_blockhashes() {
  • gemachain-runtime 1.8.2/src/status_cache.rs
    465
        #[test]
    466
        #[allow(clippy::assertions_on_constants)]
    467
        fn test_age_sanity() {
  • heph-rt 0.4.1/src/lib.rs
    257
    #[test]
    258
    #[allow(clippy::assertions_on_constants)] // This is the point of the test.
    259
    fn sync_worker_id() {
    264
    #[test]
    265
    #[allow(clippy::assertions_on_constants)] // This is the point of the test.
    266
    fn max_threads() {
  • imxrt-hal 0.5.0/src/chip/imxrt10xx/ccm/clock_gate.rs
    298
    #[allow(clippy::assertions_on_constants)]
    299
    const _: () = assert!(ral::SOLE_INSTANCE == 0u8);
  • imxrt-hal 0.5.0/src/common/flexpwm.rs
    255
            #[allow(clippy::assertions_on_constants)]
    256
            {
    276
            #[allow(clippy::assertions_on_constants)]
    277
            {
  • iota-crypto 0.15.3/src/hashes/ternary/curl_p/batched/bct_curlp.rs
    21
    impl BctCurlP {
    22
        #[allow(clippy::assertions_on_constants)]
    23
        pub(crate) fn new() -> Self {
  • krecik 1.0.4/src/tests.rs
    1
    #[allow(unused_imports, clippy::unit_arg, clippy::assertions_on_constants)]
    2
    #[cfg(test)]
  • lexical-util 0.8.5/src/noskip.rs
    109
        #[inline]
    110
        #[allow(clippy::assertions_on_constants)]
    111
        pub unsafe fn read_unchecked<V>(&self) -> V {
    191
        #[inline]
    192
        #[allow(clippy::assertions_on_constants)]
    193
        pub unsafe fn step_by_unchecked(&mut self, count: usize) {
    204
        #[inline]
    205
        #[allow(clippy::assertions_on_constants)]
    206
        pub unsafe fn step_unchecked(&mut self) {
  • libp2prs-multiaddr 0.3.0/tests/lib.rs
    420
    #[test]
    421
    #[allow(clippy::assertions_on_constants)]
    422
    fn unknown_protocol_string() {
  • lokacore 0.3.0/tests/branchless.rs
    30
    #[allow(clippy::bad_bit_mask)]
    31
    #[allow(clippy::assertions_on_constants)]
    32
    fn test_branchless_pow_of_2_or_zero() {
  • lzfse_rust 0.1.0/src/decode/reader_core.rs
    35
    impl<'a, I: for<'b> ByteReader<'b>> ReaderCore<'a, I> {
    36
        #[allow(clippy::assertions_on_constants)]
    37
        pub fn new(ring: RingLzWriter<'a, Sink, Output>, inner: I, fse_core: &'a mut FseCore) -> Self {
  • lzfse_rust 0.1.0/src/encode/history.rs
    52
    impl History {
    53
        #[allow(clippy::assertions_on_constants)]
    54
        #[inline(always)]
  • lzfse_rust 0.1.0/src/fse/constants.rs
    386
        #[allow(clippy::assertions_on_constants)]
    387
        #[test]
    411
        #[allow(clippy::assertions_on_constants)]
    412
        #[test]
    436
        #[allow(clippy::assertions_on_constants)]
    437
        #[test]
    462
        #[allow(clippy::assertions_on_constants)]
    463
        #[test]
  • lzfse_rust 0.1.0/src/fse/weights.rs
    136
        #[allow(clippy::assertions_on_constants)]
    137
        pub fn store_v2(&self, dst: &mut [u8]) -> u32 {
  • lzfse_rust 0.1.0/src/ring/ring_short_writer.rs
    37
    impl<'a, O, T: RingBlock> RingShortWriter<'a, O, T> {
    38
        #[allow(clippy::assertions_on_constants)]
    39
        pub fn new(ring: Ring<'a, T>, inner: O) -> Self {
  • lzfse_rust 0.1.0/src/vn/vn_core.rs
    74
        #[allow(clippy::assertions_on_constants)]
    75
        #[inline(always)]
  • maikor-platform 0.1.29/src/mem.rs
    176
        #[test]
    177
        #[allow(clippy::assertions_on_constants)] //these are used as safe guards against changes
    178
        fn test_values() {
  • mmtk 0.16.0/src/policy/immix/block.rs
    113
        /// Get the address range of the block's line mark table.
    114
        #[allow(clippy::assertions_on_constants)]
    115
        #[inline(always)]
    197
        /// Get the range of lines within the block.
    198
        #[allow(clippy::assertions_on_constants)]
    199
        #[inline(always)]
  • mmtk 0.16.0/src/policy/immix/defrag.rs
    105
        /// Prepare work. Should be called in ImmixSpace::prepare.
    106
        #[allow(clippy::assertions_on_constants)]
    107
        pub fn prepare<VM: VMBinding>(&self, space: &ImmixSpace<VM>) {
    198
        /// Release work. Should be called in ImmixSpace::release.
    199
        #[allow(clippy::assertions_on_constants)]
    200
        pub fn release<VM: VMBinding>(&self, _space: &ImmixSpace<VM>) {
  • mmtk 0.16.0/src/policy/immix/immixspace.rs
    479
        /// Trace object and do evacuation if required.
    480
        #[allow(clippy::assertions_on_constants)]
    481
        #[inline(always)]
    551
        /// Mark all the lines that the given object spans.
    552
        #[allow(clippy::assertions_on_constants)]
    553
        #[inline]
    616
        /// Returns None if the search could not find any more holes.
    617
        #[allow(clippy::assertions_on_constants)]
    618
        pub fn get_next_available_lines(&self, search_start: Line) -> Option<(Line, Line)> {
  • mmtk 0.16.0/src/policy/immix/line.rs
    17
        #[inline(always)]
    18
        #[allow(clippy::assertions_on_constants)] // make sure line is not used when BLOCK_ONLY is turned on.
    19
        fn from_aligned_address(address: Address) -> Self {
    31
    #[allow(clippy::assertions_on_constants)]
    32
    impl Line {
  • mmtk 0.16.0/src/policy/marksweepspace/malloc_ms/global.rs
    199
        #[allow(clippy::assertions_on_constants)]
    200
        fn reserved_pages(&self) -> usize {
  • multiversx-chain-vm 0.1.4/tests/derive_managed_vec_item_biguint_test.rs
    21
    #[test]
    22
    #[allow(clippy::assertions_on_constants)]
    23
    fn struct_with_numbers_static() {
  • multiversx-chain-vm 0.1.4/tests/derive_managed_vec_item_esdt_token_payment_test.rs
    25
    #[test]
    26
    #[allow(clippy::assertions_on_constants)]
    27
    fn struct_with_numbers_static() {
  • multiversx-chain-vm 0.1.4/tests/derive_managed_vec_item_simple_enum.rs
    18
    #[test]
    19
    #[allow(clippy::assertions_on_constants)]
    20
    fn enum_static() {
  • multiversx-chain-vm 0.1.4/tests/derive_managed_vec_item_struct_1_test.rs
    20
    #[test]
    21
    #[allow(clippy::assertions_on_constants)]
    22
    fn struct_1_static() {
  • multiversx-chain-vm 0.1.4/tests/derive_managed_vec_item_struct_2_test.rs
    20
    #[test]
    21
    #[allow(clippy::assertions_on_constants)]
    22
    fn struct_2_static() {
  • packedtime-rs 0.2.3/src/format.rs
    7
    #[allow(clippy::assertions_on_constants)]
    8
    const _: () = {
  • packedtime-rs 0.2.3/src/packed.rs
    33
    #[allow(clippy::assertions_on_constants)]
    34
    const _: () = {
  • parity-db 0.4.3/src/index.rs
    29
    #[allow(clippy::assertions_on_constants)]
    30
    const _: () = assert!(META_SIZE >= HEADER_SIZE + stats::TOTAL_SIZE);
  • plonky2_ecdsa 0.1.0/src/curve/curve_multiplication.rs
    85
    #[allow(clippy::assertions_on_constants)]
    86
    fn to_digits<C: Curve>(x: &C::ScalarField) -> Vec<u64> {
  • poem-openapi 2.0.23/src/types/mod.rs
    434
        #[test]
    435
        #[allow(clippy::assertions_on_constants)]
    436
        fn arc_type() {
    464
        #[test]
    465
        #[allow(clippy::assertions_on_constants)]
    466
        fn box_type() {
  • prexel 0.1.9/src/decimal/decimal_ext.rs
    225
        #[allow(clippy::assertions_on_constants)]
    226
        fn checked_exp(self) -> Option<Decimal> {
  • redb 0.12.1/src/tree_store/page_store/header.rs
    107
        ) -> Self {
    108
            #[allow(clippy::assertions_on_constants)]
    109
            {
  • regress 0.4.1/src/emit.rs
    245
                #[allow(clippy::assertions_on_constants)]
    246
                Node::ByteSequence(bytes) => {
  • rel-ptr 0.2.3/src/unreachable.rs
    10
        #[allow(clippy::assertions_on_constants)]
    11
        unsafe fn unchecked_unwrap(self) -> T {
  • rspl 0.1.1/examples/hics.rs
    236
    #[allow(clippy::assertions_on_constants)]
    237
    fn driver(hics: Hics) {
  • ruzstd 0.3.0/src/decoding/ringbuffer.rs
    61
            // we are on a >= 64 bit system which will never allow that much memory to be allocated
    62
            #[allow(clippy::assertions_on_constants)]
    63
            {
  • s2n-quic-transport 0.16.0/src/recovery/manager/tests.rs
    3013
    //# [RFC5681].
    3014
    #[allow(clippy::assertions_on_constants)]
    3015
    #[test]
  • safecoin-ledger 1.6.16/tests/shred.rs
    187
    #[allow(clippy::assertions_on_constants)]
    188
    fn setup_different_sized_fec_blocks(
  • safecoin-program 1.14.3/src/sysvar/recent_blockhashes.rs
    149
        #[test]
    150
        #[allow(clippy::assertions_on_constants)]
    151
        fn test_sysvar_can_hold_all_active_blockhashes() {
  • safecoin-runtime 1.14.3/src/bank.rs
    548
            const PRIMER_COUNT_TARGET_PERCENTILE: u64 = 85;
    549
            #[allow(clippy::assertions_on_constants)]
    550
            {
  • safecoin-runtime 1.14.3/src/status_cache.rs
    475
        #[test]
    476
        #[allow(clippy::assertions_on_constants)]
    477
        fn test_age_sanity() {
  • sardonyx_rendy 0.0.3/src/sprite/prefab.rs
    317
        #[test]
    318
        #[allow(clippy::assertions_on_constants)]
    319
        fn sprite_sheet_prefab() {
  • slitter 0.1.0/src/linear_ref.rs
    32
        /// newly mapped pages).
    33
        #[allow(clippy::assertions_on_constants)]
    34
        #[requires(true, "`inner` must be unique (check manually)")]
    75
    impl Drop for LinearRef {
    76
        #[allow(clippy::assertions_on_constants)]
    77
        #[requires(false, "LinearRef should never be dropped.")]
  • smol-layout 0.1.0/build.rs
    245
    #[allow(clippy::assertions_on_constants)]
    246
    fn main() -> Result<(), Box<dyn Error>> {
  • solana-ledger 1.14.13/tests/shred.rs
    185
    #[allow(clippy::assertions_on_constants)]
    186
    fn setup_different_sized_fec_blocks(
  • solana-local-cluster 1.14.13/tests/common.rs
    150
    #[allow(clippy::assertions_on_constants)]
    151
    pub fn run_kill_partition_switch_threshold<C>(
  • solana-program 1.14.13/src/sysvar/recent_blockhashes.rs
    149
        #[test]
    150
        #[allow(clippy::assertions_on_constants)]
    151
        fn test_sysvar_can_hold_all_active_blockhashes() {
  • solana-program-runtime 1.14.13/src/executor_cache.rs
    271
            const PRIMER_COUNT_TARGET_PERCENTILE: u64 = 85;
    272
            #[allow(clippy::assertions_on_constants)]
    273
            {
  • solana-runtime 1.14.13/src/status_cache.rs
    470
        #[test]
    471
        #[allow(clippy::assertions_on_constants)]
    472
        fn test_age_sanity() {
  • summavy_fastfield_codecs 0.3.1/src/null_index/sparse.rs
    222
        /// Static assert number elements per block this method expects
    223
        #[allow(clippy::assertions_on_constants)]
    224
        const _: () = assert!(ELEMENTS_PER_BLOCK == (1 << 16));
  • surgefilter-comb 0.2.11-alpha.0/src/process_sse2.rs
    6
        #[allow(clippy::assertions_on_constants)]
    7
        fn process_quad(&self, 
  • surgefx-distortion 0.2.11-alpha.0/src/process.rs
    7
        // eventually loosen the constraint on N
    8
        #[allow(clippy::assertions_on_constants)] 
    9
        fn process<const N: usize>( &mut self, 
  • symbol_table 0.3.0/src/lib.rs
    64
    impl<const N: usize, S: BuildHasher> SymbolTable<N, S> {
    65
        #[allow(clippy::assertions_on_constants)]
    66
        fn with_hasher(build_hasher: S) -> Self {
  • tokio-modbus 0.6.0/src/codec/tcp.rs
    50
        #[allow(clippy::assertions_on_constants)]
    51
        fn decode(&mut self, buf: &mut BytesMut) -> Result<Option<(Header, Bytes)>> {
  • triton-vm 0.14.0/src/state.rs
    834
        #[test]
    835
        #[allow(clippy::assertions_on_constants)]
    836
        fn tvm_op_stack_big_enough_test() {
  • waffles-solana-program 1.15.0/src/sysvar/recent_blockhashes.rs
    167
        #[test]
    168
        #[allow(clippy::assertions_on_constants)]
    169
        fn test_sysvar_can_hold_all_active_blockhashes() {
  • waffles-solana-program-runtime 1.15.0/src/executor_cache.rs
    274
            const PRIMER_COUNT_TARGET_PERCENTILE: u64 = 85;
    275
            #[allow(clippy::assertions_on_constants)]
    276
            {
  • waffles-solana-runtime 1.15.0/src/status_cache.rs
    451
        #[test]
    452
        #[allow(clippy::assertions_on_constants)]
    453
        fn test_age_sanity() {
  • zcash_primitives 0.10.0/src/sapling/group_hash.rs
    13
    /// and not the identity.
    14
    #[allow(clippy::assertions_on_constants)]
    15
    pub fn group_hash(tag: &[u8], personalization: &[u8]) -> Option<jubjub::SubgroupPoint> {
  • zerogc-simple 0.2.0-alpha.7/src/alloc.rs
    18
    const DEBUG_INTERNAL_ALLOCATOR: bool = cfg!(zerogc_simple_debug_alloc);
    19
    #[allow(clippy::assertions_on_constants)] // See rust-lang/clippy#7597
    20
    mod debug {
  • abi_stable 0.11.1/src/lib.rs
    204
    #![allow(clippy::ptr_offset_with_cast)]
    205
    #![allow(clippy::assertions_on_constants)]
    206
    #![deny(missing_docs)]
  • assert_cmd 2.0.8/src/output.rs
    356
    fn format_bytes(data: &[u8], f: &mut impl fmt::Write) -> fmt::Result {
    357
        #![allow(clippy::assertions_on_constants)]
  • assert2ify 0.1.0-alpha1/tests/logic/mod.rs
    6
    #![allow(clippy::op_ref)]
    7
    #![allow(clippy::assertions_on_constants)]
    8
    #![allow(unused_attributes)]
  • authorized_keys 1.0.0/src/testing.rs
    1
    #![allow(clippy::assertions_on_constants)]
  • board-game 0.6.0/src/bin/bench.rs
    1
    #![allow(clippy::assertions_on_constants)]
  • board-game 0.6.0/src/lib.rs
    4
    #![allow(clippy::derive_hash_xor_eq)]
    5
    #![allow(clippy::assertions_on_constants)]
  • console-subscriber 0.1.8/src/lib.rs
    255
            // depending on the build-time configuration...
    256
            #![allow(clippy::assertions_on_constants)]
    257
            assert!(
  • cxx 1.0.88/tests/test.rs
    1
    #![allow(
    2
        clippy::assertions_on_constants,
    3
        clippy::assertions_on_result_states,
  • datasize 0.2.13/src/lib.rs
    201
    #![cfg_attr(not(feature = "std"), no_std)]
    202
    #![allow(clippy::assertions_on_constants)]
  • dnssector 0.2.12/src/lib.rs
    2
    #![allow(clippy::absurd_extreme_comparisons)]
    3
    #![allow(clippy::assertions_on_constants)]
    4
    #![allow(clippy::blocks_in_if_conditions)]
  • easytime 0.2.4/tests/duration.rs
    1
    #![warn(rust_2018_idioms, single_use_lifetimes)]
    2
    #![allow(clippy::zero_prefixed_literal, clippy::non_ascii_literal, clippy::assertions_on_constants)]
  • encrypted-dns 0.9.12/src/main.rs
    1
    #![allow(clippy::assertions_on_constants)]
    2
    #![allow(clippy::type_complexity)]
  • ensc-testsuite 0.1.6/src/tests/test_00.rs
    1
    #![allow(clippy::assertions_on_constants)]
  • expected 0.0.1/tests/sketch.rs
    1
    #![allow(clippy::assertions_on_constants, clippy::eq_op, clippy::identity_op)]
  • fluent-comparisons 0.3.1/src/tests/all_of.rs
    2
    #![allow(clippy::many_single_char_names)]
    3
    #![allow(clippy::assertions_on_constants)]
  • fluent-comparisons 0.3.1/src/tests/all_of_with_map.rs
    2
    #![allow(clippy::many_single_char_names)]
    3
    #![allow(clippy::assertions_on_constants)]
  • fluent-comparisons 0.3.1/src/tests/any_of.rs
    2
    #![allow(clippy::many_single_char_names)]
    3
    #![allow(clippy::assertions_on_constants)]
  • fluent-comparisons 0.3.1/src/tests/any_of_with_map.rs
    2
    #![allow(clippy::many_single_char_names)]
    3
    #![allow(clippy::assertions_on_constants)]
  • fluent-comparisons 0.3.1/tests/integration.rs
    4
    #![allow(clippy::assertions_on_constants)]
  • forma-render 0.1.3/src/consts.rs
    15
    #![allow(clippy::assertions_on_constants)]
  • gui 0.6.0/src/lib.rs
    20
    #![allow(
    21
      clippy::assertions_on_constants,
    22
      clippy::redundant_field_names,
  • iced-x86 1.18.0/src/lib.rs
    26
    #![warn(rustdoc::invalid_html_tags)]
    27
    #![allow(clippy::assertions_on_constants)]
    28
    #![allow(clippy::bool_assert_comparison)]
  • index_vec 0.1.3/tests/test.rs
    1
    #![allow(clippy::assertions_on_constants, clippy::eq_op)]
  • libscemu 0.10.2/src/emu.rs
    5
    #![allow(unused_must_use)]
    6
    #![allow(clippy::assertions_on_constants)]
  • malachite-base 0.3.2/tests/lib.rs
    24
    #![allow(
    25
        clippy::assertions_on_constants, // Compile-time asserts still useful
    26
        clippy::bool_assert_comparison, // Often clearer than using !
  • malachite-nz 0.3.2/src/lib.rs
    109
        unstable_name_collisions,
    110
        clippy::assertions_on_constants,
    111
        clippy::cognitive_complexity,
  • malachite-nz 0.3.2/tests/lib.rs
    3
        clippy::bool_assert_comparison,
    4
        clippy::assertions_on_constants,
    5
        clippy::cognitive_complexity,
  • malachite-q 0.3.2/src/lib.rs
    61
        unstable_name_collisions,
    62
        clippy::assertions_on_constants,
    63
        clippy::cognitive_complexity,
  • malachite-q 0.3.2/tests/lib.rs
    3
        clippy::bool_assert_comparison,
    4
        clippy::assertions_on_constants,
    5
        clippy::cognitive_complexity,
  • plonky2 0.1.1/src/hash/arch/aarch64/poseidon_goldilocks_neon.rs
    1
    #![allow(clippy::assertions_on_constants)]
  • safecoin-runtime 1.14.3/src/cost_tracker.rs
    51
            // more info, see this issue: https://github.com/rust-lang/rust-clippy/issues/8159
    52
            #![allow(clippy::assertions_on_constants)]
    53
            const _: () = assert!(MAX_WRITABLE_ACCOUNT_UNITS <= MAX_BLOCK_UNITS);
  • solana-runtime 1.14.13/src/cost_tracker.rs
    51
            // more info, see this issue: https://github.com/rust-lang/rust-clippy/issues/8159
    52
            #![allow(clippy::assertions_on_constants)]
    53
            const _: () = assert!(MAX_WRITABLE_ACCOUNT_UNITS <= MAX_BLOCK_UNITS);
  • stockfish-core 0.2.0/src/core/direction.rs
    63
            // seven while masking the contents of files B through H.
    64
            #![allow(clippy::assertions_on_constants)]
    65
            debug_assert!(Direction::MAX_STEPS < 4,
  • stringsext 2.3.4/src/finding_collection.rs
    1
    #![allow(clippy::assertions_on_constants)]
    2
    extern crate encoding_rs;
  • sysinfo 0.27.7/src/lib.rs
    9
    #![allow(renamed_and_removed_lints)]
    10
    #![allow(clippy::assertions_on_constants)]
    11
    #![allow(unknown_lints)]
  • teensy4-bsp 0.4.0/src/clock_power.rs
    3
    #![allow(clippy::assertions_on_constants)]
  • trace-tools 0.3.0/src/subscriber/layer/mod.rs
    33
    pub fn flamegraph_layer<P: AsRef<Path>>(stack_filename: P) -> Result<(FlamegraphLayer, Flamegrapher), Error> {
    34
        #![allow(clippy::assertions_on_constants)]
    35
        assert!(
    74
    pub fn console_layer() -> Result<console_subscriber::ConsoleLayer, Error> {
    75
        #![allow(clippy::assertions_on_constants)]
    76
        assert!(
  • typos-cli 1.13.9/src/dict.rs
    104
        fn is_vars_enabled(&self) -> bool {
    105
            #![allow(clippy::assertions_on_constants)]
    106
            debug_assert!(typos_vars::NO_INVALID);
  • waffles-solana-runtime 1.15.0/src/cost_tracker.rs
    51
            // more info, see this issue: https://github.com/rust-lang/rust-clippy/issues/8159
    52
            #![allow(clippy::assertions_on_constants)]
    53
            const _: () = assert!(MAX_WRITABLE_ACCOUNT_UNITS <= MAX_BLOCK_UNITS);
  • wide 0.7.5/tests/all_tests/main.rs
    2
    #![allow(clippy::unnecessary_cast)]
    3
    #![allow(clippy::assertions_on_constants)]
  • winit 0.27.5/src/platform_impl/linux/x11/util/icon.rs
    1
    #![allow(clippy::assertions_on_constants)]