54 |
assert_eq!(lmr.length(), LEN);
|
55 |
#[allow(clippy::reversed_empty_ranges)]
|
56 |
let _s1 = lmr.get(2..0).unwrap();
|
161 |
assert_eq!(rmr.length(), LEN);
|
162 |
#[allow(clippy::reversed_empty_ranges)]
|
163 |
let _s1 = rmr.get(2..0).unwrap();
|
245 |
/// Allocate space for and enumerate pending entities
|
246 |
#[allow(clippy::reversed_empty_ranges)]
|
247 |
pub fn flush(&mut self) -> impl Iterator<Item = u32> {
|
375 |
let data: Data<_> = data_region(1024, 0).into();
|
376 |
#[allow(clippy::reversed_empty_ranges)]
|
377 |
let data = data.into_subregion(5000..400);
|
1467 |
#[test]
|
1468 |
#[allow(clippy::reversed_empty_ranges)]
|
1469 |
fn scan_on_unsorted_node() {
|
1526 |
#[test]
|
1527 |
#[allow(clippy::reversed_empty_ranges)]
|
1528 |
fn scan_on_sorted_node() {
|
10 |
#[allow(clippy::reversed_empty_ranges)]
|
11 |
fn yanked() -> Spanned<LintLevel> {
|
47 |
fn fake(self) -> Spanned<T> {
|
48 |
#[allow(clippy::reversed_empty_ranges)]
|
49 |
Spanned {
|
198 |
// default to an empty range
|
199 |
#[allow(clippy::reversed_empty_ranges)]
|
200 |
let mut char_range = usize::MAX..0;
|
33 |
clippy::transmute_ptr_to_ptr,
|
34 |
clippy::reversed_empty_ranges
|
35 |
)]
|
250 |
);
|
251 |
#[allow(clippy::reversed_empty_ranges)]
|
252 |
let reversed_empty_range = 4..0;
|
409 |
if !no_magic_bytes {
|
410 |
#[allow(clippy::reversed_empty_ranges)]
|
411 |
binary.splice(0..0, SIGN_MAGIC_BYTES.iter().cloned());
|
19 |
#[allow(clippy::ptr_offset_with_cast)]
|
20 |
#[allow(clippy::reversed_empty_ranges)]
|
21 |
#[allow(clippy::manual_range_contains)]
|
38 |
let s: Str = "Hello, world!".into();
|
39 |
#[allow(clippy::reversed_empty_ranges)]
|
40 |
s.get(3..1);
|
116 |
let s: Str = "Hello, world!".into();
|
117 |
#[allow(clippy::reversed_empty_ranges)]
|
118 |
s.get(3..=1);
|
32 |
impl<T: NestedDecode, const N: usize> NestedDecode for [T; N] {
|
33 |
#[allow(clippy::reversed_empty_ranges)]
|
34 |
fn dep_decode_or_handle_err<I, H>(input: &mut I, h: H) -> Result<Self, H::HandledErr>
|
172 |
#[inline]
|
173 |
#[allow(clippy::reversed_empty_ranges)]
|
174 |
fn mapping_coerce(&self, inp: RangeInclusive<External>) -> RangeInclusive<u64> {
|
211 |
#[inline]
|
212 |
#[allow(clippy::reversed_empty_ranges)]
|
213 |
fn mapping_coerce(&self, inp: RangeInclusive<External>) -> RangeInclusive<u64> {
|
102 |
#[test]
|
103 |
#[allow(clippy::reversed_empty_ranges)]
|
104 |
fn it_works_with_minimum_range() -> TestResult {
|
115 |
#[test]
|
116 |
#[allow(clippy::reversed_empty_ranges)]
|
117 |
fn it_works_with_long_seed() -> TestResult {
|
128 |
#[test]
|
129 |
#[allow(clippy::reversed_empty_ranges)]
|
130 |
fn it_rejects_invalid_range() -> TestResult {
|
23 |
impl LoadLogPrefix {
|
24 |
#[allow(clippy::reversed_empty_ranges)]
|
25 |
pub fn new(storage: &Storage) -> Self {
|
43 |
impl SaveLogPrefix {
|
44 |
#[allow(clippy::reversed_empty_ranges)]
|
45 |
pub(crate) fn new(storage: &mut Storage, prefix: LogPrefix) -> Self {
|
73 |
fn poll(&mut self) -> Poll<Self::Item, Self::Error> {
|
74 |
#[allow(clippy::reversed_empty_ranges)]
|
75 |
while let Async::Ready(phase) = self.phase.poll()? {
|
83 |
#[allow(clippy::reversed_empty_ranges)]
|
84 |
#[test_case(status(0..=0, 0) => "from 0 to 0 currently at 0. 100% Done.")]
|
82 |
#[allow(clippy::reversed_empty_ranges)]
|
83 |
#[test_case(status(0..=0, 0) => "from 0 to 0 currently at 0. 100% Done.")]
|
773 |
#[should_panic]
|
774 |
#[allow(clippy::reversed_empty_ranges)]
|
775 |
fn range_bad() {
|
75 |
let size = index.len();
|
76 |
#[allow(clippy::reversed_empty_ranges)]
|
77 |
let range = if index.is_empty() {
|
5 |
pub fn gimli(state: &mut [u32; SIZE]) {
|
6 |
#[allow(clippy::reversed_empty_ranges)]
|
7 |
for round in R(24..0) {
|
449 |
#[should_panic = "the range start (6) must be smaller than the end (0)"]
|
450 |
#[allow(clippy::reversed_empty_ranges)]
|
451 |
fn test_from_range_panic() { let _ = ByteRange::from(6..0); }
|
454 |
#[should_panic = "the range start (6) must be smaller than the end (0+1)"]
|
455 |
#[allow(clippy::reversed_empty_ranges)]
|
456 |
fn test_from_range_inclusive_panic() { let _ = ByteRange::from(6..=0); }
|
151 |
#[should_panic = "Range end < start"]
|
152 |
#[allow(clippy::reversed_empty_ranges)]
|
153 |
fn test_from_range_inverted() {
|
423 |
pub fn encode_to_file(&self, tag: &Tag, mut file: &mut fs::File) -> crate::Result<()> {
|
424 |
#[allow(clippy::reversed_empty_ranges)]
|
425 |
let location = locate_id3v2(&mut file)?.unwrap_or(0..0); // Create a new tag if none could be located.
|
208 |
let mut file = fs::OpenOptions::new().read(true).write(true).open(path)?;
|
209 |
#[allow(clippy::reversed_empty_ranges)]
|
210 |
let location = stream::tag::locate_id3v2(&mut file)?.unwrap_or(0..0); // Create a new tag if none could be located.
|
84 |
#[allow(dead_code)]
|
85 |
#[allow(clippy::reversed_empty_ranges)]
|
86 |
#[inline(always)]
|
346 |
#[test]
|
347 |
#[allow(clippy::reversed_empty_ranges)]
|
348 |
fn hereditary_jumps_flag() {
|
176 |
#[test]
|
177 |
#[allow(clippy::reversed_empty_ranges)]
|
178 |
fn vec_no_clone_empty() {
|
125 |
#[test]
|
126 |
#[allow(clippy::reversed_empty_ranges)] // Intentionally checking that those are correctly handled
|
127 |
fn take_lines_test() {
|
167 |
#[test]
|
168 |
#[allow(clippy::reversed_empty_ranges)] // Intentionally checking that those are correctly handled
|
169 |
fn take_rustdoc_include_lines_test() {
|
114 |
// `end_height` params, and the RPC should then return an error.
|
115 |
#[allow(clippy::reversed_empty_ranges)]
|
116 |
helpers::regtest::get_block_headers_range_error(®test, 4..=0).await;
|
137 |
/// raw sample data from the file.
|
138 |
#[allow(clippy::reversed_empty_ranges)]
|
139 |
pub fn create_sample_table(
|
296 |
#[allow(clippy::reversed_empty_ranges)]
|
297 |
fn next(&mut self) -> Option<i64> {
|
353 |
#[allow(clippy::reversed_empty_ranges)]
|
354 |
fn next(&mut self) -> Option<u32> {
|
436 |
impl<'a> SampleToChunkIterator<'a> {
|
437 |
#[allow(clippy::reversed_empty_ranges)]
|
438 |
fn locate(&mut self) -> std::ops::Range<u32> {
|
32 |
impl<T: NestedDecode, const N: usize> NestedDecode for [T; N] {
|
33 |
#[allow(clippy::reversed_empty_ranges)]
|
34 |
fn dep_decode_or_handle_err<I, H>(input: &mut I, h: H) -> Result<Self, H::HandledErr>
|
184 |
let mut rng = WyRand::new();
|
185 |
#[allow(clippy::reversed_empty_ranges)]
|
186 |
rng.generate_range(10..=5);
|
152 |
#[should_panic = "Range end < start"]
|
153 |
#[allow(clippy::reversed_empty_ranges)]
|
154 |
fn test_from_range_inverted() {
|
493 |
{
|
494 |
#[allow(clippy::reversed_empty_ranges)] // An empty range is valid because `centroid` is empty.
|
495 |
fn default() -> Self {
|
31 |
impl Default for FlashProperties {
|
32 |
#[allow(clippy::reversed_empty_ranges)]
|
33 |
fn default() -> Self {
|
15 |
assert!(frames.shape()[0] > 2);
|
16 |
#[allow(clippy::reversed_empty_ranges)]
|
17 |
let parabola_a = (&frames.slice(s![..-2, ..]) + &frames.slice(s![2.., ..])
|
188 |
#[allow(clippy::reversed_empty_ranges)]
|
189 |
let view = if no_boseos_middle {
|
663 |
let list = PyList::new(py, &[2, 3, 5]);
|
664 |
#[allow(clippy::reversed_empty_ranges)]
|
665 |
list[2..1].extract::<Vec<i32>>().unwrap();
|
559 |
let seq = ob.downcast::<PySequence>(py).unwrap();
|
560 |
#[allow(clippy::reversed_empty_ranges)]
|
561 |
seq[2..1].extract::<Vec<i32>>().unwrap();
|
701 |
let tuple: &PyTuple = ob.downcast(py).unwrap();
|
702 |
#[allow(clippy::reversed_empty_ranges)]
|
703 |
tuple[2..1].extract::<Vec<i32>>().unwrap();
|
1652 |
#[test]
|
1653 |
#[allow(clippy::reversed_empty_ranges)]
|
1654 |
fn ranges() {
|
1652 |
#[test]
|
1653 |
#[allow(clippy::reversed_empty_ranges)]
|
1654 |
fn ranges() {
|
731 |
/// [managed]: crate#interrupt-handling-framework
|
732 |
#[allow(clippy::reversed_empty_ranges)] // on purpose
|
733 |
const RAW_MANAGED_INTERRUPT_PRIORITY_RANGE: Range<InterruptPriority> = 0..0;
|
538 |
/// [managed]: crate#interrupt-handling-framework
|
539 |
#[allow(clippy::reversed_empty_ranges)] // on purpose
|
540 |
const MANAGED_INTERRUPT_PRIORITY_RANGE: Range<raw::InterruptPriority> = 0..0;
|
160 |
/// [managed]: r3_core#interrupt-handling-framework
|
161 |
#[allow(clippy::reversed_empty_ranges)] // on purpose
|
162 |
const MANAGED_INTERRUPT_PRIORITY_RANGE: Range<InterruptPriority> = 0..0;
|
119 |
#[allow(clippy::reversed_empty_ranges)]
|
120 |
mod test_from_stdlib {
|
1 |
#[allow(clippy::reversed_empty_ranges)]
|
2 |
mod test_fmt_debug {
|
132 |
#[allow(clippy::reversed_empty_ranges)]
|
133 |
mod test_contains {
|
269 |
#[allow(clippy::reversed_empty_ranges)]
|
270 |
mod test_is_empty {
|
364 |
#[allow(clippy::reversed_empty_ranges)]
|
365 |
mod test_is_full {
|
414 |
#[test]
|
415 |
#[allow(clippy::reversed_empty_ranges)]
|
416 |
fn test_array_insert_invalid_range() {
|
480 |
#[test]
|
481 |
#[allow(clippy::reversed_empty_ranges)]
|
482 |
fn test_bitmap_insert_invalid_range() {
|
67 |
#[test]
|
68 |
#[allow(clippy::reversed_empty_ranges)]
|
69 |
fn test_convert_range_to_inclusive() {
|
2362 |
let mut r = Rope::from_str(TEXT);
|
2363 |
#[allow(clippy::reversed_empty_ranges)]
|
2364 |
r.remove(56..55); // Wrong ordering of start/end on purpose.
|
3148 |
let r = Rope::from_str(TEXT);
|
3149 |
#[allow(clippy::reversed_empty_ranges)]
|
3150 |
r.slice(53..52); // Wrong ordering on purpose.
|
3199 |
let r = Rope::from_str(TEXT);
|
3200 |
#[allow(clippy::reversed_empty_ranges)]
|
3201 |
r.byte_slice(53..52); // Wrong ordering on purpose.
|
2896 |
#[allow(clippy::reversed_empty_ranges)]
|
2897 |
s.slice(21..20); // Wrong ordering on purpose.
|
2966 |
#[allow(clippy::reversed_empty_ranges)]
|
2967 |
s.byte_slice(21..20); // Wrong ordering on purpose.
|
117 |
#[allow(clippy::absurd_extreme_comparisons)] // From macro.
|
118 |
#[allow(clippy::reversed_empty_ranges)] // From macro.
|
119 |
fn test_root_large() {
|
20 |
// valid if the `scan` method finds a match
|
21 |
#[allow(clippy::reversed_empty_ranges)]
|
22 |
let replace_range = core::usize::MAX..0;
|
20 |
// valid if the `scan` method finds a match
|
21 |
#[allow(clippy::reversed_empty_ranges)]
|
22 |
let replace_range = core::usize::MAX..0;
|
75 |
let size = index.len();
|
76 |
#[allow(clippy::reversed_empty_ranges)]
|
77 |
let range = if index.is_empty() {
|
232 |
);
|
233 |
#[allow(clippy::reversed_empty_ranges)]
|
234 |
let reversed_empty_range = 4..0;
|
220 |
#[allow(clippy::reversed_empty_ranges)]
|
221 |
pub(super) fn buffer_copy_subresources(
|
240 |
#[allow(clippy::reversed_empty_ranges)]
|
241 |
pub(super) fn buffer_image_copy_subresource(
|
315 |
#[test]
|
316 |
#[allow(clippy::reversed_empty_ranges)]
|
317 |
fn missing_fields() {
|
82 |
#[allow(clippy::reversed_empty_ranges)]
|
83 |
pub const EMPTY_RANGE: Range<usize> = Range {
|
517 |
fn default() -> Self {
|
518 |
#[allow(clippy::reversed_empty_ranges)]
|
519 |
Self {
|
73 |
let size = index.len();
|
74 |
#[allow(clippy::reversed_empty_ranges)]
|
75 |
let range = if index.is_empty() {
|
233 |
);
|
234 |
#[allow(clippy::reversed_empty_ranges)]
|
235 |
let reversed_empty_range = 4..0;
|
632 |
fn for_loop_empty() {
|
633 |
#[allow(clippy::reversed_empty_ranges)]
|
634 |
let rendered = html! {
|
742 |
fn for_loop_multiple() {
|
743 |
#[allow(clippy::reversed_empty_ranges)]
|
744 |
let rendered = html! {
|
180 |
#[inline]
|
181 |
#[allow(clippy::reversed_empty_ranges)]
|
182 |
fn mapping_coerce(&self, inp: RangeInclusive<External>) -> RangeInclusive<u64> {
|
220 |
#[inline]
|
221 |
#[allow(clippy::reversed_empty_ranges)]
|
222 |
fn mapping_coerce(&self, inp: RangeInclusive<External>) -> RangeInclusive<u64> {
|
159 |
#[allow(clippy::reversed_empty_ranges)]
|
160 |
let region = Region::from(4..3);
|
172 |
#[allow(clippy::reversed_empty_ranges)]
|
173 |
let region = Region::from(4..=3);
|
250 |
);
|
251 |
#[allow(clippy::reversed_empty_ranges)]
|
252 |
let reversed_empty_range = 4..0;
|
160 |
/// in order to avoid double-counting.
|
161 |
#[allow(clippy::reversed_empty_ranges)]
|
162 |
pub fn length_minutes(&self) -> u64 {
|
274 |
#[inline]
|
275 |
#[allow(clippy::reversed_empty_ranges)]
|
276 |
fn signature() -> Signature<'static> {
|
1 |
#![warn(clippy::all)]
|
2 |
#![allow(clippy::reversed_empty_ranges)]
|
3 |
#![allow(clippy::many_single_char_names)]
|
1 |
#![allow(clippy::reversed_empty_ranges)] // This is intentional.
|
1 |
#![allow(clippy::reversed_empty_ranges)]
|
1 |
#![allow(clippy::reversed_empty_ranges)]
|
106 |
// Seems should be fixed in `thiserror` crate.
|
107 |
clippy::reversed_empty_ranges,
|
108 |
)]
|
105 |
// Seems should be fixed in `thiserror` crate.
|
106 |
clippy::reversed_empty_ranges,
|
107 |
)]
|
6 |
clippy::verbose_bit_mask,
|
7 |
clippy::reversed_empty_ranges,
|
8 |
clippy::vtable_address_comparisons,
|
1 |
//! Indexing
|
2 |
#![allow(clippy::reversed_empty_ranges)]
|
17 |
#![allow(clippy::ptr_offset_with_cast)]
|
18 |
#![allow(clippy::reversed_empty_ranges)]
|
19 |
#![allow(clippy::manual_range_contains)]
|
17 |
#![allow(clippy::ptr_offset_with_cast)]
|
18 |
#![allow(clippy::reversed_empty_ranges)]
|
19 |
#![allow(clippy::manual_range_contains)]
|
17 |
#![allow(clippy::ptr_offset_with_cast)]
|
18 |
#![allow(clippy::reversed_empty_ranges)]
|
19 |
#![allow(clippy::manual_range_contains)]
|
17 |
#![allow(clippy::ptr_offset_with_cast)]
|
18 |
#![allow(clippy::reversed_empty_ranges)]
|
19 |
#![allow(clippy::manual_range_contains)]
|
17 |
#![allow(clippy::ptr_offset_with_cast)]
|
18 |
#![allow(clippy::reversed_empty_ranges)]
|
19 |
#![allow(clippy::manual_range_contains)]
|
534 |
fn test_gen_range_panic_int() {
|
535 |
#![allow(clippy::reversed_empty_ranges)]
|
536 |
let mut r = rng(102);
|
542 |
fn test_gen_range_panic_usize() {
|
543 |
#![allow(clippy::reversed_empty_ranges)]
|
544 |
let mut r = rng(103);
|
1 |
#![allow(clippy::reversed_empty_ranges)]
|
62 |
fn copy_to_repr(&self, repr: &mut [Padded<T::Type, T::ArrayPadding>; N]) {
|
63 |
#![allow(clippy::reversed_empty_ranges)]
|
81 |
fn copy_to_repr(&self, repr: &mut [Padded<T::Type, T::ArrayPadding>; N]) {
|
82 |
#![allow(clippy::reversed_empty_ranges)]
|
11 |
#![allow(clippy::ptr_offset_with_cast)]
|
12 |
#![allow(clippy::reversed_empty_ranges)]
|
13 |
#![allow(clippy::manual_range_contains)]
|
17 |
#![allow(clippy::ptr_offset_with_cast)]
|
18 |
#![allow(clippy::reversed_empty_ranges)]
|
19 |
#![allow(clippy::manual_range_contains)]
|
6 |
#![allow(clippy::manual_range_contains)]
|
7 |
#![allow(clippy::reversed_empty_ranges)]
|
17 |
#![allow(clippy::ptr_offset_with_cast)]
|
18 |
#![allow(clippy::reversed_empty_ranges)]
|
19 |
#![allow(clippy::manual_range_contains)]
|
34 |
#![allow(clippy::type_complexity)]
|
35 |
#![allow(clippy::reversed_empty_ranges)]
|
36 |
#![allow(clippy::excessive_precision)]
|
2988 |
mod std_tests {
|
2989 |
#![allow(clippy::reversed_empty_ranges)]
|
1 |
#![allow(clippy::reversed_empty_ranges)]
|
2 |
#![allow(clippy::len_zero)]
|
3 |
#![allow(clippy::reversed_empty_ranges)]
|
29 |
#![allow(clippy::ptr_offset_with_cast)]
|
30 |
#![allow(clippy::reversed_empty_ranges)]
|
31 |
#![allow(clippy::manual_range_contains)]
|
13 |
#![allow(clippy::ptr_offset_with_cast)]
|
14 |
#![allow(clippy::reversed_empty_ranges)]
|
79 |
#![allow(clippy::reversed_empty_ranges)]
|
1 |
#![allow(clippy::reversed_empty_ranges)]
|