Skip to content

issue_130_7 implementing new features #280

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 10 commits into from
Feb 24, 2019
Merged

Conversation

rajcspsg
Copy link
Contributor

@rajcspsg rajcspsg commented Feb 8, 2019

@mark-i-m I have created new section implementing new features based on the forge document.

Also, I'm not sure about the how to add a test covering your feature gate, change for simple syntactic things and doing more advanced gates by looking at sess.features.your_feature_here as a boolean for the issue #98.

@mark-i-m mark-i-m self-assigned this Feb 8, 2019
@mark-i-m
Copy link
Member

mark-i-m commented Feb 8, 2019

Thanks @rajcspsg! I'll take a look soon.

Copy link
Member

@mark-i-m mark-i-m left a comment

Choose a reason for hiding this comment

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

Thanks @rajcspsg 👍

I think we should remove the parts that are aimed more at team members than general contributors. I've tried to leave a comment at the parts I think we can remove/change.

Also, you will need to hard-wrap all the lines to respect the 100 char limit.


You don't have to have the implementation fully ready for r+ to ask for a pFCP, but it is generally a good idea to have at least a proof of concept so that people can see what you are talking about.

That starts a "proposed final comment period" (pFCP), which requires all members of the team to sign off the FCP. After they all do so, there's a week long "final comment period" where everybody can comment, and if no new concerns are raised, the PR/issue gets FCP approval.
Copy link
Member

Choose a reason for hiding this comment

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

I believe it is now "all but two"? cc @Mark-Simulacrum

@shepmaster
Copy link
Member

Did you want to rename the file to be plural as well?

@mark-i-m
Copy link
Member

Also, please don't forget all the comments that Github "helpfully" collapsed (there are 8).

@rajcspsg rajcspsg force-pushed the issue_130_7 branch 3 times, most recently from b31c100 to 5cf4b1a Compare February 20, 2019 20:49
@rajcspsg
Copy link
Contributor Author

@mark-i-m @shepmaster I updated the book for the changes requested. Please review and let me know your comments.

@mark-i-m
Copy link
Member

@shepmaster Do you know how many people are required to check off on pFCP to get to FCP?

Copy link
Member

@mark-i-m mark-i-m left a comment

Choose a reason for hiding this comment

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

LGTM :)

I left a few minor nits, but other than that r=me.

I would still like to hear back from somebody who knows what it takes to start FCP. (@shepmaster?)

@mark-i-m
Copy link
Member

Thanks!

@mark-i-m mark-i-m merged commit ed6f17e into rust-lang:master Feb 24, 2019
@rajcspsg
Copy link
Contributor Author

@mark-i-m I remember you asked few more things on this in this comment. But I'm not sure where to find the same.

@mark-i-m
Copy link
Member

@rajcspsg Thanks for reminding me. Going through the list in #98:

how to add a feature gate in the code

I think this is reasonably covered in what you already wrote.

how to add a test covering your feature gate

Generally, these are normal ui tests that follow this pattern:

  • Write a program that uses a feature but does not use the feature gate.
  • Ensure that we get an error.

For example, consider this test that checks that asm (inline assembly) is feature gated: https://github.com/rust-lang/rust/blob/master/src/test/ui/feature-gates/feature-gate-asm.rs. The corresponding stderr file is: https://github.com/rust-lang/rust/blob/master/src/test/ui/feature-gates/feature-gate-asm.stderr

The point is just to make sure that the feature is not usable without the feature gate. When the feature is stabilized, the test can be deleted.

how to change for simple syntactic things

Hmmm... I'm not sure what Niko meant by this.

how to do more advanced gates by looking at sess.features.your_feature_here as a boolean

This seems to already be covered in what you wrote.

@rajcspsg
Copy link
Contributor Author

rajcspsg commented Mar 4, 2019

Thanks @mark-i-m We are good with everything expect how to change for simple syntactic things right?

@mark-i-m
Copy link
Member

mark-i-m commented Mar 4, 2019

@rajcspsg I'm not really sure what Niko meant by that. I think what we have is good enough for now, but I left a comment on the other thread asking for Niko's input.

If you want to open a PR about feature gate tests, that would be appreciated.

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.

3 participants