diff options
| author | bors <bors@rust-lang.org> | 2016-10-27 00:51:58 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-10-27 00:51:58 -0700 |
| commit | 46d39f3329487115e7d7dcd37bc64eea6ef9ba4e (patch) | |
| tree | c3081261a6e717d58bda4b1c04b958c8c1d31713 /src/test | |
| parent | bc283c9487b4607d0a97635dca8c8812b886047b (diff) | |
| parent | 8c4a39cd951347b3060b07d2eb6a4ce225c44a8d (diff) | |
| download | rust-46d39f3329487115e7d7dcd37bc64eea6ef9ba4e.tar.gz rust-46d39f3329487115e7d7dcd37bc64eea6ef9ba4e.zip | |
Auto merge of #37128 - nrc:depr-attr, r=@alexcrichton
Deprecate no_debug and custom_derive r? @nikomatsakis
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/compile-fail/deriving-meta-unknown-trait.rs | 4 | ||||
| -rw-r--r-- | src/test/compile-fail/feature-gate-no-debug-2.rs | 15 |
2 files changed, 18 insertions, 1 deletions
diff --git a/src/test/compile-fail/deriving-meta-unknown-trait.rs b/src/test/compile-fail/deriving-meta-unknown-trait.rs index e2234994693..596cc1e7d58 100644 --- a/src/test/compile-fail/deriving-meta-unknown-trait.rs +++ b/src/test/compile-fail/deriving-meta-unknown-trait.rs @@ -8,8 +8,10 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-tidy-linelength + #[derive(Eqr)] -//~^ ERROR `#[derive]` for custom traits is not stable enough for use and is subject to change +//~^ ERROR `#[derive]` for custom traits is not stable enough for use. It is deprecated and will be removed in v1.15 (see issue #29644) struct Foo; pub fn main() {} diff --git a/src/test/compile-fail/feature-gate-no-debug-2.rs b/src/test/compile-fail/feature-gate-no-debug-2.rs new file mode 100644 index 00000000000..b663c136ee5 --- /dev/null +++ b/src/test/compile-fail/feature-gate-no-debug-2.rs @@ -0,0 +1,15 @@ +// Copyright 2016 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or +// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license +// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +#![deny(deprecated)] +#![feature(no_debug)] + +#[no_debug] //~ ERROR use of deprecated attribute `no_debug` +fn main() {} |
