Skip to content

Fix invalid docs path for compiler plugins #46463

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 1 commit into from
Dec 4, 2017
Merged

Fix invalid docs path for compiler plugins #46463

merged 1 commit into from
Dec 4, 2017

Conversation

nak3
Copy link
Contributor

@nak3 nak3 commented Dec 3, 2017

The path to the docs src/doc/guide-plugin.md moved to
src/doc/unstable-book/src/language-features/plugin.md.

This patch updates it in the comment of WARNING message of the test
code.

@rust-highfive
Copy link
Contributor

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @aturon (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.

@kennytm kennytm added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 4, 2017
@@ -29,7 +29,7 @@ use rustc_plugin::Registry;
// WARNING WARNING WARNING WARNING WARNING
// =======================================
//
// This code also appears in src/doc/guide-plugin.md. Please keep
// This code also appears in src/doc/unstable-book. Please keep
Copy link
Member

Choose a reason for hiding this comment

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

Why not use the full path src/doc/unstable-book/src/language-features/plugin.md?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I made it consistent with the manner in other code feature_gate.rs#L106.

// If you change this, please modify src/doc/unstable-book as well.

Copy link
Member

Choose a reason for hiding this comment

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

The difference is that the comment in feature_gate.rs applies to every feature listed in the code below it, so pointing to the folder makes sense. The test case here only refers to a single feature.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, I understand. Thank you @kennytm . I updated it.

@kennytm
Copy link
Member

kennytm commented Dec 4, 2017

@bors r+ rollup

@bors
Copy link
Collaborator

bors commented Dec 4, 2017

📌 Commit 3e46fa2 has been approved by kennytm

@bors
Copy link
Collaborator

bors commented Dec 4, 2017

⌛ Testing commit 3e46fa2 with merge 226656f...

bors added a commit that referenced this pull request Dec 4, 2017
Fix invalid docs path for compiler plugins

The path to the docs `src/doc/guide-plugin.md` moved to
`src/doc/unstable-book/src/language-features/plugin.md`.

This patch updates it in the comment of WARNING message of the test
code.
@kennytm kennytm added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Dec 4, 2017
@bors
Copy link
Collaborator

bors commented Dec 4, 2017

☀️ Test successful - status-appveyor, status-travis
Approved by: kennytm
Pushing 226656f to master...

@bors bors merged commit 3e46fa2 into rust-lang:master Dec 4, 2017
@nak3 nak3 deleted the fix-invalid-docs-path branch December 5, 2017 00:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants