Fix wrong suggestion with MANUAL_SWAP and slices

This commit is contained in:
mcarton
2016-06-05 20:19:00 +02:00
parent bdd6d2c35e
commit 9f70d04000
4 changed files with 87 additions and 10 deletions

View File

@@ -42,6 +42,9 @@ extern crate rustc_plugin;
extern crate rustc_const_eval;
extern crate rustc_const_math;
#[macro_use]
extern crate matches as matches_macro;
macro_rules! declare_restriction_lint {
{ pub $name:tt, $description:tt } => {
declare_lint! { pub $name, Allow, $description }