Remove stabilized feature(backtrace) from ui test

This commit is contained in:
David Tolnay 2022-08-10 21:18:11 -07:00
parent 0ac645e896
commit 1442e27eaf
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82
2 changed files with 3 additions and 13 deletions

View File

@ -1,7 +1,5 @@
// https://github.com/dtolnay/thiserror/issues/163
#![feature(backtrace)]
use std::backtrace::Backtrace;
use thiserror::Error;

View File

@ -1,13 +1,5 @@
error: deriving From requires no fields other than source and backtrace
--> tests/ui/from-backtrace-backtrace.rs:10:18
|
10 | pub struct Error(#[from] #[backtrace] std::io::Error, Backtrace);
| ^^^^^^^
warning: the feature `backtrace` has been stable since 1.65.0 and no longer requires an attribute to enable
--> tests/ui/from-backtrace-backtrace.rs:3:12
--> tests/ui/from-backtrace-backtrace.rs:8:18
|
3 | #![feature(backtrace)]
| ^^^^^^^^^
|
= note: `#[warn(stable_features)]` on by default
8 | pub struct Error(#[from] #[backtrace] std::io::Error, Backtrace);
| ^^^^^^^