8000 Rollup of 9 pull requests by JohnTitor · Pull Request #71464 · rust-lang/rust · GitHub
[go: up one dir, main page]

Skip to content

Rollup of 9 pull requests #71464

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 26 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
3ac26f7
add a few more DefKinds
mark-i-m Mar 16, 2020
fba38a9
Split out the `Generator` case from `DefKind::Closure`.
eddyb Apr 17, 2020
8a764b9
Remove `Option` from the return type of `def_kind`.
eddyb Apr 17, 2020
850ddd7
Tweak `descr` for `AnonConst` and fix `article` for `Use` and `Extern…
eddyb Apr 17, 2020
72a8534
Remove redundant `descr`/`descriptive_variant` methods from HIR.
eddyb Apr 17, 2020
3eb1c43
Ignore -Zprofile when building compiler_builtins
Amanieu Apr 20, 2020
57c2712
Improve E0308 error message wording again
DeeDeeG Apr 21, 2020
37097fb
Let compiletest recognize gdb 10.x
tromey Apr 22, 2020
90b4a97
Fix compiletest version-parsing tests
tromey Apr 22, 2020
1f106b5
ci: set a default shell on GHA
pietroalbini Apr 22, 2020
61831ff
ci: remove duplicated job names on GHA
pietroalbini Apr 22, 2020
99de372
Only use read_unaligned in transmute_copy if necessary
Amanieu Apr 22, 2020
e97c227
Remove outdated reference to interpreter snapshotting
ecstatic-morse Apr 22, 2020
2274b4b
Bump bootstrap compiler
Mark-Simulacrum Apr 22, 2020
12102db
Bump rustfmt to most recently shipped
Mark-Simulacrum Apr 22, 2020
986e55a
Fix rustfmt bug
Mark-Simulacrum Apr 23, 2020
b3c26de
Inline some function docs re-exported in `std::ptr`
ecstatic-morse Apr 23, 2020
6013c23
Rollup merge of #70043 - mark-i-m:def-kind-more, r=eddyb
JohnTitor Apr 23, 2020
40d0e6f
Rollup merge of #71364 - Amanieu:zprofile_compiler_builtins, r=cramertj
JohnTitor Apr 23, 2020
1a25f27
Rollup merge of #71396 - DeeDeeG:improve-e0308-again, r=estebank
JohnTitor Apr 23, 2020
e5f309a
Rollup merge of #71428 - tromey:gdb-10-parsing, r=tromey
JohnTitor Apr 23, 2020
f20893b
Rollup merge of #71434 - pietroalbini:shrink-gha-config, r=Mark-Simul…
JohnTitor Apr 23, 2020
6f18ad5
Rollup merge of #71439 - Mark-Simulacrum:stage0-next, r=jonas-schievink
JohnTitor Apr 23, 2020
9ba70a9
Rollup merge of #71446 - Amanieu:transmute_copy, r=sfackler
JohnTitor Apr 23, 2020
c7e2617
Rollup merge of #71452 - ecstatic-morse:no-more-snapshot, r=RalfJung
JohnTitor Apr 23, 2020
e20df27
Rollup merge of #71454 - ecstatic-morse:inline-core-ptr-docs, r=RalfJung
JohnTitor Apr 23, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Bump rustfmt to most recently shipped
  • Loading branch information
Mark-Simulacrum committed Apr 23, 2020
commit 12102db7b902247a4ac86f6db7d1f2709b4ea61c
2 changes: 1 addition & 1 deletion src/libcore/iter/range.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ macro_rules! step_identical_methods {
fn sub_one(&self) -> Self {
Sub::sub(*self, 1)
}
}
};
}

macro_rules! step_impl_unsigned {
Expand Down
4 changes: 2 8000 additions & 2 deletions src/libproc_macro/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -255,14 +255,14 @@ impl !Send for Span {}
impl !Sync for Span {}

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

impl Span {
Expand Down
7 changes: 2 additions & 5 deletions src/librustc_metadata/rmeta/table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,7 @@ macro_rules! fixed_size_encoding_byte_len_and_defaults {
// but slicing `[u8]` with `i * N..` is optimized worse, due to the
// possibility of `i * N` overflowing, than indexing `[[u8; N]]`.
let b = unsafe {
std::slice::from_raw_parts(
b.as_ptr() as *const [u8; BYTE_LEN],
b.len() / BYTE_LEN,
)
std::slice::from_raw_parts(b.as_ptr() as *const [u8; BYTE_LEN], b.len() / BYTE_LEN)
};
b.get(i).map(|b| FixedSizeEncoding::from_bytes(b))
}
Expand All @@ -61,7 +58,7 @@ macro_rules! fixed_size_encoding_byte_len_and_defaults {
};
self.write_to_bytes(&mut b[i]);
}
}
};
}

impl FixedSizeEncoding for u32 {
Expand Down
2 changes: 1 addition & 1 deletion src/libserialize/json.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2305,7 +2305,7 @@ macro_rules! read_primitive {
value => Err(ExpectedError("Number".to_owned(), value.to_string())),
}
}
}
};
}

impl crate::Decoder for Decoder {
Expand Down
26 changes: 19 additions & 7 deletions src/libstd/ascii.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,23 +149,35 @@ pub trait AsciiExt {
macro_rules! delegating_ascii_methods {
() => {
#[inline]
fn is_ascii(&self) -> bool { self.is_ascii() }
fn is_ascii(&self) -> bool {
self.is_ascii()
}

#[inline]
fn to_ascii_uppercase(&self) -> Self::Owned { self.to_ascii_uppercase() }
fn to_ascii_uppercase(&self) -> Self::Owned {
self.to_ascii_uppercase()
}

#[inline]
fn to_ascii_lowercase(&self) -> Self::Owned { self.to_ascii_lowercase() }
fn to_ascii_lowercase(&self) -> Self::Owned {
self.to_ascii_lowercase()
}

#[inline]
fn eq_ignore_ascii_case(&self, o: &Self) -> bool { self.eq_ignore_ascii_case(o) }
fn eq_ignore_ascii_case(&self, o: &Self) -> bool {
self.eq_ignore_ascii_case(o)
}

#[inline]
fn make_ascii_uppercase(&mut self) { self.make_ascii_uppercase(); }
fn make_ascii_uppercase(&mut self) {
self.make_ascii_uppercase();
}

#[inline]
fn make_ascii_lowercase(&mut self) { self.make_ascii_lowercase(); }
}
fn make_ascii_lowercase(&mut self) {
self.make_ascii_lowercase();
}
};
}

#[stable(feature = "rust1", since = "1.0.0")]
Expand Down
2 changes: 1 addition & 1 deletion src/stage0.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ cargo: 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-01-31
rustfmt: nightly-2020-04-22

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