Skip to content

Commit 7e20323

Browse files
committed
Auto merge of #78449 - Aaron1011:fix/libstd-semi, r=dtolnay
Remove semicolon from internal `err` macro This macro is used in expression position (a match arm), and only compiles because of #33953 Regardless of what happens with that issue, this makes the usage of the macro less confusing at the call site.
2 parents 5a549d3 + b03d4b0 commit 7e20323

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

library/core/src/str/validations.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ pub(super) fn run_utf8_validation(v: &[u8]) -> Result<(), Utf8Error> {
125125
let old_offset = index;
126126
macro_rules! err {
127127
($error_len: expr) => {
128-
return Err(Utf8Error { valid_up_to: old_offset, error_len: $error_len });
128+
return Err(Utf8Error { valid_up_to: old_offset, error_len: $error_len })
129129
};
130130
}
131131

src/stage0.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ rustc: beta
1919
# bootstrapping issues with use of new syntax in this repo. If you're looking at
2020
# the beta/stable branch, this key should be omitted, as we don't want to depend
2121
# on rustfmt from nightly there.
22-
rustfmt: nightly-2020-10-12
22+
rustfmt: nightly-2020-11-19
2323

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

0 commit comments

Comments
 (0)