Skip to content

Conversation

krk
Copy link
Contributor

@krk krk commented Apr 20, 2018

@ #36122

@pietroalbini
Copy link
Member

Thanks for the PR! Highfive failed to assign a reviewer, picking one randomly: @petrochenkov

@pietroalbini pietroalbini added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 20, 2018
@@ -301,16 +313,34 @@ fn check_item_fn<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>, item: &hir::Item) {
})
}

pub fn check_item_sized<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>, id: NodeId) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Apparently this should be done in librustc_typeck/check/mod.rs using require_type_is_sized and not in wfcheck.
So this leaves wfcheck with check_item_type only.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should it be done in CheckItemTypesVisitor.visit_item in librustc_typeck/check/mod.rs for example?

Copy link
Contributor

Choose a reason for hiding this comment

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

Probably in fn check_item_type

@petrochenkov petrochenkov 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 Apr 20, 2018
@shepmaster
Copy link
Member

Ping from triage, @krk ! Will you have time to address the review feedback in the near future?

@krk
Copy link
Contributor Author

krk commented Apr 30, 2018

Yes, I will have time possibly this week. Thanks for the ping!

@TimNN
Copy link
Contributor

TimNN commented May 8, 2018

Ping from triage, @krk ! Could you give us a short update? (It's perfectly fine if you are busy right now / need more time; just checking in).

@TimNN
Copy link
Contributor

TimNN commented May 15, 2018

Hi @krk, we're closing this PR due to inactivity to keep our queue clean. Please re-open this or another PR when you have the time to work on it again. Thanks for your work!

@TimNN TimNN closed this May 15, 2018
Mark-Simulacrum added a commit to Mark-Simulacrum/rust that referenced this pull request Jun 30, 2018
Require type is sized in wfcheck.check_item_type for externed DSTs, c…

…loses rust-lang#36122

Continuing rust-lang#50126.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants