Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed deprecated macros #37

Merged
merged 2 commits into from
Jan 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

* `hashbrown::hash_set` macro

### Removed

* `map` macro

* `map_e` macro

* `set` macro


## [0.2.6]

Expand Down Expand Up @@ -63,15 +71,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed

* enhanced performance of `vec_no_clone` macro when used with a
* Enhanced performance of `vec_no_clone` macro when used with a
list of elements


## [0.2.3]

### Changed

* better allocation performace for all collections
* Better allocation performace for all collections


## [0.2.2]
Expand Down
30 changes: 0 additions & 30 deletions src/_std.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,6 @@ macro_rules! hash_map {
};
}

/// Deprecated. Use [`hash_map!`] instead.
///
#[deprecated = "deprecated in favour of `hash_map!`. Will be removed in `map-macro v0.3.0`"]
#[macro_export]
macro_rules! map {
{$($k: expr => $v: expr),* $(,)?} => {
::std::collections::HashMap::from([$(($k, $v),)*])
};
}

/// Explicitly typed equivalent of [`hash_map!`], suitable for
/// [trait object values](crate#explicitly-typed-values-for-trait-objects).
///
Expand Down Expand Up @@ -60,16 +50,6 @@ macro_rules! hash_map_e {
};
}

/// Deprecated. Use [`hash_map_e!`] instead.
///
#[deprecated = "deprecated in favour of `hash_map_e!`. Will be removed in `map-macro v0.3.0`"]
#[macro_export]
macro_rules! map_e {
{$($k: expr => $v: expr),* $(,)?} => {
::std::collections::HashMap::from([$(($k, $v as _),)*])
};
}

/// Macro for creating a [`BTreeMap`](::std::collections::BTreeMap).
///
/// Syntactic sugar for [`BTreeMap::from`](::std::collections::BTreeMap::from).
Expand Down Expand Up @@ -141,16 +121,6 @@ macro_rules! hash_set {
};
}

/// Deprecated. Use [`hash_set!`] instead.
///
#[deprecated = "deprecated in favour of `hash_set!`. Will be removed in `map-macro v0.3.0`"]
#[macro_export]
macro_rules! set {
{$($v: expr),* $(,)?} => {
::std::collections::HashSet::from([$($v,)*])
};
}

/// Macro for creating a [`BTreeSet`](::std::collections::BTreeSet).
///
/// Syntactic sugar for [`BTreeSet::from`](::std::collections::BTreeSet::from).
Expand Down
58 changes: 0 additions & 58 deletions tests/map.rs

This file was deleted.

31 changes: 0 additions & 31 deletions tests/set.rs

This file was deleted.

Loading