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

Rollup of 9 pull requests #87595

Closed
wants to merge 26 commits into from

Conversation

fee1-dead
Copy link
Member

Successful merges:

Failed merges:

r? @ghost
@rustbot modify labels: rollup

Create a similar rollup

oli-obk and others added 26 commits July 26, 2021 16:35
The shifting should have gone the other way, the current incarnation is always true.
This caused rustc -Zcodegen-backend=foo.so -vV to look for oo.so instead of
foo.so
I didn't notice the submodule, which means I failed to re-export this
to make it actually-public.

Reported-by: Andrew Gallant <[email protected]>
Signed-off-by: Ian Jackson <[email protected]>
I looked in stdlib and as @BurntSushi thought, `raw` is generally
used for raw pointers, or other hazardous kinds of thing.  stdlib does
not have `into_parts` apart from the one I added to `IntoInnerError`.

I did an ad-hoc search of the rustdocs for my current game project
Otter, which includes quite a large number of dependencies.
`into_parts` seems heavily used for things quite like this.

So change this name.

Suggested-by: Andrew Gallant <[email protected]>
Signed-off-by: Ian Jackson <[email protected]>
…iplett

Bufwriter disassembly tweaks

In rust-lang#80690 ``@BurntSushi`` observed that `WriterPanicked` was erroneously not exported, and suggested renaming `into_raw_parts` to `into_parts`. (More info in my commit messages.)

r? ``@BurntSushi``
…tebank

Improve intra doc errors display

rust-lang#87169

``@jyn514`` This is what I had in mind to avoid having duplicated backticks. I also gave a try to simply updating the span for the suggestion/help messages but I think this current one is better because less "noisy". Anyway, that allows you to see the result. ;)
…ochenkov

Make `SEMICOLON_IN_EXPRESSIONS_FROM_MACROS` warn by default

This PR makes the `SEMICOLON_IN_EXPRESSIONS_FROM_MACROS` lint warn by default.

To avoid showing a large number of un-actionable warnings to users, we only enable the lint for macros defined in the same crate. This ensures that users will be able to fix the warning by simply removing a semicolon.

In the future, I'd like to enable this lint unconditionally, and eventually make it into a hard error in a future edition. This PR is a step towards that goal.
Mir borrowck does not generate lifetime variables for 'static lifetimes during opaque type resolution

Fixes rust-lang#87455

This situation was unreachable before rust-lang#87287 as we used to just grab the resolved opaque type from typeck and replaced all regions with new inference vars. After rust-lang#87287 we let the `InferCx` in mir borrowck figure out the opaque type all by itself (which it already did before, but it only used the result to sanity check with the typeck result).
Track caller of Vec::remove()

`vec.remove(invalid)` doesn't print a helpful source position:

> thread 'main' panicked at 'removal index (is 99) should be < len (is 1)', **library/alloc/src/vec/mod.rs:1379:13**
Fix assert in diy_float

The shifting should have gone the other way, the current incarnation is always true.
… r=wesleywiser

Fix typo in rustc_driver::version

This caused rustc `-Zcodegen-backend=foo.so -vV` to look for `oo.so` instead of `foo.so`
…matsakis

2229: Discr should be read when PatKind is Range

This PR fixes an issue related to pattern matching in closures when Edition 2021 is enabled.

- If any of the patterns the discr is being matched on is `PatKind::Range` then the discr should be read

r? ``@nikomatsakis``

Closes rust-lang#87426
…version, r=jackh726

min_type_alias_impl_trait is going to be removed in 1.56

rust-lang#87501 removed `min_type_alias_impl_trait` but meanwhile that PR was approved in homu queue, a new beta was cut so we need to bump the version because it won't be removed in 1.55.

r? ``@oli-obk``

``@bors`` rollup=always
@rustbot
Copy link
Collaborator

rustbot commented Jul 29, 2021

Error: Label rollup can only be set by Rust team members

Please let @rust-lang/release know if you're having trouble with this bot.

@inquisitivecrystal inquisitivecrystal added the rollup A PR which is a rollup label Jul 29, 2021
@jyn514
Copy link
Member

jyn514 commented Jul 30, 2021

Closing this since some of the PRs have already been merged.

Have you considered joining one of the teams so you can approve your own rollups? I wouldn't recommend making rollups unless you can self-approve, since they're time-sensitive.

@jyn514 jyn514 closed this Jul 30, 2021
@fee1-dead fee1-dead deleted the rollup-xmlm41q branch July 30, 2021 03:42
@fee1-dead
Copy link
Member Author

I just joined a working group and I don't know how I can join a team with such permission...

@jyn514
Copy link
Member

jyn514 commented Jul 30, 2021

IMO anyone on wg-const-eval should also be on compiler-contributors. @rust-lang/wg-const-eval @rust-lang/compiler @rust-lang/compiler-contributors what would you think about @fee1-dead joining compiler-contributors?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rollup A PR which is a rollup
Projects
None yet
Development

Successfully merging this pull request may close these issues.