Skip to content

Add function def clauses #477

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

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 28, 2020
Merged

Add function def clauses #477

merged 2 commits into from
May 28, 2020

Conversation

jackh726
Copy link
Member

Missed in #449

Also Sized test for Never

@nikomatsakis nikomatsakis merged commit 52a3530 into rust-lang:master May 28, 2020
@jackh726 jackh726 deleted the fn_def branch May 28, 2020 16:38
fn fn_def_is_copy() {
test! {
program {
#[lang(sized)]
Copy link
Member

Choose a reason for hiding this comment

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

This should be copy, not sized.

fn fn_def_is_clone() {
test! {
program {
#[lang(sized)]
Copy link
Member

Choose a reason for hiding this comment

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

This should be clone, not sized.

@jackh726
Copy link
Member Author

Well shoot...I'll just include these in the chalk-base PR.

@jackh726 jackh726 mentioned this pull request May 28, 2020
@@ -0,0 +1,66 @@
use super::*;
Copy link
Member

@AzureMarker AzureMarker May 28, 2020

Choose a reason for hiding this comment

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

Another issue, these tests aren't run because the module is not listed in tests/test/mod.rs

Copy link
Member

Choose a reason for hiding this comment

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

They fail in the parser because it expects ; instead of { }.

Copy link
Member Author

Choose a reason for hiding this comment

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

🙄

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.

5 participants