Skip to content

Commit 5467e3f

Browse files
committed
Add test for bumpalo
1 parent a4c0c6a commit 5467e3f

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

ci/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ if [ "${NO_STD}" = "1" ]; then
99
FEATURES="rustc-internal-api"
1010
OP="build"
1111
else
12-
FEATURES="rustc-internal-api,serde,rayon,raw"
12+
FEATURES="rustc-internal-api,serde,rayon,raw,bumpalo"
1313
OP="test"
1414
fi
1515
if [ "${TRAVIS_RUST_VERSION}" = "nightly" ]; then

src/lib.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,3 +134,12 @@ pub enum TryReserveError {
134134
#[cfg(feature = "bumpalo")]
135135
#[derive(Clone, Copy, Debug)]
136136
pub struct BumpWrapper<'a>(&'a bumpalo::Bump);
137+
138+
#[cfg(feature = "bumpalo")]
139+
#[test]
140+
fn test_bumpalo() {
141+
use bumpalo::Bump;
142+
let bump = Bump::new();
143+
let mut map = HashMap::new_in(BumpWrapper(&bump));
144+
map.insert(0, 1);
145+
}

0 commit comments

Comments
 (0)