File tree 1 file changed +1
-17
lines changed
1 file changed +1
-17
lines changed Original file line number Diff line number Diff line change 42
42
#![ experimental]
43
43
#![ allow( missing_docs) ]
44
44
45
- #[ cfg( not( stage0) ) ]
46
- use marker:: Sized ;
47
-
48
45
pub type GlueFn = extern "Rust" fn ( * const i8 ) ;
49
46
50
47
#[ lang="ty_desc" ]
@@ -203,9 +200,6 @@ extern "rust-intrinsic" {
203
200
/// Gets an identifier which is globally unique to the specified type. This
204
201
/// function will return the same value for a type regardless of whichever
205
202
/// crate it is invoked in.
206
- #[ cfg( not( stage0) ) ]
207
- pub fn type_id < T : ?Sized + ' static > ( ) -> TypeId ;
208
- #[ cfg( stage0) ]
209
203
pub fn type_id < T : ' static > ( ) -> TypeId ;
210
204
211
205
/// Create a value initialized to zero.
@@ -556,19 +550,9 @@ pub struct TypeId {
556
550
}
557
551
558
552
impl TypeId {
559
- /// Returns the `TypeId` of the type this generic function has been
560
- /// instantiated with
561
- #[ cfg( stage0) ]
553
+ /// Returns the `TypeId` of the type this generic function has been instantiated with
562
554
pub fn of < T : ' static > ( ) -> TypeId {
563
555
unsafe { type_id :: < T > ( ) }
564
556
}
565
-
566
- /// Returns the `TypeId` of the type this generic function has been
567
- /// instantiated with
568
- #[ cfg( not( stage0) ) ]
569
- pub fn of < T : ?Sized + ' static > ( ) -> TypeId {
570
- unsafe { type_id :: < T > ( ) }
571
- }
572
-
573
557
pub fn hash ( & self ) -> u64 { self . t }
574
558
}
You can’t perform that action at this time.
0 commit comments