Skip to content

Commit b43eb42

Browse files
committedJul 3, 2019
Auto merge of #62355 - Centril:rollup-xnxtcgm, r=Centril
Rollup of 16 pull requests Successful merges: - #62039 (Remove needless lifetimes (rustc)) - #62173 (rename InterpretCx -> InterpCx) - #62240 (wfcheck: resolve the type-vars in `AdtField` types) - #62249 (Use mem::take instead of mem::replace with default) - #62252 (Update mem::replace example to not be identical to mem::take) - #62258 (syntax: Unsupport `foo! bar { ... }` macros in the parser) - #62268 (Clean up inherent_impls) - #62287 (Use link attributes on extern "C" blocks with llvm-libuwind) - #62295 (miri realloc: do not require giving old size+align) - #62297 (refactor check_for_substitution) - #62316 (When possible without changing semantics, implement Iterator::last in terms of DoubleEndedIterator::next_back for types in liballoc and libcore.) - #62317 (Migrate `compile-pass` annotations to `build-pass`) - #62337 (Fix bucket in CPU usage script) - #62344 (simplify Option::get_or_insert) - #62346 (enable a few more tests in Miri and update the comment for others) - #62351 (remove bogus example from drop_in_place) Failed merges: r? @ghost
2 parents 088b987 + 6363a58 commit b43eb42

File tree

919 files changed

+1638
-1664
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

919 files changed

+1638
-1664
lines changed
 

‎src/etc/cpu-usage-over-time-plot.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
set -ex
1818

19-
bucket=rust-lang-ci-evalazure
19+
bucket=rust-lang-ci2
2020
commit=$1
2121
builder=$2
2222

‎src/liballoc/boxed.rs

+8
Original file line numberDiff line numberDiff line change
@@ -728,6 +728,14 @@ impl<I: Iterator + ?Sized> Iterator for Box<I> {
728728
(**self).nth(n)
729729
}
730730
}
731+
732+
#[stable(feature = "rust1", since = "1.0.0")]
733+
impl<I: Iterator + Sized> Iterator for Box<I> {
734+
fn last(self) -> Option<I::Item> where I: Sized {
735+
(*self).last()
736+
}
737+
}
738+
731739
#[stable(feature = "rust1", since = "1.0.0")]
732740
impl<I: DoubleEndedIterator + ?Sized> DoubleEndedIterator for Box<I> {
733741
fn next_back(&mut self) -> Option<I::Item> {

0 commit comments

Comments
 (0)