Skip to content

remove find_use_placement - #95194

Merged
bors merged 1 commit into
rust-lang:masterfrom
kckeiks:update-algo-in-find-use-placement
Apr 15, 2022
Merged

remove find_use_placement#95194
bors merged 1 commit into
rust-lang:masterfrom
kckeiks:update-algo-in-find-use-placement

Conversation

@kckeiks

@kckeikskckeiks commented Mar 22, 2022

Copy link
Copy Markdown
Contributor

A more robust solution to finding where to place use suggestions was added in #94584.
The algorithm uses the AST to find the span for the suggestion so we pass this span
down to the HIR during lowering and use it instead of calling find_use_placement

Fixes#94941

@rustbotrustbot added T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. labels Mar 22, 2022
@rust-highfive

Copy link
Copy Markdown
Contributor

r? @davidtwco

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfiverust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Mar 22, 2022
@kckeiks

Copy link
Copy Markdown
ContributorAuthor

r? @pnkfelix

@bors

bors commented Mar 31, 2022

Copy link
Copy Markdown
Collaborator

☔ The latest upstream changes (presumably #90204) made this pull request unmergeable. Please resolve the merge conflicts.

A more robust solution to finding where to place use suggestions was added.
The algorithm uses the AST to find the span for the suggestion so we pass this span
down to the HIR during lowering and use it.
Signed-off-by: Miguel Guarniz <mi9uel9@gmail.com>
@kckeiks
kckeiksforce-pushed the update-algo-in-find-use-placement branch from 38dfaf5 to 8c2353bCompareMarch 31, 2022 21:54
@cjgillotcjgillot assigned cjgillot and unassigned cjgillotMar 31, 2022
@pnkfelix

Copy link
Copy Markdown
Contributor

@bors r+

@bors

bors commented Apr 14, 2022

Copy link
Copy Markdown
Collaborator

📌 Commit 8c2353b has been approved by pnkfelix

@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 Apr 14, 2022
@pnkfelix

Copy link
Copy Markdown
Contributor

@bors rollup

Dylan-DPC added a commit to Dylan-DPC/rust that referenced this pull request Apr 14, 2022
…cement, r=pnkfelix
remove find_use_placement
A more robust solution to finding where to place use suggestions was added in rust-lang#94584.
The algorithm uses the AST to find the span for the suggestion so we pass this span
down to the HIR during lowering and use it instead of calling `find_use_placement`
Fixesrust-lang#94941
@Dylan-DPCDylan-DPC mentioned this pull request Apr 14, 2022
Dylan-DPC added a commit to Dylan-DPC/rust that referenced this pull request Apr 15, 2022
…cement, r=pnkfelix
remove find_use_placement
A more robust solution to finding where to place use suggestions was added in rust-lang#94584.
The algorithm uses the AST to find the span for the suggestion so we pass this span
down to the HIR during lowering and use it instead of calling `find_use_placement`
Fixesrust-lang#94941
@Dylan-DPCDylan-DPC mentioned this pull request Apr 15, 2022
RalfJung added a commit to RalfJung/rust that referenced this pull request Apr 15, 2022
…cement, r=pnkfelix
remove find_use_placement
A more robust solution to finding where to place use suggestions was added in rust-lang#94584.
The algorithm uses the AST to find the span for the suggestion so we pass this span
down to the HIR during lowering and use it instead of calling `find_use_placement`
Fixesrust-lang#94941
@RalfJungRalfJung mentioned this pull request Apr 15, 2022
RalfJung added a commit to RalfJung/rust that referenced this pull request Apr 15, 2022
…cement, r=pnkfelix
remove find_use_placement
A more robust solution to finding where to place use suggestions was added in rust-lang#94584.
The algorithm uses the AST to find the span for the suggestion so we pass this span
down to the HIR during lowering and use it instead of calling `find_use_placement`
Fixesrust-lang#94941
@RalfJungRalfJung mentioned this pull request Apr 15, 2022
@Dylan-DPCDylan-DPC mentioned this pull request Apr 15, 2022
bors added a commit to rust-lang-ci/rust that referenced this pull request Apr 15, 2022
Rollup of 11 pull requests
Successful merges:
- rust-lang#94457 (Stabilize `derive_default_enum`)
- rust-lang#94461 (Create (unstable) 2024 edition)
- rust-lang#94849 (Check var scope if it exist)
- rust-lang#95194 (remove find_use_placement)
- rust-lang#95749 (only downgrade selection Error -> Ambiguous if type error is in predicate)
- rust-lang#96026 (couple of clippy::complexity fixes)
- rust-lang#96027 (remove function parameters only used in recursion)
- rust-lang#96034 ([test] Add test cases of untested functions for BTreeSet )
- rust-lang#96040 (Use u32 instead of i32 for futexes.)
- rust-lang#96062 (docs: Update tests chapter for Termination stabilization)
- rust-lang#96065 (Refactor: Use `format-args-capture` and remove unnecessary nested blocks in rustc_typeck)
Failed merges:
r? `@ghost`
`@rustbot` modify labels: rollup
@bors
bors merged commit bdbf099 into rust-lang:masterApr 15, 2022
@rustbotrustbot added this to the 1.62.0 milestone Apr 15, 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.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cleanup: Unify find_use_placement approaches.

7 participants

@kckeiks@rust-highfive@bors@pnkfelix@davidtwco@cjgillot@rustbot