diff options
Diffstat (limited to 'src/librustc/lint/builtin.rs')
| -rw-r--r-- | src/librustc/lint/builtin.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc/lint/builtin.rs b/src/librustc/lint/builtin.rs index 5e74b90dba3..c314fba91d5 100644 --- a/src/librustc/lint/builtin.rs +++ b/src/librustc/lint/builtin.rs @@ -552,7 +552,7 @@ impl LintPass for BoxPointers { declare_lint! { RAW_POINTER_DERIVING, Warn, - "uses of #[deriving] with raw pointers are rarely correct" + "uses of #[derive] with raw pointers are rarely correct" } struct RawPtrDerivingVisitor<'a, 'tcx: 'a> { @@ -561,7 +561,7 @@ struct RawPtrDerivingVisitor<'a, 'tcx: 'a> { impl<'a, 'tcx, 'v> Visitor<'v> for RawPtrDerivingVisitor<'a, 'tcx> { fn visit_ty(&mut self, ty: &ast::Ty) { - static MSG: &'static str = "use of `#[deriving]` with a raw pointer"; + static MSG: &'static str = "use of `#[derive]` with a raw pointer"; if let ast::TyPtr(..) = ty.node { self.cx.span_lint(RAW_POINTER_DERIVING, ty.span, MSG); } |
