Remove derives Encodable/Decodable and unstabilize attribute #[bench]
This commit is contained in:
parent
9152fe4ea0
commit
73dae4eaf9
20 changed files with 224 additions and 298 deletions
|
|
@ -32,6 +32,7 @@
|
|||
|
||||
// check-pass
|
||||
|
||||
#![feature(test)]
|
||||
#![warn(unused_attributes, unknown_lints)]
|
||||
|
||||
// UNGATED WHITE-LISTED BUILT-IN ATTRIBUTES
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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) { }
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
|
|||
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
//! Test that makes sure wrongly-typed bench functions are rejected
|
||||
|
||||
#![feature(test)]
|
||||
|
||||
#[bench]
|
||||
fn bar(x: isize) { }
|
||||
//~^ ERROR mismatched types
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue