Skip to content

Suggest adding/removing ref for binding patterns - #99835

Merged
bors merged 1 commit into
rust-lang:masterfrom
TaKO8Ki:suggest-adding-or-removing-ref-for-binding-pattern
Aug 5, 2022
Merged

Suggest adding/removing ref for binding patterns#99835
bors merged 1 commit into
rust-lang:masterfrom
TaKO8Ki:suggest-adding-or-removing-ref-for-binding-pattern

Conversation

@TaKO8Ki

Copy link
Copy Markdown
Member

This fixes what a fixme comment says.

r? @estebank

@rustbotrustbot added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label Jul 28, 2022
@rust-highfiverust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jul 28, 2022
@joshtriplett

Copy link
Copy Markdown
Member

LGTM

@TaKO8Ki

Copy link
Copy Markdown
MemberAuthor

r? @rust-lang/compiler

@rust-highfiverust-highfive assigned oli-obk and unassigned estebankAug 5, 2022
if self.can_eq(self.param_env, expected, *inner_ty).is_ok() =>
{
err.span_suggestion_verbose(
span.with_hi(span.lo() + BytePos(4)),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We should avoid this kind of span building when possible.

@estebank

Copy link
Copy Markdown
Contributor

@bors r+

@bors

bors commented Aug 5, 2022

Copy link
Copy Markdown
Collaborator

📌 Commit c0a22a0 has been approved by estebank

It is now in the queue for this repository.

@borsbors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Aug 5, 2022
@Dylan-DPCDylan-DPC mentioned this pull request Aug 5, 2022
bors added a commit to rust-lang-ci/rust that referenced this pull request Aug 5, 2022
Rollup of 6 pull requests
Successful merges:
- rust-lang#99835 (Suggest adding/removing `ref` for binding patterns)
- rust-lang#100155 (Use `node_type_opt` to skip over generics that were not expected)
- rust-lang#100157 (rustdoc: use `collect()` instead of repeatedly pushing)
- rust-lang#100158 (kmc-solid: Add a stub implementation of rust-lang#98246 (`File::set_times`))
- rust-lang#100166 (Remove more Clean trait implementations)
- rust-lang#100168 (Improve diagnostics for `const a: = expr;`)
Failed merges:
r? `@ghost`
`@rustbot` modify labels: rollup
@bors
bors merged commit 9e4feff into rust-lang:masterAug 5, 2022
@rustbotrustbot added this to the 1.64.0 milestone Aug 5, 2022
@TaKO8Ki
TaKO8Ki deleted the suggest-adding-or-removing-ref-for-binding-pattern branch August 6, 2022 05:42
@ehussehuss modified the milestones: 1.64.0, 1.65.0Aug 31, 2022
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants

@TaKO8Ki@joshtriplett@estebank@bors@ehuss@oli-obk@rust-highfive@rustbot