Skip to content

Commit 17a393e

Browse files
Bump rustfmt to most recently shipped
1 parent 93eed40 commit 17a393e

File tree

7 files changed

+27
-18
lines changed

7 files changed

+27
-18
lines changed

src/libcore/iter/range.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ macro_rules! step_identical_methods {
7070
fn sub_one(&self) -> Self {
7171
Sub::sub(*self, 1)
7272
}
73-
}
73+
};
7474
}
7575

7676
macro_rules! step_impl_unsigned {

src/libcore/macros/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ macro_rules! r#try {
336336
}
337337
};
338338
($expr:expr,) => {
339-
$crate::try!($expr)
339+
$crate::r#try!($expr)
340340
};
341341
}
342342

src/libproc_macro/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -273,14 +273,14 @@ impl !Send for Span {}
273273
impl !Sync for Span {}
274274

275275
macro_rules! diagnostic_method {
276-
($name:ident, $level:expr) => (
276+
($name:ident, $level:expr) => {
277277
/// Creates a new `Diagnostic` with the given `message` at the span
278278
/// `self`.
279279
#[unstable(feature = "proc_macro_diagnostic", issue = "54140")]
280280
pub fn $name<T: Into<String>>(self, message: T) -> Diagnostic {
281281
Diagnostic::spanned(self, $level, message)
282282
}
283-
)
283+
};
284284
}
285285

286286
impl Span {

src/librustc_metadata/rmeta/table.rs

+2-5
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,7 @@ macro_rules! fixed_size_encoding_byte_len_and_defaults {
4242
// but slicing `[u8]` with `i * N..` is optimized worse, due to the
4343
// possibility of `i * N` overflowing, than indexing `[[u8; N]]`.
4444
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)
4946
};
5047
b.get(i).map(|b| FixedSizeEncoding::from_bytes(b))
5148
}
@@ -61,7 +58,7 @@ macro_rules! fixed_size_encoding_byte_len_and_defaults {
6158
};
6259
self.write_to_bytes(&mut b[i]);
6360
}
64-
}
61+
};
6562
}
6663

6764
impl FixedSizeEncoding for u32 {

src/libserialize/json.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2305,7 +2305,7 @@ macro_rules! read_primitive {
23052305
value => Err(ExpectedError("Number".to_owned(), value.to_string())),
23062306
}
23072307
}
2308-
}
2308+
};
23092309
}
23102310

23112311
impl crate::Decoder for Decoder {

src/libstd/ascii.rs

+19-7
Original file line numberDiff line numberDiff line change
@@ -149,23 +149,35 @@ pub trait AsciiExt {
149149
macro_rules! delegating_ascii_methods {
150150
() => {
151151
#[inline]
152-
fn is_ascii(&self) -> bool { self.is_ascii() }
152+
fn is_ascii(&self) -> bool {
153+
self.is_ascii()
154+
}
153155

154156
#[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+
}
156160

157161
#[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+
}
159165

160166
#[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+
}
162170

163171
#[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+
}
165175

166176
#[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+
};
169181
}
170182

171183
#[stable(feature = "rust1", since = "1.0.0")]

src/stage0.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ cargo: beta
2020
# bootstrapping issues with use of new syntax in this repo. If you're looking at
2121
# the beta/stable branch, this key should be omitted, as we don't want to depend
2222
# on rustfmt from nightly there.
23-
rustfmt: nightly-2020-01-31
23+
rustfmt: nightly-2020-04-22
2424

2525
# When making a stable release the process currently looks like:
2626
#

0 commit comments

Comments
 (0)