]> git.lizzy.rs Git - rust.git/blob - clippy_lints/src/utils/constants.rs
Merge pull request #3269 from rust-lang-nursery/relicense
[rust.git] / clippy_lints / src / utils / constants.rs
1 // Copyright 2014-2018 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution.
3 //
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.
9
10
11 //! This module contains some useful constants.
12
13 #![deny(clippy::missing_docs_in_private_items)]
14
15 /// List of the built-in types names.
16 ///
17 /// See also [the reference][reference-types] for a list of such types.
18 ///
19 /// [reference-types]: https://doc.rust-lang.org/reference.html#types
20 pub const BUILTIN_TYPES: &[&str] = &[
21     "i8",
22     "u8",
23     "i16",
24     "u16",
25     "i32",
26     "u32",
27     "i64",
28     "u64",
29     "isize",
30     "usize",
31     "f32",
32     "f64",
33     "bool",
34     "str",
35     "char",
36 ];