mirror of
https://github.com/eyre-rs/eyre.git
synced 2025-09-27 13:01:29 +00:00
emit rustc-check-cfg info and fix doc_lazy_continuation clippy warning (#200)
This should resolve clippy warnings on master
This commit is contained in:
parent
fc83cb8125
commit
7706273bcf
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,2 @@
|
|||||||
/target
|
/target
|
||||||
**/*.rs.bk
|
**/*.rs.bk
|
||||||
tags
|
|
||||||
|
@ -20,6 +20,9 @@ enum Toolchain {
|
|||||||
|
|
||||||
impl Toolchain {
|
impl Toolchain {
|
||||||
fn set_feature(self) {
|
fn set_feature(self) {
|
||||||
|
println!("cargo:rustc-check-cfg=cfg(nightly)");
|
||||||
|
println!("cargo:rustc-check-cfg=cfg(beta)");
|
||||||
|
println!("cargo:rustc-check-cfg=cfg(stable)");
|
||||||
match self {
|
match self {
|
||||||
Toolchain::Nightly => println!("cargo:rustc-cfg=nightly"),
|
Toolchain::Nightly => println!("cargo:rustc-cfg=nightly"),
|
||||||
Toolchain::Beta => println!("cargo:rustc-cfg=beta"),
|
Toolchain::Beta => println!("cargo:rustc-cfg=beta"),
|
||||||
|
@ -5,6 +5,13 @@ use std::{
|
|||||||
};
|
};
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
println!("cargo:rustc-check-cfg=cfg(nightly)");
|
||||||
|
println!("cargo:rustc-check-cfg=cfg(track_caller)");
|
||||||
|
println!("cargo:rustc-check-cfg=cfg(generic_member_access)");
|
||||||
|
println!("cargo:rustc-check-cfg=cfg(eyre_no_fmt_args_capture)");
|
||||||
|
println!("cargo:rustc-check-cfg=cfg(backtrace)");
|
||||||
|
println!("cargo:rustc-check-cfg=cfg(eyre_no_fmt_arguments_as_str)");
|
||||||
|
println!("cargo:rustc-check-cfg=cfg(doc_cfg)");
|
||||||
let ac = autocfg::new();
|
let ac = autocfg::new();
|
||||||
|
|
||||||
// https://github.com/rust-lang/rust/issues/99301 [nightly]
|
// https://github.com/rust-lang/rust/issues/99301 [nightly]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user