-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit adds a `may_dangle` annotation to `drop`, matching `Vec`. This feature increases the ability of `SmallVec` to be used as a drop-in replacement for `Vec`. A feature is necessary because `may_dangle` is Nightly-only. Fixes #132.
- Loading branch information
1 parent
c1921f4
commit 2fa60c5
Showing
2 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,7 @@ std = [] | |
union = [] | ||
default = ["std"] | ||
specialization = [] | ||
may_dangle = [] | ||
|
||
[lib] | ||
name = "smallvec" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters