Skip to content
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

Remove unnecessary main functions in doc examples. #35482

Merged
merged 1 commit into from
Aug 12, 2016

Conversation

frewsxcv
Copy link
Member

@frewsxcv frewsxcv commented Aug 8, 2016

No description provided.

@rust-highfive
Copy link
Collaborator

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @alexcrichton (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see the contribution instructions for more information.

@frewsxcv
Copy link
Member Author

frewsxcv commented Aug 8, 2016

r? @GuillaumeGomez

@GuillaumeGomez
Copy link
Member

Having the main function allows sometimes to avoid some bad automatic test wrapping. If travis says ok, then it's all good but just in case I prefer wait and see.

@frewsxcv
Copy link
Member Author

frewsxcv commented Aug 9, 2016

Travis already finished for this.

@frewsxcv
Copy link
Member Author

frewsxcv commented Aug 9, 2016

For the record, use and extern can be used inside functions, so they aren't going to be extracted out of the generated main.

@GuillaumeGomez
Copy link
Member

Normally yes but sometimes we have weird behaviors. Anyway, travis is happy so I am!

@bors: r+ rollup

@bors
Copy link
Contributor

bors commented Aug 10, 2016

📌 Commit e28521e has been approved by GuillaumeGomez

steveklabnik added a commit to steveklabnik/rust that referenced this pull request Aug 10, 2016
Remove unnecessary `main` functions in doc examples.
sophiajt pushed a commit to sophiajt/rust that referenced this pull request Aug 10, 2016
Remove unnecessary `main` functions in doc examples.
sophiajt pushed a commit to sophiajt/rust that referenced this pull request Aug 11, 2016
Remove unnecessary `main` functions in doc examples.
bors added a commit that referenced this pull request Aug 11, 2016
@bors bors merged commit e28521e into rust-lang:master Aug 12, 2016
@frewsxcv frewsxcv deleted the patch-31 branch October 2, 2016 23:06
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