Skip to content

Commit

Permalink
feat: rename feature to trivial_bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
luxbe committed Aug 30, 2023
1 parent f82ee72 commit afa656f
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion multi_index_map/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ name = "performance"
harness = false

[features]
experimental = ["multi_index_map_derive/experimental"]
trivial_bounds = ["multi_index_map_derive/trivial_bounds"]
4 changes: 2 additions & 2 deletions multi_index_map/tests/debug.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#![cfg_attr(feature = "experimental", feature(trivial_bounds))]
#![cfg(feature = "experimental")]
#![cfg_attr(feature = "trivial_bounds", feature(trivial_bounds))]
#![cfg(feature = "trivial_bounds")]
use multi_index_map::MultiIndexMap;

#[derive(Hash, PartialEq, Eq, Clone, Debug)]
Expand Down
2 changes: 1 addition & 1 deletion multi_index_map/tests/get_and_modify_mut.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![cfg_attr(feature = "experimental", feature(trivial_bounds))]
#![cfg_attr(feature = "trivial_bounds", feature(trivial_bounds))]

use multi_index_map::MultiIndexMap;

Expand Down
2 changes: 1 addition & 1 deletion multi_index_map/tests/hashed_unique.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![cfg_attr(feature = "experimental", feature(trivial_bounds))]
#![cfg_attr(feature = "trivial_bounds", feature(trivial_bounds))]

use multi_index_map::MultiIndexMap;

Expand Down
2 changes: 1 addition & 1 deletion multi_index_map/tests/mixed_non_unique.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![cfg_attr(feature = "experimental", feature(trivial_bounds))]
#![cfg_attr(feature = "trivial_bounds", feature(trivial_bounds))]

use multi_index_map::MultiIndexMap;

Expand Down
2 changes: 1 addition & 1 deletion multi_index_map/tests/ordered_unique.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![cfg_attr(feature = "experimental", feature(trivial_bounds))]
#![cfg_attr(feature = "trivial_bounds", feature(trivial_bounds))]

use multi_index_map::MultiIndexMap;

Expand Down
2 changes: 1 addition & 1 deletion multi_index_map_derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ convert_case = { version = "0.6" }
proc-macro = true

[features]
experimental = []
trivial_bounds = []
2 changes: 1 addition & 1 deletion multi_index_map_derive/src/generators.rs
Original file line number Diff line number Diff line change
Expand Up @@ -861,7 +861,7 @@ pub(crate) fn generate_expanded(
lookup_table_fields_debug: impl Iterator<Item = proc_macro2::TokenStream>,
lookup_table_field_types: impl Iterator<Item = proc_macro2::TokenStream>,
) -> proc_macro2::TokenStream {
let debug_impl = if cfg!(feature = "experimental") {
let debug_impl = if cfg!(feature = "trivial_bounds") {
quote! {
// #[allow(trivial_bounds)]
impl core::fmt::Debug for #map_name where #element_name: core::fmt::Debug,
Expand Down

0 comments on commit afa656f

Please sign in to comment.