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.
11 #![feature(tool_lints)]
13 #![warn(clippy::all,clippy::similar_names)]
14 #![allow(unused, clippy::println_empty_string)]
69 (cheese2, 2) => panic!(),
94 let Foo { apple, bpple } = unimplemented!();
95 let Foo { apple: spring,
96 bpple: sprang } = unimplemented!();
99 #[derive(Clone, Debug)]
112 let filled = match *self {
113 MaybeInst::Split1(goto1) => panic!(1),
114 MaybeInst::Split2(goto2) => panic!(2),
115 _ => unimplemented!(),
123 let (b, c, d): (i32, i64, i16);
148 fn underscores_and_numbers() {
149 let _1 = 1; //~ERROR Consider a more descriptive name
150 let ____1 = 1; //~ERROR Consider a more descriptive name
151 let __1___2 = 12; //~ERROR Consider a more descriptive name
178 // false positive similar_names (#3057, #2651)
179 // clippy claimed total_reg_src_size and total_size and
180 // numb_reg_src_checkouts and total_bin_size were similar
181 #[derive(Debug, Clone)]
182 pub(crate) struct DirSizes {
183 pub(crate) total_size: u64,
184 pub(crate) numb_bins: u64,
185 pub(crate) total_bin_size: u64,
186 pub(crate) total_reg_size: u64,
187 pub(crate) total_git_db_size: u64,
188 pub(crate) total_git_repos_bare_size: u64,
189 pub(crate) numb_git_repos_bare_repos: u64,
190 pub(crate) numb_git_checkouts: u64,
191 pub(crate) total_git_chk_size: u64,
192 pub(crate) total_reg_cache_size: u64,
193 pub(crate) total_reg_src_size: u64,
194 pub(crate) numb_reg_cache_entries: u64,
195 pub(crate) numb_reg_src_checkouts: u64,