File tree Expand file tree Collapse file tree 10 files changed +2
-18
lines changed Expand file tree Collapse file tree 10 files changed +2
-18
lines changed Original file line number Diff line number Diff line change 8686 - name : Rustdoc [nightly]
8787 env :
8888 # this should need nightly
89- RUSTDOCFLAGS : " --cfg doc_cfg "
89+ RUSTDOCFLAGS : " --cfg docsrs "
9090 run : cargo doc --all-features
9191 # deploy docs from nightly for doc_cfg feature
9292 # (for stable we'd create a new job and use the cache)
Original file line number Diff line number Diff line change @@ -34,7 +34,3 @@ version-sync = "0.9.1"
3434[package .metadata .docs .rs ]
3535all-features = true
3636targets = []
37-
38- [lints .rust ]
39- # allow #[cfg_attr(doc_cfg, doc(cfg(...)))]
40- unexpected_cfgs = { level = " warn" , check-cfg = [' cfg(doc_cfg)' ] }
Original file line number Diff line number Diff line change @@ -295,7 +295,6 @@ impl From<IpAddr> for AnyIpCidr {
295295}
296296
297297#[ cfg( feature = "bitstring" ) ]
298- #[ cfg_attr( doc_cfg, doc( cfg( feature = "bitstring" ) ) ) ]
299298impl bitstring:: BitString for AnyIpCidr {
300299 fn get ( & self , ndx : usize ) -> bool {
301300 assert ! ( !self . is_any( ) ) ;
Original file line number Diff line number Diff line change 11#[ cfg( feature = "bitstring" ) ]
2- #[ cfg_attr( doc_cfg, doc( cfg( feature = "bitstring" ) ) ) ]
32use bitstring:: FixedBitString ;
43
54use core:: {
@@ -32,7 +31,6 @@ use crate::{
3231macro_rules! impl_cidr_for {
3332 ( $n: ident : inet $inet: ident : addr $addr: ident : pair $pair: ident : family $family: expr) => {
3433 #[ cfg( feature = "bitstring" ) ]
35- #[ cfg_attr( doc_cfg, doc( cfg( feature = "bitstring" ) ) ) ]
3634 impl bitstring:: BitString for $n {
3735 fn get( & self , ndx: usize ) -> bool {
3836 self . address. get( ndx)
Original file line number Diff line number Diff line change 11#![ cfg( feature = "serde" ) ]
2- #![ cfg_attr( doc_cfg, doc( cfg( feature = "serde" ) ) ) ]
32
43use crate :: {
54 cidr:: {
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ use core::{
55 num:: ParseIntError ,
66} ;
77#[ cfg( feature = "std" ) ]
8- #[ cfg_attr( doc_cfg, doc( cfg( feature = "std" ) ) ) ]
98use std:: error:: Error ;
109use std:: net:: AddrParseError ;
1110
@@ -39,7 +38,6 @@ impl fmt::Display for NetworkLengthTooLongError {
3938}
4039
4140#[ cfg( feature = "std" ) ]
42- #[ cfg_attr( doc_cfg, doc( cfg( feature = "std" ) ) ) ]
4341impl Error for NetworkLengthTooLongError {
4442 fn description ( & self ) -> & str {
4543 "network length too long"
@@ -86,7 +84,6 @@ impl fmt::Display for NetworkParseError {
8684}
8785
8886#[ cfg( feature = "std" ) ]
89- #[ cfg_attr( doc_cfg, doc( cfg( feature = "std" ) ) ) ]
9087impl Error for NetworkParseError {
9188 fn description ( & self ) -> & str {
9289 "network parse error"
@@ -149,7 +146,6 @@ impl fmt::Display for InetTupleError {
149146}
150147
151148#[ cfg( feature = "std" ) ]
152- #[ cfg_attr( doc_cfg, doc( cfg( feature = "std" ) ) ) ]
153149impl Error for InetTupleError {
154150 fn description ( & self ) -> & str {
155151 "inet tuple error"
Original file line number Diff line number Diff line change 11#[ cfg( feature = "bitstring" ) ]
2- #[ cfg_attr( doc_cfg, doc( cfg( feature = "bitstring" ) ) ) ]
32use bitstring:: FixedBitString ;
43
54use core:: {
@@ -29,7 +28,6 @@ use crate::{
2928macro_rules! impl_inet_for {
3029 ( $n: ident : cidr $cidr: ident : addr $addr: ident : pair $pair: ident : family $family: expr) => {
3130 #[ cfg( feature = "bitstring" ) ]
32- #[ cfg_attr( doc_cfg, doc( cfg( feature = "bitstring" ) ) ) ]
3331 impl bitstring:: BitString for $n {
3432 fn get( & self , ndx: usize ) -> bool {
3533 self . address. get( ndx)
Original file line number Diff line number Diff line change 11#![ cfg( feature = "serde" ) ]
2- #![ cfg_attr( doc_cfg, doc( cfg( feature = "serde" ) ) ) ]
32
43use crate :: {
54 inet:: {
Original file line number Diff line number Diff line change 1- #![ cfg_attr( doc_cfg , feature( doc_cfg ) ) ]
1+ #![ cfg_attr( docsrs , feature( doc_auto_cfg ) ) ]
22#![ cfg_attr( not( feature = "std" ) , no_std) ]
33#![ cfg_attr( feature = "no_unsafe" , forbid( unsafe_code) ) ]
44#![ warn( missing_docs) ]
Original file line number Diff line number Diff line change 11#![ cfg( feature = "serde" ) ]
2- #![ cfg_attr( doc_cfg, doc( cfg( feature = "serde" ) ) ) ]
32
43use core:: fmt;
54use serde:: {
You can’t perform that action at this time.
0 commit comments