File tree 7 files changed +16
-16
lines changed
7 files changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -264,7 +264,7 @@ impl<T> LinkedList<T> {
264
264
/// ```
265
265
#[ inline]
266
266
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
267
- pub const fn new ( ) -> Self {
267
+ pub fn new ( ) -> Self {
268
268
LinkedList {
269
269
head : None ,
270
270
tail : None ,
@@ -341,7 +341,7 @@ impl<T> LinkedList<T> {
341
341
/// ```
342
342
#[ inline]
343
343
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
344
- pub const fn iter ( & self ) -> Iter < T > {
344
+ pub fn iter ( & self ) -> Iter < T > {
345
345
Iter {
346
346
head : self . head ,
347
347
tail : self . tail ,
@@ -401,7 +401,7 @@ impl<T> LinkedList<T> {
401
401
/// ```
402
402
#[ inline]
403
403
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
404
- pub const fn is_empty ( & self ) -> bool {
404
+ pub fn is_empty ( & self ) -> bool {
405
405
self . len ( ) == 0
406
406
}
407
407
@@ -427,7 +427,7 @@ impl<T> LinkedList<T> {
427
427
/// ```
428
428
#[ inline]
429
429
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
430
- pub const fn len ( & self ) -> usize {
430
+ pub fn len ( & self ) -> usize {
431
431
self . len
432
432
}
433
433
Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ pub use intrinsics::transmute;
139
139
/// [ub]: ../../reference/behavior-considered-undefined.html
140
140
#[ inline]
141
141
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
142
- pub const fn forget < T > ( t : T ) {
142
+ pub fn forget < T > ( t : T ) {
143
143
ManuallyDrop :: new ( t) ;
144
144
}
145
145
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ impl<T> Cursor<T> {
104
104
/// # force_inference(&buff);
105
105
/// ```
106
106
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
107
- pub const fn new ( inner : T ) -> Cursor < T > {
107
+ pub fn new ( inner : T ) -> Cursor < T > {
108
108
Cursor { pos : 0 , inner : inner }
109
109
}
110
110
@@ -138,7 +138,7 @@ impl<T> Cursor<T> {
138
138
/// let reference = buff.get_ref();
139
139
/// ```
140
140
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
141
- pub const fn get_ref ( & self ) -> & T { & self . inner }
141
+ pub fn get_ref ( & self ) -> & T { & self . inner }
142
142
143
143
/// Gets a mutable reference to the underlying value in this cursor.
144
144
///
@@ -179,7 +179,7 @@ impl<T> Cursor<T> {
179
179
/// assert_eq!(buff.position(), 1);
180
180
/// ```
181
181
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
182
- pub const fn position ( & self ) -> u64 { self . pos }
182
+ pub fn position ( & self ) -> u64 { self . pos }
183
183
184
184
/// Sets the position of this cursor.
185
185
///
Original file line number Diff line number Diff line change @@ -885,7 +885,7 @@ impl Initializer {
885
885
/// Returns a new `Initializer` which will zero out buffers.
886
886
#[ unstable( feature = "read_initializer" , issue = "42788" ) ]
887
887
#[ inline]
888
- pub const fn zeroing ( ) -> Initializer {
888
+ pub fn zeroing ( ) -> Initializer {
889
889
Initializer ( true )
890
890
}
891
891
@@ -906,7 +906,7 @@ impl Initializer {
906
906
/// Indicates if a buffer should be initialized.
907
907
#[ unstable( feature = "read_initializer" , issue = "42788" ) ]
908
908
#[ inline]
909
- pub const fn should_initialize ( & self ) -> bool {
909
+ pub fn should_initialize ( & self ) -> bool {
910
910
self . 0
911
911
}
912
912
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ pub struct Empty { _priv: () }
99
99
/// assert!(buffer.is_empty());
100
100
/// ```
101
101
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
102
- pub const fn empty ( ) -> Empty { Empty { _priv : ( ) } }
102
+ pub fn empty ( ) -> Empty { Empty { _priv : ( ) } }
103
103
104
104
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
105
105
impl Read for Empty {
@@ -199,7 +199,7 @@ pub struct Sink { _priv: () }
199
199
/// assert_eq!(num_bytes, 5);
200
200
/// ```
201
201
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
202
- pub const fn sink ( ) -> Sink { Sink { _priv : ( ) } }
202
+ pub fn sink ( ) -> Sink { Sink { _priv : ( ) } }
203
203
204
204
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
205
205
impl Write for Sink {
Original file line number Diff line number Diff line change @@ -926,7 +926,7 @@ impl Stdio {
926
926
/// assert_eq!(String::from_utf8_lossy(&output.stdout), "!dlrow ,olleH\n");
927
927
/// ```
928
928
#[ stable( feature = "process" , since = "1.0.0" ) ]
929
- pub const fn piped ( ) -> Stdio { Stdio ( imp:: Stdio :: MakePipe ) }
929
+ pub fn piped ( ) -> Stdio { Stdio ( imp:: Stdio :: MakePipe ) }
930
930
931
931
/// The child inherits from the corresponding parent descriptor.
932
932
///
@@ -961,7 +961,7 @@ impl Stdio {
961
961
/// println!("You piped in the reverse of: {}", String::from_utf8_lossy(&output.stdout));
962
962
/// ```
963
963
#[ stable( feature = "process" , since = "1.0.0" ) ]
964
- pub const fn inherit ( ) -> Stdio { Stdio ( imp:: Stdio :: Inherit ) }
964
+ pub fn inherit ( ) -> Stdio { Stdio ( imp:: Stdio :: Inherit ) }
965
965
966
966
/// This stream will be ignored. This is the equivalent of attaching the
967
967
/// stream to `/dev/null`
@@ -998,7 +998,7 @@ impl Stdio {
998
998
/// // Ignores any piped-in input
999
999
/// ```
1000
1000
#[ stable( feature = "process" , since = "1.0.0" ) ]
1001
- pub const fn null ( ) -> Stdio { Stdio ( imp:: Stdio :: Null ) }
1001
+ pub fn null ( ) -> Stdio { Stdio ( imp:: Stdio :: Null ) }
1002
1002
}
1003
1003
1004
1004
impl FromInner < imp:: Stdio > for Stdio {
Original file line number Diff line number Diff line change @@ -286,7 +286,7 @@ impl Builder {
286
286
/// handler.join().unwrap();
287
287
/// ```
288
288
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
289
- pub const fn new ( ) -> Builder {
289
+ pub fn new ( ) -> Builder {
290
290
Builder {
291
291
name : None ,
292
292
stack_size : None ,
You can’t perform that action at this time.
0 commit comments