]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass-fulldeps/derive-totalsum-attr.rs
Auto merge of #61735 - eddyb:must-use-life, r=oli-obk
[rust.git] / src / test / run-pass-fulldeps / derive-totalsum-attr.rs
index ef5198b9ae03802d6dfdab2e05a6cc655d779b42..38eaa71dd6abaa8fd455ac27c7b229b6cdd85864 100644 (file)
@@ -1,17 +1,7 @@
-// Copyright 2015 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.
-
-// aux-build:custom_derive_plugin_attr.rs
+// aux-build:custom-derive-plugin-attr.rs
 // ignore-stage1
 
-#![feature(plugin, custom_derive, custom_attribute)]
+#![feature(plugin, rustc_attrs)]
 #![plugin(custom_derive_plugin_attr)]
 
 trait TotalSum {
@@ -32,7 +22,7 @@ fn total_sum(&self) -> isize {
     }
 }
 
-#[derive(TotalSum)]
+#[rustc_derive_TotalSum]
 struct Foo {
     seven: Seven,
     bar: Bar,
@@ -41,7 +31,7 @@ struct Foo {
     nan: NaN,
 }
 
-#[derive(TotalSum)]
+#[rustc_derive_TotalSum]
 struct Bar {
     quux: isize,
     bleh: isize,