Skip to content

Stable #98416

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 35 commits into from
Closed

Stable #98416

wants to merge 35 commits into from

Conversation

raman1383
Copy link

Can we implement a syntactic sugar:

let my_var = 10; -> my_var := 10;
let mut my_mut_var = 11; -> my_mut_var :=: 11;

pietroalbini and others added 30 commits April 4, 2022 11:45
Prepare 1.61.0 beta release

Just a channel and RLS bump this time.

r? `@ghost`
…ulacrum

[beta] Bump stage0 to 1.60.0

r? `@Mark-Simulacrum`
…crum"

This reverts commit 035a717, reversing
changes made to 761e888.
[beta] Revert: Make TLS __getit #[inline(always)] on non-Windows

Fixes #96132

r? `@Mark-Simulacrum`
[beta] backports rollup

*  Remove NodeIdHashingMode. #95656
*  Check that all hidden types are the same and then deduplicate them. #95731

r? `@Mark-Simulacrum`
Revert "impl From<&[T; N]> and From<&mut [T; N]> for Vec<T>"

This reverts commit 5dd7027.
Make [e]println macros eagerly drop temporaries (for backport)

This PR extracts the subset of #96455 which is only the parts necessary for fixing the 1.61-beta regressions in #96434.

My larger PR #96455 contains a few other changes relative to the pre-#94868 behavior; those are not necessary to backport into 1.61.

argument position | before #94868 | after #94868 | after this PR
--- |:---:|:---:|:---:
`write!($tmp, "…", …)` | :rage: | :rage: | :rage:
`write!(…, "…", $tmp)` | :rage: | :rage: | :rage:
`writeln!($tmp, "…", …)` | :rage: | :rage: | :rage:
`writeln!(…, "…", $tmp)` | :rage: | :rage: | :rage:
`print!("…", $tmp)` | :rage: | :rage: | :rage:
`println!("…", $tmp)` | :smiley_cat: | :rage: | :smiley_cat:
`eprint!("…", $tmp)` | :rage: | :rage: | :rage:
`eprintln!("…", $tmp)` | :smiley_cat: | :rage: | :smiley_cat:
`panic!("…", $tmp)` | :smiley_cat: | :smiley_cat: | :smiley_cat:
Revert "Re-export core::ffi types from std::ffi"

This reverts commit 9aed829.

Fixes #96435 , a regression
in crates doing `use std::ffi::*;` and `use std::os::raw::*;`.

We can re-add this re-export once the `core::ffi` types
are stable, and thus the `std::os::raw` types can become re-exports as
well, which will avoid the conflict. (Type aliases to the same type
still conflict, but re-exports of the same type don't.)
…itted, r=jackh726

Revert diagnostic duplication and accidental stabilization

fixes #96460

this is an accidental stabilization that we should put into the beta. I believe it is low-risk, because it was literally what we had before #94081

The effect on tests is massive, but mostly deduplication of diagnostics and some minor span changes.
[beta] Beta backports

* Revert diagnostic duplication and accidental stabilization #96516
* Revert "Re-export core::ffi types from std::ffi" #96492
* Make [e]println macros eagerly drop temporaries (for backport) #96490
* Revert "impl From<&[T; N]> and From<&mut [T; N]> for Vec<T>" #96489
* Cargo:
    * move workspace inheritance unstable docs to the correct place (rust-lang/cargo#10616)
…r=dtolnay"

This reverts commit ba2d5ed, reversing
changes made to 9b701e7.
This simplifies the visitor code a bit and prevents checking expressions
multiple times. I still think this lint should be removed for now,
because its code isn't really tested.
[beta] backports

This backports/rolls up:

*  Quick fix for #96223. #96679
*  [beta] Revert #92519 on beta #96556
*  [beta] Clippy backport ICE/infinite loop fix #96740
*  Revert "Prefer projection candidates instead of param_env candidates for Sized predicates" #96593
Forbid nested opaque types to reference HRTB from opaque types.

Backport version of #97039 if useful.

r? `@Mark-Simulacrum`
Cherry-picking from not yet landed PR#96539.
Mark-Simulacrum and others added 5 commits May 16, 2022 12:57
[stable] Rust 1.61

* Cherry-picking release notes from not yet landed #96539.

r? `@Mark-Simulacrum`
This lint has a false positive and there's not an easy backport available,
particularly given how late in the cycle we are at this point.
[stable] 1.61 stable rebuild

* New version of release notes (from as-yet unmerged #96539)
* Manual patch to drop clippy's needless_match lint to nursery, per [discussion on Zulip](https://rust-lang.zulipchat.com/#narrow/stream/241545-t-release/topic/release.201.2E61.2E0/near/282717457)

r? `@Mark-Simulacrum`
@rust-highfive
Copy link
Contributor

Some changes occurred in src/tools/clippy.

cc @rust-lang/clippy

Hey! It looks like you've submitted a new PR for the library teams!

If this PR contains changes to any rust-lang/rust public library APIs then please comment with @rustbot label +T-libs-api -T-libs to tag it appropriately. If this PR contains changes to any unstable APIs please edit the PR description to add a link to the relevant API Change Proposal or create one if you haven't already. If you're unsure where your change falls no worries, just leave it as is and the reviewer will take a look and make a decision to forward on if necessary.

Examples of T-libs-api changes:

  • Stabilizing library features
  • Introducing insta-stable changes such as new implementations of existing stable traits on existing stable types
  • Introducing new or changing existing unstable library APIs (excluding permanently unstable features / features without a tracking issue)
  • Changing public documentation in ways that create new stability guarantees
  • Changing observable runtime behavior of library APIs

Updates src/tools/cargo.

cc @ehuss

@rustbot rustbot added T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels Jun 23, 2022
@rust-highfive
Copy link
Contributor

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @Mark-Simulacrum (or someone else) soon.

Please see the contribution instructions for more information.

@rust-highfive
Copy link
Contributor

⚠️ Warning ⚠️

  • These commits modify submodules.

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jun 23, 2022
@slanterns
Copy link
Contributor

slanterns commented Jun 23, 2022

FYI:

  • A language change cannot be accepted without an RFC. And I even think such syntax has no chance to be accepted;
  • A pull request cannot be made directly from stable to the master branch. It'll mess all things up; (what exactly do you want to do?)
  • Your PR includes a huge bunch of unrelated commits, but where is your commit?
  • Please try to make the title meaningful, and propose your suggestion in the right place instead of sending a confusing "PR".

@JohnTitor
Copy link
Member

Closing in favor of the above comment.

@JohnTitor JohnTitor closed this Jun 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-libs Relevant to the library team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.