-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Conversation
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")] |
There was a problem hiding this comment.
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"]
There was a problem hiding this 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!
@bors r=alexcrichton |
📌 Commit a03e765 has been approved by |
@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.
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
}, |
@bors: r+ |
📌 Commit f38d353 has been approved by |
@bors: p=1 (backport) |
[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
☀️ Test successful - status-appveyor, status-travis |
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.
Backport of:
don't suggest placinguse
statements into expanded code don't suggest placinguse
statements into expanded code #44215