Skip to content

Fix smaller issues with invalid placeholder type errors #70369

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 2 commits into from
Mar 25, 2020

Conversation

estebank
Copy link
Contributor

Follow up to #70294.

  • Fix placement of suggested generic param when bounds are present.
  • Reduce error duplication for invalid placeholder types in fn types.

r? @Centril

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Mar 24, 2020
@Centril Centril added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Mar 24, 2020
@Centril
Copy link
Contributor

Centril commented Mar 24, 2020

r=me with ^-- addressed.

@rust-highfive

This comment has been minimized.

@estebank estebank force-pushed the bad-placeholder-in-where branch from ad58502 to 41d4a45 Compare March 25, 2020 00:35
@estebank estebank force-pushed the bad-placeholder-in-where branch from 41d4a45 to 7534efa Compare March 25, 2020 01:01
@estebank estebank added the beta-nominated Nominated for backporting to the compiler in the beta channel. label Mar 25, 2020
@estebank
Copy link
Contributor Author

@bors r=Centril

Nominating for backport (but with much lower priority) as I feel this goes in tandem with #70294.

@bors
Copy link
Collaborator

bors commented Mar 25, 2020

📌 Commit 7534efa has been approved by Centril

@bors bors 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-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Mar 25, 2020
Centril added a commit to Centril/rust that referenced this pull request Mar 25, 2020
…r=Centril

Fix smaller issues with invalid placeholder type errors

Follow up to rust-lang#70294.

- Fix placement of suggested generic param when bounds are present.
- Reduce error duplication for invalid placeholder types in `fn` types.

r? @Centril
bors added a commit to rust-lang-ci/rust that referenced this pull request Mar 25, 2020
Rollup of 7 pull requests

Successful merges:

 - rust-lang#70331 (Increase verbosity when using update syntax with private fields)
 - rust-lang#70349 (move `hir_id_validation` to `rustc_passes` + simplify `hir::map` code)
 - rust-lang#70361 (Update backtrace crate to 0.3.46)
 - rust-lang#70364 (resolve: Remove `rustc_attrs` as a standalone feature gate)
 - rust-lang#70369 (Fix smaller issues with invalid placeholder type errors)
 - rust-lang#70373 (normalize some imports & prefer direct ones)
 - rust-lang#70376 (Add test for rust-lang#66312)

Failed merges:

r? @ghost
@bors bors merged commit cb17049 into rust-lang:master Mar 25, 2020
@Centril Centril added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label Mar 25, 2020
@pnkfelix
Copy link
Member

pnkfelix commented Apr 1, 2020

Discussed in compiler meeting. Declined for beta backport.

@pnkfelix pnkfelix removed the beta-nominated Nominated for backporting to the compiler in the beta channel. label Apr 1, 2020
davidtwco added a commit to davidtwco/rust that referenced this pull request Jul 12, 2020
This commit fixes a regression introduced in rust-lang#70369 which
meant that an error was not being emitted for invalid placeholder types
when there wasn't a span available.

Signed-off-by: David Wood <david@davidtw.co>
Manishearth added a commit to Manishearth/rust that referenced this pull request Jul 13, 2020
…der-type-error, r=estebank

typeck: report placeholder type error w/out span

Fixes rust-lang#74086.

This PR fixes a regression introduced in rust-lang#70369 which meant that an error was not being emitted for invalid placeholder types when there wasn't a span available.

r? @estebank
Manishearth added a commit to Manishearth/rust that referenced this pull request Jul 13, 2020
…der-type-error, r=estebank

typeck: report placeholder type error w/out span

Fixes rust-lang#74086.

This PR fixes a regression introduced in rust-lang#70369 which meant that an error was not being emitted for invalid placeholder types when there wasn't a span available.

r? @estebank
Manishearth added a commit to Manishearth/rust that referenced this pull request Jul 13, 2020
…der-type-error, r=estebank

typeck: report placeholder type error w/out span

Fixes rust-lang#74086.

This PR fixes a regression introduced in rust-lang#70369 which meant that an error was not being emitted for invalid placeholder types when there wasn't a span available.

r? @estebank
Manishearth added a commit to Manishearth/rust that referenced this pull request Jul 13, 2020
…der-type-error, r=estebank

typeck: report placeholder type error w/out span

Fixes rust-lang#74086.

This PR fixes a regression introduced in rust-lang#70369 which meant that an error was not being emitted for invalid placeholder types when there wasn't a span available.

r? @estebank
Manishearth added a commit to Manishearth/rust that referenced this pull request Jul 14, 2020
…der-type-error, r=estebank

typeck: report placeholder type error w/out span

Fixes rust-lang#74086.

This PR fixes a regression introduced in rust-lang#70369 which meant that an error was not being emitted for invalid placeholder types when there wasn't a span available.

r? @estebank
Manishearth added a commit to Manishearth/rust that referenced this pull request Jul 14, 2020
…der-type-error, r=estebank

typeck: report placeholder type error w/out span

Fixes rust-lang#74086.

This PR fixes a regression introduced in rust-lang#70369 which meant that an error was not being emitted for invalid placeholder types when there wasn't a span available.

r? @estebank
Manishearth added a commit to Manishearth/rust that referenced this pull request Jul 14, 2020
…der-type-error, r=estebank

typeck: report placeholder type error w/out span

Fixes rust-lang#74086.

This PR fixes a regression introduced in rust-lang#70369 which meant that an error was not being emitted for invalid placeholder types when there wasn't a span available.

r? @estebank
@estebank estebank deleted the bad-placeholder-in-where branch November 9, 2023 05:17
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant 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.

5 participants