File tree 4 files changed +18
-9
lines changed
4 files changed +18
-9
lines changed Original file line number Diff line number Diff line change 1
1
/target
2
2
** /* .rs.bk
3
- tags
Original file line number Diff line number Diff line change @@ -20,6 +20,9 @@ enum Toolchain {
20
20
21
21
impl Toolchain {
22
22
fn set_feature ( self ) {
23
+ println ! ( "cargo:rustc-check-cfg=cfg(nightly)" ) ;
24
+ println ! ( "cargo:rustc-check-cfg=cfg(beta)" ) ;
25
+ println ! ( "cargo:rustc-check-cfg=cfg(stable)" ) ;
23
26
match self {
24
27
Toolchain :: Nightly => println ! ( "cargo:rustc-cfg=nightly" ) ,
25
28
Toolchain :: Beta => println ! ( "cargo:rustc-cfg=beta" ) ,
Original file line number Diff line number Diff line change @@ -5,6 +5,13 @@ use std::{
5
5
} ;
6
6
7
7
fn main ( ) {
8
+ println ! ( "cargo:rustc-check-cfg=cfg(nightly)" ) ;
9
+ println ! ( "cargo:rustc-check-cfg=cfg(track_caller)" ) ;
10
+ println ! ( "cargo:rustc-check-cfg=cfg(generic_member_access)" ) ;
11
+ println ! ( "cargo:rustc-check-cfg=cfg(eyre_no_fmt_args_capture)" ) ;
12
+ println ! ( "cargo:rustc-check-cfg=cfg(backtrace)" ) ;
13
+ println ! ( "cargo:rustc-check-cfg=cfg(eyre_no_fmt_arguments_as_str)" ) ;
14
+ println ! ( "cargo:rustc-check-cfg=cfg(doc_cfg)" ) ;
8
15
let ac = autocfg:: new ( ) ;
9
16
10
17
// https://github.com/rust-lang/rust/issues/99301 [nightly]
Original file line number Diff line number Diff line change 39
39
//! to avoid using `eyre::Report` as your public error type.
40
40
//!
41
41
//! - You export an undocumented error interface that is otherwise still
42
- //! accessible via downcast, making it hard for users to react to specific
43
- //! errors while not preventing them from depending on details you didn't mean
44
- //! to make part of your public API.
42
+ //! accessible via downcast, making it hard for users to react to specific
43
+ //! errors while not preventing them from depending on details you didn't mean
44
+ //! to make part of your public API.
45
45
//! - This in turn makes the error types of all libraries you use a part of
46
- //! your public API as well, and makes changing any of those libraries into
47
- //! undetectable runtime breakage.
46
+ //! your public API as well, and makes changing any of those libraries into
47
+ //! undetectable runtime breakage.
48
48
//! - If many of your errors are constructed from strings, you encourage your
49
- //! users to use string comparison for reacting to specific errors, which is
50
- //! brittle and turns updating error messages into potentially undetectable
51
- //! runtime breakage.
49
+ //! users to use string comparison for reacting to specific errors, which is
50
+ //! brittle and turns updating error messages into potentially undetectable
51
+ //! runtime breakage.
52
52
//!
53
53
//! ## Details
54
54
//!
You can’t perform that action at this time.
0 commit comments