File tree 5 files changed +9
-0
lines changed
5 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -86,6 +86,7 @@ pub static HEAP: () = ();
86
86
/// See the [module-level documentation](../../std/boxed/index.html) for more.
87
87
#[ lang = "owned_box" ]
88
88
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
89
+ #[ fundamental]
89
90
pub struct Box < T > ( Unique < T > ) ;
90
91
91
92
impl < T > Box < T > {
Original file line number Diff line number Diff line change 71
71
#![ feature( no_std) ]
72
72
#![ no_std]
73
73
#![ feature( allocator) ]
74
+ #![ feature( custom_attribute) ]
75
+ #![ feature( fundamental) ]
74
76
#![ feature( lang_items, unsafe_destructor) ]
75
77
#![ feature( box_syntax) ]
76
78
#![ feature( optin_builtin_traits) ]
Original file line number Diff line number Diff line change 70
70
#![ feature( unboxed_closures) ]
71
71
#![ feature( rustc_attrs) ]
72
72
#![ feature( optin_builtin_traits) ]
73
+ #![ feature( fundamental) ]
73
74
#![ feature( concat_idents) ]
74
75
#![ feature( reflect) ]
76
+ #![ feature( custom_attribute) ]
75
77
76
78
#[ macro_use]
77
79
mod macros;
Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ impl !Send for Managed { }
49
49
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
50
50
#[ lang="sized" ]
51
51
#[ rustc_on_unimplemented = "`{Self}` does not have a constant size known at compile-time" ]
52
+ #[ fundamental] // for Default, for example, which requires that `[T]: !Default` be evaluatable
52
53
pub trait Sized : MarkerTrait {
53
54
// Empty.
54
55
}
Original file line number Diff line number Diff line change @@ -1117,6 +1117,7 @@ impl<'a, T: ?Sized> DerefMut for &'a mut T {
1117
1117
#[ lang="fn" ]
1118
1118
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1119
1119
#[ rustc_paren_sugar]
1120
+ #[ fundamental] // so that regex can rely that `&str: !FnMut`
1120
1121
pub trait Fn < Args > : FnMut < Args > {
1121
1122
/// This is called when the call operator is used.
1122
1123
extern "rust-call" fn call ( & self , args : Args ) -> Self :: Output ;
@@ -1126,6 +1127,7 @@ pub trait Fn<Args> : FnMut<Args> {
1126
1127
#[ lang="fn_mut" ]
1127
1128
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1128
1129
#[ rustc_paren_sugar]
1130
+ #[ fundamental] // so that regex can rely that `&str: !FnMut`
1129
1131
pub trait FnMut < Args > : FnOnce < Args > {
1130
1132
/// This is called when the call operator is used.
1131
1133
extern "rust-call" fn call_mut ( & mut self , args : Args ) -> Self :: Output ;
@@ -1135,6 +1137,7 @@ pub trait FnMut<Args> : FnOnce<Args> {
1135
1137
#[ lang="fn_once" ]
1136
1138
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1137
1139
#[ rustc_paren_sugar]
1140
+ #[ fundamental] // so that regex can rely that `&str: !FnMut`
1138
1141
pub trait FnOnce < Args > {
1139
1142
/// The returned type after the call operator is used.
1140
1143
type Output ;
You can’t perform that action at this time.
0 commit comments