Make sure tcx.create_def also depends on the forever red node, instead of just tcx.at(span).create_def by oli-obk · Pull Request #121084 · rust-lang/rust (original) (raw)

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 andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation10 Commits2 Checks0 Files changed

Conversation

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})

@oli-obk

oversight from #119136

Not actually an issue, because all uses of tcx.create_def were in the resolver, which is eval_always, but still good to harden against future uses of create_def

cc @petrochenkov @WaffleLapkin

@oli-obk

…ead of just tcx.at(span).create_def

@rustbot

r? @lcnr

rustbot has assigned @lcnr.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added S-waiting-on-review

Status: Awaiting review from the assignee but also interested parties.

T-compiler

Relevant to the compiler team, which will review and decide on the PR/issue.

labels

Feb 14, 2024

WaffleLapkin

@WaffleLapkin

@bors

📌 Commit 2e900ed has been approved by WaffleLapkin

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

Feb 14, 2024

GuillaumeGomez added a commit to GuillaumeGomez/rust that referenced this pull request

Feb 14, 2024

@GuillaumeGomez

…=WaffleLapkin

Make sure tcx.create_def also depends on the forever red node, instead of just tcx.at(span).create_def

oversight from rust-lang#119136

Not actually an issue, because all uses of tcx.create_def were in the resolver, which is eval_always, but still good to harden against future uses of create_def

cc @petrochenkov @WaffleLapkin

petrochenkov

// needs to be re-evaluated.
self.dep_graph.read_index(DepNodeIndex::FOREVER_RED_NODE);
// The following call has the side effect of modifying the tables inside `definitions`.

Choose a reason for hiding this comment

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

This comment looks related to the moved code, and also outdated.
It should probably be updated and maybe also moved.

Choose a reason for hiding this comment

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

done 😆 I already had the commit ready

bors added a commit to rust-lang-ci/rust that referenced this pull request

Feb 14, 2024

@bors

…llaumeGomez

Rollup of 6 pull requests

Successful merges:

r? @ghost @rustbot modify labels: rollup

@oli-obk

@bors bors 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-bors

Status: Waiting on bors to run and complete tests. Bors will change the label on completion.

labels

Feb 14, 2024

@oli-obk

rust-timer added a commit to rust-lang-ci/rust that referenced this pull request

Feb 14, 2024

@rust-timer

Rollup merge of rust-lang#121084 - oli-obk:create_def_forever_red2, r=WaffleLapkin

Make sure tcx.create_def also depends on the forever red node, instead of just tcx.at(span).create_def

oversight from rust-lang#119136

Not actually an issue, because all uses of tcx.create_def were in the resolver, which is eval_always, but still good to harden against future uses of create_def

cc @petrochenkov @WaffleLapkin

@klensy

Was merged in #121086 (at least first commit)

@oli-obk

@rustbot rustbot added S-waiting-on-review

Status: Awaiting review from the assignee but also interested parties.

and removed S-waiting-on-author

Status: This is awaiting some action (such as code changes or more information) from the author.

labels

Feb 14, 2024

@WaffleLapkin

@bors

📌 Commit 55f9aed has been approved by WaffleLapkin

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

Feb 14, 2024

bors added a commit to rust-lang-ci/rust that referenced this pull request

Feb 15, 2024

@bors

…iaskrgr

Rollup of 10 pull requests

Successful merges:

r? @ghost @rustbot modify labels: rollup

rust-timer added a commit to rust-lang-ci/rust that referenced this pull request

Feb 15, 2024

@rust-timer

Rollup merge of rust-lang#121084 - oli-obk:create_def_forever_red2, r=WaffleLapkin

Make sure tcx.create_def also depends on the forever red node, instead of just tcx.at(span).create_def

oversight from rust-lang#119136

Not actually an issue, because all uses of tcx.create_def were in the resolver, which is eval_always, but still good to harden against future uses of create_def

cc @petrochenkov @WaffleLapkin

bors added a commit to rust-lang-ci/rust that referenced this pull request

Feb 19, 2024

@bors

Remove feed_local_def_id

best reviewed commit by commit

Basically I returned TyCtxtFeed from create_def and then preserved that in the local caches

based on rust-lang#121084

r? @petrochenkov

bors added a commit to rust-lang-ci/rust that referenced this pull request

Feb 19, 2024

@bors

Remove feed_local_def_id

best reviewed commit by commit

Basically I returned TyCtxtFeed from create_def and then preserved that in the local caches

based on rust-lang#121084

r? @petrochenkov

matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request

Mar 6, 2024

@matthiaskrgr

…enkov

Remove feed_local_def_id

best reviewed commit by commit

Basically I returned TyCtxtFeed from create_def and then preserved that in the local caches

based on rust-lang#121084

r? @petrochenkov

matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request

Mar 6, 2024

@matthiaskrgr

…enkov

Remove feed_local_def_id

best reviewed commit by commit

Basically I returned TyCtxtFeed from create_def and then preserved that in the local caches

based on rust-lang#121084

r? @petrochenkov

workingjubilee added a commit to workingjubilee/rustc that referenced this pull request

Mar 7, 2024

@workingjubilee

…enkov

Remove feed_local_def_id

best reviewed commit by commit

Basically I returned TyCtxtFeed from create_def and then preserved that in the local caches

based on rust-lang#121084

r? @petrochenkov

GuillaumeGomez added a commit to GuillaumeGomez/rust that referenced this pull request

Mar 7, 2024

@GuillaumeGomez

…enkov

Remove feed_local_def_id

best reviewed commit by commit

Basically I returned TyCtxtFeed from create_def and then preserved that in the local caches

based on rust-lang#121084

r? @petrochenkov

rust-timer added a commit to rust-lang-ci/rust that referenced this pull request

Mar 8, 2024

@rust-timer

Rollup merge of rust-lang#121089 - oli-obk:create_def_feed, r=petrochenkov

Remove feed_local_def_id

best reviewed commit by commit

Basically I returned TyCtxtFeed from create_def and then preserved that in the local caches

based on rust-lang#121084

r? @petrochenkov

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.