]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc/lint/builtin.rs
Nuke the entire ctfe from orbit, it's the only way to be sure
[rust.git] / src / librustc / lint / builtin.rs
index b68b7dc6c067256d1fea467c43f8749517006ce2..a951265d458bf2e6a78ec67dad8e234593227b94 100644 (file)
 use session::config::Epoch;
 use syntax::codemap::Span;
 
+declare_lint! {
+    pub EXCEEDING_BITSHIFTS,
+    Deny,
+    "shift exceeds the type's number of bits"
+}
+
 declare_lint! {
     pub CONST_ERR,
     Warn,
     Epoch::Epoch2018
 }
 
+declare_lint! {
+    pub ILLEGAL_FLOATING_POINT_LITERAL_PATTERN,
+    Warn,
+    "floating-point literals cannot be used in patterns"
+}
+
 /// Does nothing as a lint pass, but registers some `Lint`s
 /// which are used by other parts of the compiler.
 #[derive(Copy, Clone)]
 impl LintPass for HardwiredLints {
     fn get_lints(&self) -> LintArray {
         lint_array!(
+            ILLEGAL_FLOATING_POINT_LITERAL_PATTERN,
+            EXCEEDING_BITSHIFTS,
             UNUSED_IMPORTS,
             UNUSED_EXTERN_CRATES,
             UNUSED_QUALIFICATIONS,