Remove derives Encodable/Decodable and unstabilize attribute #[bench]

This commit is contained in:
Vadim Petrochenkov 2019-07-27 15:06:49 +03:00
parent 9152fe4ea0
commit 73dae4eaf9
20 changed files with 224 additions and 298 deletions

View file

@ -32,6 +32,7 @@
// check-pass
#![feature(test)]
#![warn(unused_attributes, unknown_lints)]
// UNGATED WHITE-LISTED BUILT-IN ATTRIBUTES

View file

@ -2,6 +2,8 @@
//! Test that makes sure wrongly-typed bench functions aren't ignored
#![feature(test)]
#[bench]
fn foo() { } //~ ERROR functions used as benches

View file

@ -1,11 +1,11 @@
error: functions used as benches must have signature `fn(&mut Bencher) -> impl Termination`
--> $DIR/issue-12997-1.rs:6:1
--> $DIR/issue-12997-1.rs:8:1
|
LL | fn foo() { }
| ^^^^^^^^^^^^
error: functions used as benches must have signature `fn(&mut Bencher) -> impl Termination`
--> $DIR/issue-12997-1.rs:9:1
--> $DIR/issue-12997-1.rs:11:1
|
LL | fn bar(x: isize, y: isize) { }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

View file

@ -2,6 +2,8 @@
//! Test that makes sure wrongly-typed bench functions are rejected
#![feature(test)]
#[bench]
fn bar(x: isize) { }
//~^ ERROR mismatched types

View file

@ -1,5 +1,5 @@
error[E0308]: mismatched types
--> $DIR/issue-12997-2.rs:6:1
--> $DIR/issue-12997-2.rs:8:1
|
LL | fn bar(x: isize) { }
| ^^^^^^^^^^^^^^^^^^^^ expected isize, found mutable reference