Skip to content

Conversation

spastorino
Copy link
Member

@spastorino spastorino commented Sep 29, 2022

@rustbot rustbot added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label Sep 29, 2022
@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Sep 29, 2022
@spastorino spastorino force-pushed the create-defs-on-lowering branch from d275c25 to f67909e Compare September 29, 2022 19:21
@spastorino spastorino force-pushed the create-defs-on-lowering branch from f67909e to ba9000c Compare September 29, 2022 21:18
@rust-log-analyzer

This comment has been minimized.

@spastorino spastorino force-pushed the create-defs-on-lowering branch from ba9000c to 9080c2f Compare September 30, 2022 13:57
@spastorino
Copy link
Member Author

It turned out that this was way simpler to what I was trying to do.

@cjgillot I think it's ready unless there's something outside ui tests that need to be blessed because def_ids ordering/numbers have changed now.

@spastorino spastorino requested a review from cjgillot September 30, 2022 14:04
@rust-log-analyzer

This comment has been minimized.

@cjgillot
Copy link
Contributor

This looks like a bug in the stable hasher. This branch is only used for item-relative spans (-Zincremental-relative-spans). Using a unwrap_or(DUMMY_SP) is safe: span hashing won't try to make this a relative span.
The better solution would ofc to find a way to modify resolutions(()).source_span.

@spastorino spastorino force-pushed the create-defs-on-lowering branch from 9080c2f to b2bef02 Compare September 30, 2022 18:12
@rustbot rustbot added the A-query-system Area: The rustc query system (https://rustc-dev-guide.rust-lang.org/query.html) label Sep 30, 2022
@spastorino spastorino changed the title create def ids for impl traits during AST Lowering create def ids for impl traits during ast lowering Sep 30, 2022
@spastorino
Copy link
Member Author

@cjgillot now should be ready

@cjgillot
Copy link
Contributor

@bors r+

@bors
Copy link
Collaborator

bors commented Sep 30, 2022

📌 Commit b2bef02 has been approved by cjgillot

It is now in the queue for this repository.

@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-review Status: Awaiting review from the assignee but also interested parties. labels Sep 30, 2022
@spastorino
Copy link
Member Author

@bors rollup

bors added a commit to rust-lang-ci/rust that referenced this pull request Oct 1, 2022
…iaskrgr

Rollup of 7 pull requests

Successful merges:

 - rust-lang#102361 (Fix ICE in const_trait check code)
 - rust-lang#102373 (Flush delayed bugs before codegen)
 - rust-lang#102483 (create def ids for impl traits during ast lowering)
 - rust-lang#102490 (Generate synthetic region from `impl` even in closure body within an associated fn)
 - rust-lang#102492 (Don't lower assoc bindings just to deny them)
 - rust-lang#102493 (Group together more size assertions.)
 - rust-lang#102521 (rustdoc: add missing margin to no-docblock methods)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 05b9f0e into rust-lang:master Oct 1, 2022
@rustbot rustbot added this to the 1.66.0 milestone Oct 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-query-system Area: The rustc query system (https://rustc-dev-guide.rust-lang.org/query.html) 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.

6 participants