Skip to content

Commit

Permalink
Merge pull request #1411 from Inkvisto/willbe_warnings_fix
Browse files Browse the repository at this point in the history
NOT READY : (willbe) : fix warnings
  • Loading branch information
Wandalen authored Jul 17, 2024
2 parents ad8ac94 + c237e82 commit eb4b631
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 8 deletions.
2 changes: 2 additions & 0 deletions module/core/derive_tools_meta/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
feature = "derive_index",
feature = "derive_index_mut",
feature = "derive_inner_from",
feature = "derive_new",
feature = "derive_variadic_from",
feature = "derive_phantom"
)
Expand All @@ -34,6 +35,7 @@ mod derive;
// feature = "derive_index",
// feature = "derive_index_mut",
// feature = "derive_inner_from",
// feature = "derive_new",
// feature = "derive_variadic_from",
// feature = "derive_phantom"
// )
Expand Down
8 changes: 4 additions & 4 deletions module/core/macro_tools/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ The purpose of `typ::type_parameters` is to extract type parameters from a given
In this example, we generate a type `core::option::Option<i8, i16, i32, i64>` and extract its type parameters.

```rust
#[ cfg( not( feature = "enabled" ) ) ]
#[ cfg( not( all( feature = "enabled", feature = "typ" ) ) ) ]
fn main(){}
#[ cfg( feature = "enabled" ) ]
#[ cfg( all( feature = "enabled", feature = "typ" ) ) ]
fn main()
{
// Import necessary macros and modules from the `macro_tools` crate.
Expand Down Expand Up @@ -80,9 +80,9 @@ defined in other crates.

```rust

#[ cfg( not( all( feature = "enabled", debug_assertions ) ) ) ]
#[ cfg( not( all( feature = "enabled", feature = "attr_prop", debug_assertions ) ) ) ]
fn main(){}
#[ cfg( all( feature = "enabled", debug_assertions ) ) ]
#[ cfg( all( feature = "enabled", feature = "attr_prop", debug_assertions ) ) ]
fn main()
{

Expand Down
4 changes: 2 additions & 2 deletions module/core/macro_tools/examples/macro_tools_attr_prop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
//! defined in other crates.
//!
#[ cfg( not( all( feature = "enabled", debug_assertions ) ) ) ]
#[ cfg( not( all( feature = "enabled", feature = "attr_prop", debug_assertions ) ) ) ]
fn main(){}
#[ cfg( all( feature = "enabled", debug_assertions ) ) ]
#[ cfg( all( feature = "enabled", feature = "attr_prop", debug_assertions ) ) ]
fn main()
{

Expand Down
4 changes: 2 additions & 2 deletions module/core/macro_tools/examples/macro_tools_trivial.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
//! In this example, we generate a type `core::option::Option<i8, i16, i32, i64>` and extract its type parameters.
//!
#[ cfg( not( feature = "enabled" ) ) ]
#[ cfg( not( all( feature = "enabled", feature = "typ" ) ) ) ]
fn main(){}
#[ cfg( feature = "enabled" ) ]
#[ cfg( all( feature = "enabled", feature = "typ" ) ) ]
fn main()
{
// Import necessary macros and modules from the `macro_tools` crate.
Expand Down
16 changes: 16 additions & 0 deletions module/core/macro_tools/tests/inc/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,39 @@ mod if_enabled

use super::*;

#[ cfg( feature = "attr" ) ]
mod attr_test;
#[ cfg( feature = "attr_prop" ) ]
mod attr_prop_test;
mod basic_test;
#[ cfg( feature = "ct" ) ]
mod compile_time_test;
#[ cfg( feature = "container_kind" ) ]
mod container_kind_test;
#[ cfg( feature = "derive" ) ]
mod derive_test;
#[ cfg( feature = "diag" ) ]
mod diag_test;
mod drop_test;
#[ cfg( feature = "equation" ) ]
mod equation_test;
#[ cfg( feature = "generic_args" ) ]
mod generic_args_test;
#[ cfg( feature = "generic_params" ) ]
mod generic_params_test;
#[ cfg( feature = "item" ) ]
mod item_test;
#[ cfg( feature = "item_struct" ) ]
mod item_struct_test;
#[ cfg( feature = "phantom" ) ]
mod phantom_test;
#[ cfg( feature = "quantifier" ) ]
mod quantifier_test;
#[ cfg( feature = "struct_like" ) ]
mod struct_like_test;
#[ cfg( feature = "tokens" ) ]
mod tokens_test;
#[ cfg( feature = "typ" ) ]
mod typ_test;

}

0 comments on commit eb4b631

Please sign in to comment.