File tree 7 files changed +27
-18
lines changed
7 files changed +27
-18
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ macro_rules! step_identical_methods {
70
70
fn sub_one( & self ) -> Self {
71
71
Sub :: sub( * self , 1 )
72
72
}
73
- }
73
+ } ;
74
74
}
75
75
76
76
macro_rules! step_impl_unsigned {
Original file line number Diff line number Diff line change @@ -336,7 +336,7 @@ macro_rules! r#try {
336
336
}
337
337
} ;
338
338
( $expr: expr, ) => {
339
- $crate:: try!( $expr)
339
+ $crate:: r# try!( $expr)
340
340
} ;
341
341
}
342
342
Original file line number Diff line number Diff line change @@ -273,14 +273,14 @@ impl !Send for Span {}
273
273
impl !Sync for Span { }
274
274
275
275
macro_rules! diagnostic_method {
276
- ( $name: ident, $level: expr) => (
276
+ ( $name: ident, $level: expr) => {
277
277
/// Creates a new `Diagnostic` with the given `message` at the span
278
278
/// `self`.
279
279
#[ unstable( feature = "proc_macro_diagnostic" , issue = "54140" ) ]
280
280
pub fn $name<T : Into <String >>( self , message: T ) -> Diagnostic {
281
281
Diagnostic :: spanned( self , $level, message)
282
282
}
283
- )
283
+ } ;
284
284
}
285
285
286
286
impl Span {
Original file line number Diff line number Diff line change @@ -42,10 +42,7 @@ macro_rules! fixed_size_encoding_byte_len_and_defaults {
42
42
// but slicing `[u8]` with `i * N..` is optimized worse, due to the
43
43
// possibility of `i * N` overflowing, than indexing `[[u8; N]]`.
44
44
let b = unsafe {
45
- std:: slice:: from_raw_parts(
46
- b. as_ptr( ) as * const [ u8 ; BYTE_LEN ] ,
47
- b. len( ) / BYTE_LEN ,
48
- )
45
+ std:: slice:: from_raw_parts( b. as_ptr( ) as * const [ u8 ; BYTE_LEN ] , b. len( ) / BYTE_LEN )
49
46
} ;
50
47
b. get( i) . map( |b| FixedSizeEncoding :: from_bytes( b) )
51
48
}
@@ -61,7 +58,7 @@ macro_rules! fixed_size_encoding_byte_len_and_defaults {
61
58
} ;
62
59
self . write_to_bytes( & mut b[ i] ) ;
63
60
}
64
- }
61
+ } ;
65
62
}
66
63
67
64
impl FixedSizeEncoding for u32 {
Original file line number Diff line number Diff line change @@ -2305,7 +2305,7 @@ macro_rules! read_primitive {
2305
2305
value => Err ( ExpectedError ( "Number" . to_owned( ) , value. to_string( ) ) ) ,
2306
2306
}
2307
2307
}
2308
- }
2308
+ } ;
2309
2309
}
2310
2310
2311
2311
impl crate :: Decoder for Decoder {
Original file line number Diff line number Diff line change @@ -149,23 +149,35 @@ pub trait AsciiExt {
149
149
macro_rules! delegating_ascii_methods {
150
150
( ) => {
151
151
#[ inline]
152
- fn is_ascii( & self ) -> bool { self . is_ascii( ) }
152
+ fn is_ascii( & self ) -> bool {
153
+ self . is_ascii( )
154
+ }
153
155
154
156
#[ inline]
155
- fn to_ascii_uppercase( & self ) -> Self :: Owned { self . to_ascii_uppercase( ) }
157
+ fn to_ascii_uppercase( & self ) -> Self :: Owned {
158
+ self . to_ascii_uppercase( )
159
+ }
156
160
157
161
#[ inline]
158
- fn to_ascii_lowercase( & self ) -> Self :: Owned { self . to_ascii_lowercase( ) }
162
+ fn to_ascii_lowercase( & self ) -> Self :: Owned {
163
+ self . to_ascii_lowercase( )
164
+ }
159
165
160
166
#[ inline]
161
- fn eq_ignore_ascii_case( & self , o: & Self ) -> bool { self . eq_ignore_ascii_case( o) }
167
+ fn eq_ignore_ascii_case( & self , o: & Self ) -> bool {
168
+ self . eq_ignore_ascii_case( o)
169
+ }
162
170
163
171
#[ inline]
164
- fn make_ascii_uppercase( & mut self ) { self . make_ascii_uppercase( ) ; }
172
+ fn make_ascii_uppercase( & mut self ) {
173
+ self . make_ascii_uppercase( ) ;
174
+ }
165
175
166
176
#[ inline]
167
- fn make_ascii_lowercase( & mut self ) { self . make_ascii_lowercase( ) ; }
168
- }
177
+ fn make_ascii_lowercase( & mut self ) {
178
+ self . make_ascii_lowercase( ) ;
179
+ }
180
+ } ;
169
181
}
170
182
171
183
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ cargo: beta
20
20
# bootstrapping issues with use of new syntax in this repo. If you're looking at
21
21
# the beta/stable branch, this key should be omitted, as we don't want to depend
22
22
# on rustfmt from nightly there.
23
- rustfmt: nightly-2020-01-31
23
+ rustfmt: nightly-2020-04-22
24
24
25
25
# When making a stable release the process currently looks like:
26
26
#
You can’t perform that action at this time.
0 commit comments