Skip to content

Commit

Permalink
Auto merge of #78449 - Aaron1011:fix/libstd-semi, r=dtolnay
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bors committed Nov 19, 2020
2 parents 5a549d3 + b03d4b0 commit 7e20323
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion library/core/src/str/validations.rs
Expand Up @@ -125,7 +125,7 @@ pub(super) fn run_utf8_validation(v: &[u8]) -> Result<(), Utf8Error> {
let old_offset = index;
macro_rules! err {
($error_len: expr) => {
return Err(Utf8Error { valid_up_to: old_offset, error_len: $error_len });
return Err(Utf8Error { valid_up_to: old_offset, error_len: $error_len })
};
}

Expand Down
2 changes: 1 addition & 1 deletion src/stage0.txt
Expand Up @@ -19,7 +19,7 @@ rustc: beta
# bootstrapping issues with use of new syntax in this repo. If you're looking at
# the beta/stable branch, this key should be omitted, as we don't want to depend
# on rustfmt from nightly there.
rustfmt: nightly-2020-10-12
rustfmt: nightly-2020-11-19

# When making a stable release the process currently looks like:
#
Expand Down

0 comments on commit 7e20323

Please sign in to comment.