File tree 4 files changed +8
-22
lines changed
4 files changed +8
-22
lines changed Original file line number Diff line number Diff line change @@ -2367,9 +2367,6 @@ The currently implemented features of the reference compiler are:
2367
2367
into a Rust program. This capability, especially the signature for the
2368
2368
annotated function, is subject to change.
2369
2369
2370
- * ` struct_inherit ` - Allows using struct inheritance, which is barely
2371
- implemented and will probably be removed. Don't use this.
2372
-
2373
2370
* ` struct_variant ` - Structural enum variants (those with named fields). It is
2374
2371
currently unknown whether this style of enum variant is as
2375
2372
fully supported as the tuple-forms, and it's not certain
Original file line number Diff line number Diff line change @@ -4692,11 +4692,6 @@ impl<'a> Parser<'a> {
4692
4692
let class_name = try!( self . parse_ident ( ) ) ;
4693
4693
let mut generics = try!( self . parse_generics ( ) ) ;
4694
4694
4695
- if try!( self . eat ( & token:: Colon ) ) {
4696
- let ty = try!( self . parse_ty_sum ( ) ) ;
4697
- self . span_err ( ty. span , "`virtual` structs have been removed from the language" ) ;
4698
- }
4699
-
4700
4695
// There is a special case worth noting here, as reported in issue #17904.
4701
4696
// If we are parsing a tuple struct it is the case that the where clause
4702
4697
// should follow the field list. Like so:
@@ -5383,11 +5378,6 @@ impl<'a> Parser<'a> {
5383
5378
try!( self . expect_one_of ( & [ ] , & [ ] ) ) ;
5384
5379
}
5385
5380
5386
- if try!( self . eat_keyword_noexpect ( keywords:: Virtual ) ) {
5387
- let span = self . span ;
5388
- self . span_err ( span, "`virtual` structs have been removed from the language" ) ;
5389
- }
5390
-
5391
5381
if try!( self . eat_keyword ( keywords:: Static ) ) {
5392
5382
// STATIC ITEM
5393
5383
let m = if try!( self . eat_keyword ( keywords:: Mut ) ) { MutMutable } else { MutImmutable } ;
Original file line number Diff line number Diff line change @@ -575,13 +575,13 @@ declare_special_idents_and_keywords! {
575
575
( 36 , Type , "type" ) ;
576
576
( 37 , Unsafe , "unsafe" ) ;
577
577
( 38 , Use , "use" ) ;
578
- ( 39 , Virtual , "virtual" ) ;
579
- ( 40 , While , "while" ) ;
580
- ( 41 , Continue , "continue" ) ;
581
- ( 42 , Box , "box" ) ;
582
- ( 43 , Const , "const" ) ;
583
- ( 44 , Where , "where" ) ;
578
+ ( 39 , While , "while" ) ;
579
+ ( 40 , Continue , "continue" ) ;
580
+ ( 41 , Box , "box" ) ;
581
+ ( 42 , Const , "const" ) ;
582
+ ( 43 , Where , "where" ) ;
584
583
' reserved:
584
+ ( 44 , Virtual , "virtual" ) ;
585
585
( 45 , Proc , "proc" ) ;
586
586
( 46 , Alignof , "alignof" ) ;
587
587
( 47 , Become , "become" ) ;
Original file line number Diff line number Diff line change 11
11
// compile-flags: -Z parse-only
12
12
13
13
// Test diagnostics for the removed struct inheritance feature.
14
- #![ feature( struct_inherit) ]
15
14
16
- virtual struct SuperStruct { //~ ERROR `virtual` structs have been removed from the language
15
+ virtual struct SuperStruct { //~ ERROR expected item, found `virtual`
17
16
f1 : isize ,
18
17
}
19
18
20
- struct Struct : SuperStruct ; //~ ERROR `virtual` structs have been removed from the language
19
+ struct Struct : SuperStruct ;
21
20
22
21
pub fn main ( ) { }
You can’t perform that action at this time.
0 commit comments