Skip to content
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

[beta] Backport accepted PRs to 1.21 #44823

Merged
merged 13 commits into from
Sep 26, 2017
Merged

[beta] Backport accepted PRs to 1.21 #44823

merged 13 commits into from
Sep 26, 2017

Conversation

dtolnay
Copy link
Member

@dtolnay dtolnay commented Sep 25, 2017

Backport of:

budziq and others added 11 commits September 24, 2017 22:46
Most of the other rust-lang buckets are in us-west-1 and I think the original
bucket was just accidentally created in the us-east-1 region. Let's consolidate
by moving it to the same location as the rest of our buckets.
updated clippy and rls as it uses the iterator_for_each
Moving buckets from us-east-1 to us-west-1 because us-west-1 is where
rust-central-station itself runs and in general is where we have all our other
buckets.
@@ -1420,7 +1420,7 @@ impl String {
/// assert_eq!(t, "α is alpha, ");
/// assert_eq!(s, "Α is capital alpha; β is beta");
/// ```
#[unstable(feature = "splice", reason = "recently added", issue = "32310")]
#[unstable(feature = "splice", reason = "recently added", issue = "44643")]
Copy link
Member

@kennytm kennytm Sep 25, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update https://github.com/dtolnay/rust/blob/5f502de51dd01b3bf06f874b87702445a0ae8d90/src/liballoc/string.rs#L2253 as well.

[00:04:19] tidy error: /checkout/src/liballoc/string.rs:2253: mismatches to previous in: ["tracking issue"]

Copy link
Member

@alexcrichton alexcrichton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r=me wit hthe tidy error fixed,

thanks @dtolnay!

@carols10cents carols10cents added the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Sep 25, 2017
@dtolnay
Copy link
Member Author

dtolnay commented Sep 25, 2017

@bors r=alexcrichton

@bors
Copy link
Contributor

bors commented Sep 25, 2017

📌 Commit a03e765 has been approved by alexcrichton

@alexcrichton
Copy link
Member

@bors: r-

backport fails to compile?

This includes the following stabilizations:

- tcpstream_connect_timeout rust-lang#44563
- iterator_for_each rust-lang#44567
- ord_max_min rust-lang#44593
- compiler_fences rust-lang#44595
- needs_drop rust-lang#44639
- vec_splice rust-lang#44640
I backported the stabilization of Vec::splice and the move of
String::splice to the new tracking issue, but not the new signature of
String::splice in 1.22. This combination requires updating the tracking
issue on some code that no longer exists in nightly.
@dtolnay
Copy link
Member Author

dtolnay commented Sep 26, 2017

I removed the backport of #44215 from this PR, will leave that one to someone else.

(expand) Here is the merge I botched.
            match item.node {
                ItemKind::Use(..) => {
                    // don't suggest placing a use before the prelude
                    // import or other generated ones
<<<<<<< HEAD
                    if item.span == DUMMY_SP {
                        let mut span = item.span;
                        span.hi = span.lo;
                        self.span = Some(span);
||||||| parent of 74748b11bb3... WIP: don't suggest placing `use` statements into expanded code
                    if item.span == DUMMY_SP {
                        self.span = Some(item.span.with_hi(item.span.lo()));
=======
                    if item.span.ctxt().outer().expn_info().is_none() {
                        self.span = Some(item.span.with_hi(item.span.lo()));
>>>>>>> 74748b11bb3... WIP: don't suggest placing `use` statements into expanded code
                        self.found_use = true;
                        return;
                    }
                },
                // don't place use before extern crate
                ItemKind::ExternCrate(_) => {}
                // but place them before the first other item
                _ => if self.span.map_or(true, |span| item.span < span ) {
<<<<<<< HEAD
                    let mut span = item.span;
                    span.hi = span.lo;
                    self.span = Some(span);
||||||| parent of 74748b11bb3... WIP: don't suggest placing `use` statements into expanded code
                    self.span = Some(item.span.with_hi(item.span.lo()));
=======
                    if item.span.ctxt().outer().expn_info().is_none() {
                        // don't insert between attributes and an item
                        if item.attrs.is_empty() {
                            self.span = Some(item.span.with_hi(item.span.lo()));
                        } else {
                            // find the first attribute on the item
                            for attr in &item.attrs {
                                if self.span.map_or(true, |span| attr.span < span) {
                                    self.span = Some(attr.span.with_hi(attr.span.lo()));
                                }
                            }
                        }
                    }
>>>>>>> 74748b11bb3... WIP: don't suggest placing `use` statements into expanded code
                },

@alexcrichton
Copy link
Member

@bors: r+

@bors
Copy link
Contributor

bors commented Sep 26, 2017

📌 Commit f38d353 has been approved by alexcrichton

@alexcrichton
Copy link
Member

@bors: p=1 (backport)

@bors
Copy link
Contributor

bors commented Sep 26, 2017

⌛ Testing commit f38d353 with merge 3c3cd3f...

bors added a commit that referenced this pull request Sep 26, 2017
[beta] Backport accepted PRs to 1.21

Backport of:

- ~don't suggest placing `use` statements into expanded code #44215
- stabilize tcpstream_connect_timeout #44563
- stabilized iterator_for_each #44567
- travis: Move sccache to the us-west-1 region #44574
- stabilized ord_max_min #44593
- stabilized compiler_fences #44595
- ci: Upload/download from a new S3 bucket #44617
- stabilized needs_drop #44639
- Stabilized vec_splice and modified splice tracking issue #44640
- Backport libs stabilizations to 1.21 beta #44824
@bors
Copy link
Contributor

bors commented Sep 26, 2017

☀️ Test successful - status-appveyor, status-travis
Approved by: alexcrichton
Pushing 3c3cd3f to beta...

@bors bors merged commit f38d353 into rust-lang:beta Sep 26, 2017
@dtolnay dtolnay deleted the backport21 branch September 26, 2017 18:36
Mark-Simulacrum added a commit to Mark-Simulacrum/rust that referenced this pull request Sep 29, 2017
Backport libs stabilizations to 1.21 beta

Includes the following stabilizations:

- tcpstream_connect_timeout rust-lang#44563
- iterator_for_each rust-lang#44567
- ord_max_min rust-lang#44593
- compiler_fences rust-lang#44595
- needs_drop rust-lang#44639
- vec_splice rust-lang#44640

These have been backported in rust-lang#44823.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants