Skip to content

Rollup of 13 pull requests #52014

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

Merged
merged 34 commits into from
Jul 3, 2018
Merged
Changes from 2 commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
b4d64b7
Initialize LLVM's AMDGPU target machine, if available.
DiamondLovesYou Jun 14, 2018
7015dfd
Add read_exact_at and write_all_at methods to FileExt on unix
drrlvn Jun 26, 2018
011eaed
factor built-in attribute parsing into submodule
euclio Jun 30, 2018
f315943
move deprecation-sanity test to ui
euclio Jun 30, 2018
5468e12
add label to unknown meta item error
euclio Jun 30, 2018
e89db30
Do not suggest changes to str literal if it isn't one
estebank Jul 2, 2018
6e5b9c1
Get rid of `TyImplTraitExistential`
oli-obk Jun 29, 2018
75a6fde
Update rustdoc
oli-obk Jul 2, 2018
3779a4c
Emit column info in debuginfo for non msvc like targets
est31 Jul 2, 2018
79d8d08
incr.comp.: Take names of children into account when computing the IC…
michaelwoerister Jul 2, 2018
73166f7
Fill in tracking issue number for read_exact_at/write_all_at
drrlvn Jul 2, 2018
59f2edb
add outlives annotations to `BTreeMap`
nikomatsakis Feb 20, 2018
ddc1d29
bootstrap: tests should use rustc from config.toml
mnd Jul 1, 2018
29851ba
add entry for cargo-metadata feature to RELEASES
euclio Jul 2, 2018
9797665
Make Stdio handle UnwindSafe
estk Jul 1, 2018
f5570d0
Make explicit that assemble is not run from CLI
Mark-Simulacrum Jul 2, 2018
d914574
Fix the tool's path in toolstate verification.
kennytm Jul 2, 2018
20231d7
Fixed detection of test-fail for doctests.
kennytm Jul 2, 2018
689cffa
Run "tools" job on PR when commit message starts with "Update RLS/mir…
kennytm Jul 2, 2018
9eda4aa
Change --keep-stage to apply more
Mark-Simulacrum Jul 2, 2018
447f1f3
Avoid sorting the item_ids array the StableHash impl of hir::Mod.
michaelwoerister Jul 3, 2018
7fa03fb
Rollup merge of #51548 - DiamondLovesYou:amdgpu-target-machine, r=ale…
pietroalbini Jul 3, 2018
a3fc979
Rollup merge of #51809 - drrlvn:rw_exact_all_at, r=alexcrichton
pietroalbini Jul 3, 2018
451560e
Rollup merge of #51914 - nikomatsakis:nll-fix-issue-issue-btreemap-an…
pietroalbini Jul 3, 2018
bd0fe73
Rollup merge of #51958 - euclio:attr-refactor, r=petrochenkov
pietroalbini Jul 3, 2018
0ceeb1b
Rollup merge of #51973 - estk:master, r=abonander
pietroalbini Jul 3, 2018
47eee24
Rollup merge of #51977 - mnd:fix-bootstrap-test-with-local-stage0, r=…
pietroalbini Jul 3, 2018
5195132
Rollup merge of #51978 - estebank:issue-48364, r=oli-obk
pietroalbini Jul 3, 2018
f91b02b
Rollup merge of #51979 - oli-obk:lowering_cleanups4, r=nikomatsakis
pietroalbini Jul 3, 2018
45cd78a
Rollup merge of #51980 - est31:columns, r=alexcrichton
pietroalbini Jul 3, 2018
b69058d
Rollup merge of #51982 - michaelwoerister:hash-modules-properly, r=ni…
pietroalbini Jul 3, 2018
5feb26c
Rollup merge of #51997 - euclio:release-notes, r=Aaronepower
pietroalbini Jul 3, 2018
6af4397
Rollup merge of #52004 - kennytm:toolstate-fixes, r=Mark-Simulacrum
pietroalbini Jul 3, 2018
492518f
Rollup merge of #52006 - Mark-Simulacrum:keep-stage-fix, r=alexcrichton
pietroalbini Jul 3, 2018
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
17 changes: 10 additions & 7 deletions src/liballoc/collections/btree/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,12 +149,11 @@ unsafe impl<#[may_dangle] K, #[may_dangle] V> Drop for BTreeMap<K, V> {
#[stable(feature = "rust1", since = "1.0.0")]
impl<K: Clone, V: Clone> Clone for BTreeMap<K, V> {
fn clone(&self) -> BTreeMap<K, V> {
fn clone_subtree<K: Clone, V: Clone>(node: node::NodeRef<marker::Immut,
K,
V,
marker::LeafOrInternal>)
-> BTreeMap<K, V> {

fn clone_subtree<'a, K: Clone, V: Clone>(
node: node::NodeRef<marker::Immut<'a>, K, V, marker::LeafOrInternal>
) -> BTreeMap<K, V>
where K: 'a, V: 'a,
{
match node.force() {
Leaf(leaf) => {
let mut out_tree = BTreeMap {
Expand Down Expand Up @@ -1080,7 +1079,11 @@ impl<K: Ord, V> BTreeMap<K, V> {

/// Calculates the number of elements if it is incorrect.
fn recalc_length(&mut self) {
fn dfs<K, V>(node: NodeRef<marker::Immut, K, V, marker::LeafOrInternal>) -> usize {
fn dfs<'a, K, V>(
node: NodeRef<marker::Immut<'a>, K, V, marker::LeafOrInternal>
) -> usize
where K: 'a, V: 'a
{
let mut res = node.len();

if let Internal(node) = node.force() {
Expand Down