File tree 5 files changed +1
-56
lines changed
5 files changed +1
-56
lines changed Original file line number Diff line number Diff line change 5
5
- rust : 1.12.0
6
6
- rust : stable
7
7
env :
8
- - FEATURES="use_generic_array"
9
8
- NODEFAULT=1
10
9
- rust : beta
11
10
- rust : nightly
@@ -16,7 +15,7 @@ matrix:
16
15
- NODROP_FEATURES='use_needs_drop'
17
16
- rust : nightly
18
17
env :
19
- - FEATURES='use_union use_generic_array '
18
+ - FEATURES='use_union'
20
19
- NODROP_FEATURES='use_union'
21
20
branches :
22
21
only :
Original file line number Diff line number Diff line change @@ -19,12 +19,7 @@ version = "0.1.8"
19
19
path = " nodrop"
20
20
default-features = false
21
21
22
- [dependencies .generic-array ]
23
- version = " 0.5.1"
24
- optional = true
25
-
26
22
[features ]
27
23
default = [" std" ]
28
24
std = [" odds/std" , " nodrop/std" ]
29
25
use_union = [" nodrop/use_union" ]
30
- use_generic_array = [" generic-array" ]
Original file line number Diff line number Diff line change @@ -32,24 +32,6 @@ pub trait ArrayExt : Array {
32
32
33
33
impl < A > ArrayExt for A where A : Array { }
34
34
35
- #[ cfg( feature = "use_generic_array" ) ]
36
- unsafe impl < T , U > Array for :: generic_array:: GenericArray < T , U >
37
- where U : :: generic_array:: ArrayLength < T >
38
- {
39
- type Item = T ;
40
- type Index = usize ;
41
- fn as_ptr ( & self ) -> * const Self :: Item {
42
- ( * * self ) . as_ptr ( )
43
- }
44
- fn as_mut_ptr ( & mut self ) -> * mut Self :: Item {
45
- ( * * self ) . as_mut_ptr ( )
46
- }
47
- fn capacity ( ) -> usize {
48
- U :: to_usize ( )
49
- }
50
-
51
- }
52
-
53
35
impl Index for u8 {
54
36
#[ inline( always) ]
55
37
fn to_usize ( self ) -> usize { self as usize }
Original file line number Diff line number Diff line change 14
14
//! - Use the unstable feature untagged unions for the internal implementation,
15
15
//! which has reduced space overhead
16
16
//!
17
- //! - `use_generic_array`
18
- //! - Optional
19
- //! - Requires Rust stable channel
20
- //! - Depend on generic-array and allow using it just like a fixed
21
- //! size array for ArrayVec storage.
22
17
#![ doc( html_root_url="https://docs.rs/arrayvec/0.3/" ) ]
23
18
#![ cfg_attr( not( feature="std" ) , no_std) ]
24
19
extern crate odds;
25
20
extern crate nodrop;
26
21
27
- #[ cfg( feature = "use_generic_array" ) ]
28
- extern crate generic_array;
29
-
30
22
#[ cfg( not( feature="std" ) ) ]
31
23
extern crate core as std;
32
24
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments