1 // Copyright 2014-2018 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution.
4 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
5 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
7 // option. This file may not be copied, modified, or distributed
8 // except according to those terms.
10 #![warn(clippy::all, clippy::similar_names)]
11 #![allow(unused, clippy::println_empty_string)]
63 (cheese2, 2) => panic!(),
87 let Foo { apple, bpple } = unimplemented!();
94 #[derive(Clone, Debug)]
107 let filled = match *self {
108 MaybeInst::Split1(goto1) => panic!(1),
109 MaybeInst::Split2(goto2) => panic!(2),
110 _ => unimplemented!(),
118 let (b, c, d): (i32, i64, i16);
142 fn underscores_and_numbers() {
143 let _1 = 1; //~ERROR Consider a more descriptive name
144 let ____1 = 1; //~ERROR Consider a more descriptive name
145 let __1___2 = 12; //~ERROR Consider a more descriptive name
172 // false positive similar_names (#3057, #2651)
173 // clippy claimed total_reg_src_size and total_size and
174 // numb_reg_src_checkouts and total_bin_size were similar
175 #[derive(Debug, Clone)]
176 pub(crate) struct DirSizes {
177 pub(crate) total_size: u64,
178 pub(crate) numb_bins: u64,
179 pub(crate) total_bin_size: u64,
180 pub(crate) total_reg_size: u64,
181 pub(crate) total_git_db_size: u64,
182 pub(crate) total_git_repos_bare_size: u64,
183 pub(crate) numb_git_repos_bare_repos: u64,
184 pub(crate) numb_git_checkouts: u64,
185 pub(crate) total_git_chk_size: u64,
186 pub(crate) total_reg_cache_size: u64,
187 pub(crate) total_reg_src_size: u64,
188 pub(crate) numb_reg_cache_entries: u64,
189 pub(crate) numb_reg_src_checkouts: u64,