From 879afb986c1a6b6beba20d709454b0ce4025ee11 Mon Sep 17 00:00:00 2001 From: wbot <69343704+wtools-bot@users.noreply.github.com> Date: Wed, 3 Jul 2024 16:13:02 +0300 Subject: [PATCH] AUTO : Forward from derives_refactoring_7 to alpha (#1401) fix nightly problems --- module/core/clone_dyn_types/src/lib.rs | 2 +- module/core/data_type/Cargo.toml | 6 +- module/core/data_type/Readme.md | 20 +-- .../data_type/examples/data_type_trivial.rs | 32 +---- module/core/data_type/tests/inc/mod.rs | 2 +- module/core/data_type/tests/tests.rs | 6 +- module/core/derive_tools/Cargo.toml | 8 +- module/core/derive_tools/src/lib.rs | 123 +----------------- module/core/derive_tools_meta/src/derive.rs | 2 - .../src/derive/inner_from.rs | 1 + module/core/inspect_type/Cargo.toml | 5 - module/core/inspect_type/build.rs | 6 +- module/core/inspect_type/src/lib.rs | 11 -- module/core/inspect_type/tests/tests.rs | 2 + module/core/interval_adapter/Cargo.toml | 5 +- module/core/interval_adapter/src/lib.rs | 13 -- module/core/interval_adapter/tests/inc/mod.rs | 3 + .../interval_adapter/tests/interval_tests.rs | 2 + module/core/is_slice/Cargo.toml | 4 - module/core/is_slice/src/lib.rs | 18 +-- module/core/is_slice/tests/inc/mod.rs | 2 + module/core/test_tools/build.rs | 4 + module/core/variadic_from/src/lib.rs | 3 - module/move/wca/src/ca/grammar/command.rs | 2 - module/move/wca/src/lib.rs | 1 + 25 files changed, 46 insertions(+), 237 deletions(-) diff --git a/module/core/clone_dyn_types/src/lib.rs b/module/core/clone_dyn_types/src/lib.rs index 14ba39fea1..786242727b 100644 --- a/module/core/clone_dyn_types/src/lib.rs +++ b/module/core/clone_dyn_types/src/lib.rs @@ -11,7 +11,7 @@ pub mod dependency } /// Internal namespace. -#[ cfg( any( not( feature = "no_std" ), feature = "use_alloc" ) ) ] +// #[ cfg( any( not( feature = "no_std" ), feature = "use_alloc" ) ) ] #[ cfg( feature = "enabled" ) ] pub( crate ) mod private { diff --git a/module/core/data_type/Cargo.toml b/module/core/data_type/Cargo.toml index 6727964719..2da324b145 100644 --- a/module/core/data_type/Cargo.toml +++ b/module/core/data_type/Cargo.toml @@ -34,7 +34,7 @@ default = [ "dt_either", "dt_prelude", "dt_interval", - "dt_collections", + "dt_collection", # "dt_make", # "dt_vectorized_from", # "type_constructor/default", @@ -45,7 +45,7 @@ full = [ "dt_either", "dt_prelude", "dt_interval", - "dt_collections", + "dt_collection", # "dt_make", # "dt_vectorized_from", # "type_constructor/full", @@ -57,7 +57,7 @@ enabled = [] # dt_prelude = [ "collection_tools/reexports" ] dt_prelude = [] # rid of maybe? dt_interval = [ "interval_adapter/enabled" ] -dt_collections = [ "collection_tools/enabled" ] +dt_collection = [ "collection_tools/enabled" ] dt_either = [ "either" ] # qqq : for Anton : integrate all features of collection_tools into data_type and reuse tests diff --git a/module/core/data_type/Readme.md b/module/core/data_type/Readme.md index 1fccd8d0c7..62c1031498 100644 --- a/module/core/data_type/Readme.md +++ b/module/core/data_type/Readme.md @@ -19,28 +19,12 @@ Macro [types](https://docs.rs/type_constructor/latest/type_constructor/types/mac ```rust -#[ cfg( feature = "type_constructor" ) ] +#[ cfg( feature = "enabled" ) ] { use data_type::prelude::*; - types! - { - pub single MySingle : f32; - pub single SingleWithParametrized : std::sync::Arc< T : Copy >; - pub single SingleWithParameter : < T >; - - pub pair MyPair : f32; - pub pair PairWithParametrized : std::sync::Arc< T1 : Copy >, std::sync::Arc< T2 : Copy >; - pub pair PairWithParameter : < T1, T2 >; + // qqq : xxx : write please - pub pair MyHomoPair : f32; - pub pair HomoPairWithParametrized : std::sync::Arc< T : Copy >; - pub pair HomoPairWithParameter : < T >; - - pub many MyMany : f32; - pub many ManyWithParametrized : std::sync::Arc< T : Copy >; - pub many ManyWithParameter : < T >; - } } ``` diff --git a/module/core/data_type/examples/data_type_trivial.rs b/module/core/data_type/examples/data_type_trivial.rs index d3c8b6b8ab..d5a50f0d81 100644 --- a/module/core/data_type/examples/data_type_trivial.rs +++ b/module/core/data_type/examples/data_type_trivial.rs @@ -1,32 +1,6 @@ -//! In Rust, you often need to wrap a given type into a new one. -//! The role of the orphan rules in particular is basically to prevent you from implementing external traits for external types. -//! To overcome the restriction developer usually wrap the external type into a tuple introducing a new type. -//! Type constructor does exactly that and auto-implement traits From, Into, Deref and few more for the constructed type. -//! -//! Macro [types](https://docs.rs/type_constructor/latest/type_constructor/types/macro.types.html) is responsible for generating code for Single, Pair, Homopair, Many. Each type constructor has its own keyword for that, but Pair and Homopair use the same keyword difference in a number of constituent types. It is possible to define all types at once. +// qqq : xxx : write please + +#[ cfg( feature = "enabled" ) ] fn main() { - #[ cfg( feature = "type_constructor" ) ] - { - use data_type::prelude::*; - - types! - { - pub single MySingle : f32; - pub single SingleWithParametrized : std::sync::Arc< T : Copy >; - pub single SingleWithParameter : < T >; - - pub pair MyPair : f32; - pub pair PairWithParametrized : std::sync::Arc< T1 : Copy >, std::sync::Arc< T2 : Copy >; - pub pair PairWithParameter : < T1, T2 >; - - pub pair MyHomoPair : f32; - pub pair HomoPairWithParametrized : std::sync::Arc< T : Copy >; - pub pair HomoPairWithParameter : < T >; - - pub many MyMany : f32; - pub many ManyWithParametrized : std::sync::Arc< T : Copy >; - pub many ManyWithParameter : < T >; - } - } } diff --git a/module/core/data_type/tests/inc/mod.rs b/module/core/data_type/tests/inc/mod.rs index ae7aa08f8a..6b003b16c5 100644 --- a/module/core/data_type/tests/inc/mod.rs +++ b/module/core/data_type/tests/inc/mod.rs @@ -9,6 +9,6 @@ mod either_test; // #[ path = "../../../../core/type_constructor/tests/inc/mod.rs" ] // mod type_constructor; -#[ cfg( any( feature = "interval", feature = "dt_interval" ) ) ] +#[ cfg( any( feature = "dt_interval" ) ) ] #[ path = "../../../../core/interval_adapter/tests/inc/mod.rs" ] mod interval_test; diff --git a/module/core/data_type/tests/tests.rs b/module/core/data_type/tests/tests.rs index 26896b6193..479a7e5268 100644 --- a/module/core/data_type/tests/tests.rs +++ b/module/core/data_type/tests/tests.rs @@ -1,8 +1,4 @@ -// #![ deny( rust_2018_idioms ) ] -// #![ deny( missing_debug_implementations ) ] -// #![ deny( missing_docs ) ] - -// #![ feature( trace_macros ) ] +#![ cfg_attr( feature = "no_std", no_std ) ] #[ allow( unused_imports ) ] use data_type as the_module; diff --git a/module/core/derive_tools/Cargo.toml b/module/core/derive_tools/Cargo.toml index 7aa9e77c4e..6b350e473c 100644 --- a/module/core/derive_tools/Cargo.toml +++ b/module/core/derive_tools/Cargo.toml @@ -58,6 +58,7 @@ default = [ "derive_is_variant", "derive_unwrap", # "derive_convert_case", + "derive_into", "derive_display", "derive_from_str", @@ -155,6 +156,7 @@ derive_index_mut = [ "derive_more", "derive_more/std", "derive_more/index_mut" ] # derive_inner_from = [ "derive_more", "derive_more/into" ] derive_into_iterator = [ "derive_more", "derive_more/std", "derive_more/into_iterator" ] # derive_iterator = [ "derive_more", "derive_more/iterator" ] +derive_into = [ "derive_more", "derive_more/into" ] derive_mul_assign = [ "derive_more", "derive_more/std", "derive_more/mul_assign" ] derive_mul = [ "derive_more", "derive_more/std", "derive_more/mul" ] derive_not = [ "derive_more", "derive_more/std", "derive_more/not" ] @@ -196,9 +198,9 @@ parse-display = { version = "~0.8.2", optional = true, default-features = false ## internal -derive_tools_meta = { workspace = true, features = [] } -variadic_from = { workspace = true, features = [] } -clone_dyn = { workspace = true, features = [ "clone_dyn_types", "clone_dyn_meta" ] } +derive_tools_meta = { workspace = true, optional = true, features = [] } +variadic_from = { workspace = true, optional = true, features = [] } +clone_dyn = { workspace = true, optional = true, features = [ "clone_dyn_types", "clone_dyn_meta" ] } [dev-dependencies] diff --git a/module/core/derive_tools/src/lib.rs b/module/core/derive_tools/src/lib.rs index 77018aa3af..5db00f6a68 100644 --- a/module/core/derive_tools/src/lib.rs +++ b/module/core/derive_tools/src/lib.rs @@ -49,8 +49,8 @@ mod derive_more pub use ::derive_more::Index; #[ cfg( feature = "derive_into" ) ] pub use ::derive_more::Into; - #[ cfg( feature = "derive_iterator" ) ] - pub use ::derive_more::Iterator; + // #[ cfg( feature = "derive_iterator" ) ] + // pub use ::derive_more::Iterator; #[ cfg( feature = "derive_into_iterator" ) ] pub use ::derive_more::IntoIterator; #[ cfg( feature = "derive_mul" ) ] @@ -76,12 +76,6 @@ mod derive_more #[ cfg( any( feature = "derive_variadic_from", feature = "type_variadic_from" ) ) ] pub use variadic_from as variadic; -// #[ cfg( feature = "derive_reflect" ) ] -// pub mod reflect; - -// use derive_tools_meta::Deref; -// use derive_tools_meta::VariadicFrom; - /// Namespace with dependencies. #[ allow( unused_imports ) ] @@ -90,11 +84,10 @@ pub mod dependency { #[ doc( inline ) ] - #[ cfg( any_derive ) ] pub use ::derive_tools_meta; #[ doc( inline ) ] - #[ cfg( feature = "clone_dyn" ) ] + #[ cfg( feature = "derive_clone_dyn" ) ] pub use ::clone_dyn::{ self, dependency::* }; #[ doc( inline ) ] @@ -128,15 +121,7 @@ pub mod own pub use orphan::*; #[ cfg( feature = "derive_clone_dyn" ) ] #[ doc( inline ) ] - #[ allow( unused_imports ) ] pub use ::clone_dyn::orphan::*; - // #[ doc( inline ) ] - // #[ allow( unused_imports ) ] - // pub use super::wtools::orphan::*; - // #[ cfg( feature = "derive_reflect" ) ] - // #[ doc( inline ) ] - // #[ allow( unused_imports ) ] - // pub use super::reflect::orphan::*; } /// Orphan namespace of the module. @@ -160,127 +145,44 @@ pub mod exposed #[ cfg( all( feature = "derive_more" ) ) ] #[ doc( inline ) ] - #[ allow( unused_imports ) ] pub use super::derive_more::*; #[ cfg( feature = "derive_strum" ) ] #[ doc( inline ) ] - #[ allow( unused_imports ) ] pub use ::strum::*; #[ cfg( any( feature = "derive_variadic_from", feature = "type_variadic_from" ) ) ] #[ doc( inline ) ] pub use ::variadic_from::exposed::*; - // #[ cfg( all( feature = "derive_more", feature = "derive_add" ) ) ] - // #[ doc( inline ) ] - // #[ allow( unused_imports ) ] - // pub use ::derive_more::Add; - - // #[ allow( ambiguous_glob_reexports ) ] - // #[ cfg( feature = "derive_more" ) ] - // #[ doc( inline ) ] - // #[ allow( unused_imports ) ] - // pub use ::derive_more:: - // { - // Add, - // AddAssign, - // AsMut, - // AsRef, - // Binary, - // BitAnd, - // BitAndAssign, - // BitOr, - // BitOrAssign, - // BitXor, - // BitXorAssign, - // Constructor, - // Debug, - // Deref, - // DerefMut, - // Display, - // Div, - // DivAssign, - // Error, - // From, - // FromStr, - // Index, - // IndexMut, - // Into, - // IntoIterator, - // IsVariant, - // LowerExp, - // LowerHex, - // Mul, - // MulAssign, - // Neg, - // Not, - // Octal, - // Pointer, - // Product, - // Rem, - // RemAssign, - // Shl, - // ShlAssign, - // Shr, - // ShrAssign, - // Sub, - // SubAssign, - // Sum, - // TryFrom, - // TryInto, - // TryUnwrap, - // Unwrap, - // UpperExp, - // UpperHex, - // }; - #[ cfg( feature = "derive_strum" ) ] #[ doc( inline ) ] - #[ allow( unused_imports ) ] pub use ::strum::*; #[ cfg( feature = "derive_display" ) ] #[ doc( inline ) ] - #[ allow( unused_imports ) ] pub use ::parse_display::Display; #[ cfg( feature = "derive_from_str" ) ] #[ doc( inline ) ] - #[ allow( unused_imports ) ] pub use ::parse_display::FromStr; #[ cfg( feature = "derive_clone_dyn" ) ] #[ doc( inline ) ] - #[ allow( unused_imports ) ] pub use ::clone_dyn::exposed::*; #[ cfg( feature = "derive_clone_dyn" ) ] #[ doc( inline ) ] - #[ allow( unused_imports ) ] pub use ::clone_dyn; - // #[ doc( inline ) ] - // #[ allow( unused_imports ) ] - // pub use super::wtools::exposed::*; - - // #[ cfg( feature = "derive_reflect" ) ] - // #[ doc( inline ) ] - // #[ allow( unused_imports ) ] - // pub use super::reflect::exposed::*; - - // #[ cfg( any_derive ) ] #[ doc( inline ) ] - #[ allow( unused_imports ) ] pub use ::derive_tools_meta::*; #[ doc( inline ) ] - #[ allow( unused_imports ) ] #[ cfg( feature = "derive_from" ) ] pub use ::derive_tools_meta::From; #[ doc( inline ) ] - #[ allow( unused_imports ) ] #[ cfg( feature = "derive_inner_from" ) ] pub use ::derive_tools_meta::InnerFrom; @@ -294,33 +196,14 @@ pub mod prelude use super::*; #[ cfg( feature = "derive_clone_dyn" ) ] #[ doc( inline ) ] - #[ allow( unused_imports ) ] pub use ::clone_dyn; #[ cfg( feature = "derive_clone_dyn" ) ] #[ doc( inline ) ] - #[ allow( unused_imports ) ] pub use ::clone_dyn::prelude::*; - // it should already be in predlue of clone_dyn - // #[ cfg( feature = "derive_clone_dyn" ) ] - // #[ doc( inline ) ] - // #[ allow( unused_imports ) ] - // pub use ::clone_dyn::clone_dyn; - #[ cfg( any( feature = "derive_variadic_from", feature = "type_variadic_from" ) ) ] #[ doc( inline ) ] pub use ::variadic_from::prelude::*; - // #[ cfg( feature = "derive_reflect" ) ] - // #[ doc( inline ) ] - // #[ allow( unused_imports ) ] - // pub use super::reflect::prelude::*; - - // #[ doc( inline ) ] - // #[ allow( unused_imports ) ] - // pub use super::wtools::prelude::*; - // #[ doc( no_inline ) ] - // pub use super::wtools; - } diff --git a/module/core/derive_tools_meta/src/derive.rs b/module/core/derive_tools_meta/src/derive.rs index e86b79ff3c..08649c247f 100644 --- a/module/core/derive_tools_meta/src/derive.rs +++ b/module/core/derive_tools_meta/src/derive.rs @@ -23,7 +23,5 @@ pub mod inner_from; pub mod new; #[ cfg( feature = "derive_variadic_from" ) ] pub mod variadic_from; -#[ cfg( feature = "derive_reflect" ) ] -pub mod reflect; #[ cfg( feature = "derive_phantom" ) ] pub mod phantom; diff --git a/module/core/derive_tools_meta/src/derive/inner_from.rs b/module/core/derive_tools_meta/src/derive/inner_from.rs index 427f447087..ef871671c1 100644 --- a/module/core/derive_tools_meta/src/derive/inner_from.rs +++ b/module/core/derive_tools_meta/src/derive/inner_from.rs @@ -228,6 +228,7 @@ fn from_impl_multiple_fields< 'a > /// /// ## Output /// ```rust +/// use std::convert::From; /// pub struct Struct; /// #[ allow( non_local_definitions ) ] /// #[ allow( clippy::unused_imports ) ] diff --git a/module/core/inspect_type/Cargo.toml b/module/core/inspect_type/Cargo.toml index c5055f1110..cebba6d857 100644 --- a/module/core/inspect_type/Cargo.toml +++ b/module/core/inspect_type/Cargo.toml @@ -24,15 +24,10 @@ workspace = true features = [ "full" ] all-features = false - - [features] default = [ "enabled" ] full = [ "enabled" ] -no_std = [] -use_alloc = [ "no_std" ] enabled = [] -# nightly = [] [dependencies] diff --git a/module/core/inspect_type/build.rs b/module/core/inspect_type/build.rs index 43860208a5..e1ddc05383 100644 --- a/module/core/inspect_type/build.rs +++ b/module/core/inspect_type/build.rs @@ -13,19 +13,23 @@ fn main() Channel::Stable => { println!("cargo:rustc-cfg=RUSTC_IS_STABLE"); + println!("cargo:rustc-check-cfg=cfg(RUSTC_IS_STABLE)"); } Channel::Beta => { println!("cargo:rustc-cfg=RUSTC_IS_BETA"); + println!("cargo:rustc-check-cfg=cfg(RUSTC_IS_BETA)"); } Channel::Nightly => { println!("cargo:rustc-cfg=RUSTC_IS_NIGHTLY"); + println!("cargo:rustc-check-cfg=cfg(RUSTC_IS_NIGHTLY)"); } Channel::Dev => { println!("cargo:rustc-cfg=RUSTC_IS_DEV"); + println!("cargo:rustc-check-cfg=cfg(RUSTC_IS_DEV)"); } } -} \ No newline at end of file +} diff --git a/module/core/inspect_type/src/lib.rs b/module/core/inspect_type/src/lib.rs index 06c66bf3a8..9c08a04308 100644 --- a/module/core/inspect_type/src/lib.rs +++ b/module/core/inspect_type/src/lib.rs @@ -1,18 +1,8 @@ -#![ cfg_attr( feature = "no_std", no_std ) ] #![ doc( html_logo_url = "https://raw.githubusercontent.com/Wandalen/wTools/master/asset/img/logo_v3_trans_square.png" ) ] #![ doc( html_favicon_url = "https://raw.githubusercontent.com/Wandalen/wTools/alpha/asset/img/logo_v3_trans_square_icon_small_v2.ico" ) ] #![ doc( html_root_url = "https://docs.rs/inspect_type/latest/inspect_type/" ) ] #![ doc = include_str!( concat!( env!( "CARGO_MANIFEST_DIR" ), "/", "Readme.md" ) ) ] - -// #[ cfg( not( feature = "no_std" ) ) ] -// /// Little experiment. -// #[ derive( Debug ) ] -// pub struct Experimental( i32 ); - -// #[ cfg( feature = "nightly" ) ] -// #[ cfg( feature = "type_name_of_val" ) ] -// #[ rustversion::nightly ] #[ cfg( RUSTC_IS_NIGHTLY ) ] mod nightly { @@ -104,6 +94,5 @@ pub mod prelude // #[ cfg( feature = "type_name_of_val" ) ] #[ cfg( RUSTC_IS_NIGHTLY ) ] #[ doc( inline ) ] - #[ allow( unused_imports ) ] pub use super::nightly::*; } diff --git a/module/core/inspect_type/tests/tests.rs b/module/core/inspect_type/tests/tests.rs index e24b02720c..1b4624edf8 100644 --- a/module/core/inspect_type/tests/tests.rs +++ b/module/core/inspect_type/tests/tests.rs @@ -1,3 +1,5 @@ +// #![ no_std ] + // #![ cfg_attr( feature = "no_std", no_std ) ] // #![ cfg( custom_inner_attributes ) ] // #![ test_tools::nightly ] diff --git a/module/core/interval_adapter/Cargo.toml b/module/core/interval_adapter/Cargo.toml index feda2b8b61..17d6cdc1a3 100644 --- a/module/core/interval_adapter/Cargo.toml +++ b/module/core/interval_adapter/Cargo.toml @@ -25,10 +25,9 @@ features = [ "full" ] all-features = false - [features] -default = [ "enabled" ] -full = [ "enabled" ] +default = [ "enabled", "no_std" ] +full = [ "default" ] no_std = [] use_alloc = [ "no_std" ] enabled = [] diff --git a/module/core/interval_adapter/src/lib.rs b/module/core/interval_adapter/src/lib.rs index be9655e0ff..87e06873af 100644 --- a/module/core/interval_adapter/src/lib.rs +++ b/module/core/interval_adapter/src/lib.rs @@ -2,19 +2,6 @@ #![ doc( html_logo_url = "https://raw.githubusercontent.com/Wandalen/wTools/master/asset/img/logo_v3_trans_square.png" ) ] #![ doc( html_favicon_url = "https://raw.githubusercontent.com/Wandalen/wTools/alpha/asset/img/logo_v3_trans_square_icon_small_v2.ico" ) ] #![ doc( html_root_url = "https://docs.rs/winterval/latest/winterval/" ) ] -// #![ deny( rust_2018_idioms ) ] -// #![ deny( missing_debug_implementations ) ] -// #![ deny( missing_docs ) ] - -// #![ feature( step_trait ) ] - -/* zzz : consider https://doc.rust-lang.org/std/ops/trait.RangeBounds.html */ -/* zzz : implement iterator */ - -//! -//! Interval adapter for both open/closed implementations of intervals ( ranges ). -//! - #![ doc = include_str!( concat!( env!( "CARGO_MANIFEST_DIR" ), "/", "Readme.md" ) ) ] /// Internal namespace. diff --git a/module/core/interval_adapter/tests/inc/mod.rs b/module/core/interval_adapter/tests/inc/mod.rs index 0014f67a76..3751758e7b 100644 --- a/module/core/interval_adapter/tests/inc/mod.rs +++ b/module/core/interval_adapter/tests/inc/mod.rs @@ -1,3 +1,4 @@ + #[ allow( unused_imports ) ] use super::*; @@ -193,6 +194,7 @@ tests_impls! { for i in interval { + #[ cfg( not( feature = "no_std" ) ) ] println!( "{i}" ); } } @@ -216,6 +218,7 @@ tests_impls! fn f1( interval : impl NonIterableInterval ) { + #[ cfg( not( feature = "no_std" ) ) ] println!( "Do something with this {:?} .. {:?} interval", interval.left(), interval.right() ); } diff --git a/module/core/interval_adapter/tests/interval_tests.rs b/module/core/interval_adapter/tests/interval_tests.rs index 8b71381bfb..fc2c020c01 100644 --- a/module/core/interval_adapter/tests/interval_tests.rs +++ b/module/core/interval_adapter/tests/interval_tests.rs @@ -1,3 +1,5 @@ +#![ cfg_attr( feature = "no_std", no_std ) ] + #[ allow( unused_imports ) ] use interval_adapter as the_module; #[ allow( unused_imports ) ] diff --git a/module/core/is_slice/Cargo.toml b/module/core/is_slice/Cargo.toml index afcff35d65..b0945c3613 100644 --- a/module/core/is_slice/Cargo.toml +++ b/module/core/is_slice/Cargo.toml @@ -24,13 +24,9 @@ workspace = true features = [ "full" ] all-features = false - - [features] default = [ "enabled" ] full = [ "enabled" ] -no_std = [] -use_alloc = [ "no_std" ] enabled = [] [dependencies] diff --git a/module/core/is_slice/src/lib.rs b/module/core/is_slice/src/lib.rs index 2c08dcbf90..b33a3292a0 100644 --- a/module/core/is_slice/src/lib.rs +++ b/module/core/is_slice/src/lib.rs @@ -1,15 +1,7 @@ -#![ cfg_attr( feature = "no_std", no_std ) ] +#![ no_std ] #![ doc( html_logo_url = "https://raw.githubusercontent.com/Wandalen/wTools/master/asset/img/logo_v3_trans_square.png" ) ] #![ doc( html_favicon_url = "https://raw.githubusercontent.com/Wandalen/wTools/alpha/asset/img/logo_v3_trans_square_icon_small_v2.ico" ) ] #![ doc( html_root_url = "https://docs.rs/inspect_type/latest/inspect_type/" ) ] -// #![ deny( rust_2018_idioms ) ] -// #![ deny( missing_debug_implementations ) ] -// #![ deny( missing_docs ) ] - -//! -//! Diagnostic-purpose tools to inspect type of a variable and its size. -//! - #![ doc = include_str!( concat!( env!( "CARGO_MANIFEST_DIR" ), "/", "Readme.md" ) ) ] #[ cfg( feature = "enabled" ) ] @@ -118,10 +110,10 @@ pub mod prelude // { // }; - #[ cfg( feature = "nightly" ) ] - #[ doc( inline ) ] - #[ allow( unused_imports ) ] - pub use super::nightly::*; + // #[ cfg( feature = "nightly" ) ] + // #[ doc( inline ) ] + // #[ allow( unused_imports ) ] + // pub use super::nightly::*; #[ doc( inline ) ] #[ allow( unused_imports ) ] diff --git a/module/core/is_slice/tests/inc/mod.rs b/module/core/is_slice/tests/inc/mod.rs index f2b9dec7e1..d2e9305da9 100644 --- a/module/core/is_slice/tests/inc/mod.rs +++ b/module/core/is_slice/tests/inc/mod.rs @@ -1,3 +1,5 @@ +#![ no_std ] + #[ allow( unused_imports ) ] use super::*; diff --git a/module/core/test_tools/build.rs b/module/core/test_tools/build.rs index 43860208a5..226b0dd147 100644 --- a/module/core/test_tools/build.rs +++ b/module/core/test_tools/build.rs @@ -13,18 +13,22 @@ fn main() Channel::Stable => { println!("cargo:rustc-cfg=RUSTC_IS_STABLE"); + println!("cargo:rustc-check-cfg=cfg(RUSTC_IS_STABLE)"); } Channel::Beta => { println!("cargo:rustc-cfg=RUSTC_IS_BETA"); + println!("cargo:rustc-check-cfg=cfg(RUSTC_IS_BETA)"); } Channel::Nightly => { println!("cargo:rustc-cfg=RUSTC_IS_NIGHTLY"); + println!("cargo:rustc-check-cfg=cfg(RUSTC_IS_NIGHTLY)"); } Channel::Dev => { println!("cargo:rustc-cfg=RUSTC_IS_DEV"); + println!("cargo:rustc-check-cfg=cfg(RUSTC_IS_DEV)"); } } diff --git a/module/core/variadic_from/src/lib.rs b/module/core/variadic_from/src/lib.rs index a853004cdc..872ee6acc1 100644 --- a/module/core/variadic_from/src/lib.rs +++ b/module/core/variadic_from/src/lib.rs @@ -12,7 +12,6 @@ pub mod variadic; #[ cfg( feature = "enabled" ) ] pub mod dependency { - #[ cfg( derive_variadic_from ) ] pub use ::derive_tools_meta; } @@ -54,9 +53,7 @@ pub mod exposed #[ doc( inline ) ] pub use prelude::*; - // #[ cfg( any_derive ) ] #[ doc( inline ) ] - #[ allow( unused_imports ) ] pub use ::derive_tools_meta::*; } diff --git a/module/move/wca/src/ca/grammar/command.rs b/module/move/wca/src/ca/grammar/command.rs index bab839527e..41baa6323c 100644 --- a/module/move/wca/src/ca/grammar/command.rs +++ b/module/move/wca/src/ca/grammar/command.rs @@ -103,8 +103,6 @@ pub( crate ) mod private /// Map of aliases. // Aliased key -> Original key pub properties_aliases : HashMap< String, String >, - // aaa : for Bohdan : routine should also be here - // aaa : here it is // qqq : make it usable and remove default(?) /// The type `Routine` represents the specific implementation of the routine. #[ scalar( setter = false ) ] diff --git a/module/move/wca/src/lib.rs b/module/move/wca/src/lib.rs index f65d8fd12a..fc8eea2087 100644 --- a/module/move/wca/src/lib.rs +++ b/module/move/wca/src/lib.rs @@ -5,6 +5,7 @@ #![ doc = include_str!( concat!( env!( "CARGO_MANIFEST_DIR" ), "/", "doc/", "wca.md" ) ) ] #![ allow( where_clauses_object_safety ) ] // https://github.com/chris-morgan/anymap/issues/31 +// qqq : xxx : is in neccessary? use mod_interface::mod_interface;