Skip to content

Conversation

@lnicola
Copy link
Member

@lnicola lnicola commented Dec 23, 2020

No description provided.

rust_ir::AdtRepr { repr_c: false, repr_packed: false }
fn adt_repr(&self, _struct_id: AdtId) -> Arc<rust_ir::AdtRepr<Interner>> {
// FIXME: keep track of these
Arc::new(rust_ir::AdtRepr { c: false, packed: false, int: None })
Copy link
Member Author

Choose a reason for hiding this comment

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

I think we already remember the packedness, but I got a bit lost trying to retrieve it.

@lnicola
Copy link
Member Author

lnicola commented Dec 23, 2020

r? @flodiebold

}
fn discriminant_type(&self, _ty: chalk_ir::Ty<Interner>) -> chalk_ir::Ty<Interner> {
// FIXME: keep track of this
unimplemented!();
Copy link
Member

Choose a reason for hiding this comment

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

hmm this could potentiall introduce crashes, together with the well_known_trait_from_lang_attr addition. Could you make it instead just return i32 (chalk_ir::TyKind::Scalar(Scalar::Uint(chalk_ir::IntTy::I32)).intern(&Interner))?

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated, thanks

Copy link
Member Author

Choose a reason for hiding this comment

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

What do you mean about well_known_trait_from_lang_attr?

Copy link
Member

Choose a reason for hiding this comment

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

Just that because of that change, this function could be called.

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah, right.

@flodiebold
Copy link
Member

bors r+

@bors
Copy link
Contributor

bors bot commented Dec 23, 2020

@bors bors bot merged commit 4228e82 into rust-lang:master Dec 23, 2020
@lnicola lnicola deleted the bump-deps branch December 23, 2020 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants