rust/clippy_lints/src/utils/constants.rs

27 lines
488 B
Rust
Raw Normal View History

2016-08-27 18:52:01 -05:00
//! This module contains some useful constants.
#![deny(missing_docs_in_private_items)]
/// List of the built-in types names.
///
/// See also [the reference][reference-types] for a list of such types.
///
/// [reference-types]: https://doc.rust-lang.org/reference.html#types
pub const BUILTIN_TYPES: &[&str] = &[
2017-08-09 02:30:56 -05:00
"i8",
"u8",
"i16",
"u16",
"i32",
"u32",
"i64",
"u64",
"isize",
"usize",
"f32",
"f64",
"bool",
"str",
"char",
];