diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2019-10-10 23:37:41 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2019-10-10 23:38:35 +0300 |
| commit | ceb4c3fa308459fa74708d1b4f525a496e4e115e (patch) | |
| tree | 27177d3923f8ff68feb4a46edfe1b01da6713b2e /src/test | |
| parent | 58b54911fabcd1b328fab78014b6833a4e8cfaa3 (diff) | |
| download | rust-ceb4c3fa308459fa74708d1b4f525a496e4e115e.tar.gz rust-ceb4c3fa308459fa74708d1b4f525a496e4e115e.zip | |
stability: Do not use `buffer_lint` after lowering to HIR
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/ui/feature-gates/bench.rs | 4 | ||||
| -rw-r--r-- | src/test/ui/feature-gates/bench.stderr | 13 |
2 files changed, 15 insertions, 2 deletions
diff --git a/src/test/ui/feature-gates/bench.rs b/src/test/ui/feature-gates/bench.rs index afe4dc7d54c..8de390becbe 100644 --- a/src/test/ui/feature-gates/bench.rs +++ b/src/test/ui/feature-gates/bench.rs @@ -1,5 +1,9 @@ +// edition:2018 + #[bench] //~ ERROR use of unstable library feature 'test' //~| WARN this was previously accepted fn bench() {} +use bench as _; //~ ERROR use of unstable library feature 'test' + //~| WARN this was previously accepted fn main() {} diff --git a/src/test/ui/feature-gates/bench.stderr b/src/test/ui/feature-gates/bench.stderr index b9e24e931d4..168ac925724 100644 --- a/src/test/ui/feature-gates/bench.stderr +++ b/src/test/ui/feature-gates/bench.stderr @@ -1,5 +1,5 @@ error: use of unstable library feature 'test': `bench` is a part of custom test frameworks which are unstable - --> $DIR/bench.rs:1:3 + --> $DIR/bench.rs:3:3 | LL | #[bench] | ^^^^^ @@ -8,5 +8,14 @@ LL | #[bench] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! = note: for more information, see issue #64266 <https://github.com/rust-lang/rust/issues/64266> -error: aborting due to previous error +error: use of unstable library feature 'test': `bench` is a part of custom test frameworks which are unstable + --> $DIR/bench.rs:7:5 + | +LL | use bench as _; + | ^^^^^ + | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! + = note: for more information, see issue #64266 <https://github.com/rust-lang/rust/issues/64266> + +error: aborting due to 2 previous errors |
