File tree 3 files changed +2
-16
lines changed
3 files changed +2
-16
lines changed Original file line number Diff line number Diff line change 1
1
[package ]
2
2
3
3
name = " string_cache"
4
- version = " 0.2.24 "
4
+ version = " 0.2.25 "
5
5
authors = [ " The Servo Project Developers" ]
6
6
description = " A string interning library for Rust, developed as part of the Servo project."
7
7
license = " MIT / Apache-2.0"
Original file line number Diff line number Diff line change @@ -169,7 +169,6 @@ impl StringCache {
169
169
170
170
// NOTE: Deriving Eq here implies that a given string must always
171
171
// be interned the same way.
172
- #[ cfg_attr( feature = "unstable" , unsafe_no_drop_flag) ] // See tests::atom_drop_is_idempotent
173
172
#[ derive( Eq , Hash , PartialEq ) ]
174
173
pub struct Atom {
175
174
/// This field is public so that the `atom!()` macro can use it.
@@ -771,18 +770,6 @@ mod tests {
771
770
let _: & str = atom. as_ref ( ) ;
772
771
}
773
772
774
- /// Atom uses #[unsafe_no_drop_flag] to stay small, so drop() may be called more than once.
775
- /// In calls after the first one, the atom will be filled with a POST_DROP value.
776
- /// drop() must be a no-op in this case.
777
- #[ cfg( feature = "unstable" ) ]
778
- #[ test]
779
- fn atom_drop_is_idempotent ( ) {
780
- use super :: from_packed_dynamic;
781
- unsafe {
782
- assert_eq ! ( from_packed_dynamic( mem:: POST_DROP_U64 ) , None ) ;
783
- }
784
- }
785
-
786
773
#[ test]
787
774
fn string_cache_entry_alignment_is_sufficient ( ) {
788
775
assert ! ( mem:: align_of:: <StringCacheEntry >( ) >= ENTRY_ALIGNMENT ) ;
Original file line number Diff line number Diff line change 11
11
#![ crate_type = "rlib" ]
12
12
13
13
#![ cfg_attr( test, deny( warnings) ) ]
14
- #![ cfg_attr( all( test, feature = "unstable" ) , feature( test, filling_drop) ) ]
15
- #![ cfg_attr( feature = "unstable" , feature( unsafe_no_drop_flag) ) ]
14
+ #![ cfg_attr( all( test, feature = "unstable" ) , feature( test) ) ]
16
15
17
16
#[ cfg( all( test, feature = "unstable" ) ) ] extern crate test;
18
17
#[ cfg( feature = "log-events" ) ] extern crate rustc_serialize;
You can’t perform that action at this time.
0 commit comments