Skip to content

Link panic and compile_error docs - #51153

Merged
bors merged 2 commits into
rust-lang:masterfrom
ogham:panic-and-compile_error-docs
Jun 26, 2018
Merged

Link panic and compile_error docs#51153
bors merged 2 commits into
rust-lang:masterfrom
ogham:panic-and-compile_error-docs

Conversation

@ogham

Copy link
Copy Markdown
Contributor

This adds documentation links between panic!() and compile_error!() as per #47275, which points out that they’re similar. It also adds a sentence to the compile_error() docs I thought could be added.

@rust-highfive

Copy link
Copy Markdown
Contributor

r? @cramertj

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfiverust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label May 29, 2018
@GuillaumeGomez

Copy link
Copy Markdown
Member

Nice, thanks!

@bors: r+ rollup

@bors

bors commented May 29, 2018

Copy link
Copy Markdown
Collaborator

📌 Commit 1d7a0df has been approved by GuillaumeGomez

@borsbors 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 May 29, 2018
@kennytmkennytm mentioned this pull request May 30, 2018
@bors

bors commented May 30, 2018

Copy link
Copy Markdown
Collaborator

🔒 Merge conflict

@borsbors added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels May 30, 2018
kennytm added a commit to kennytm/rust that referenced this pull request May 30, 2018
… r=GuillaumeGomez
Link panic and compile_error docs
This adds documentation links between `panic!()` and `compile_error!()` as per rust-lang#47275, which points out that they’re similar. It also adds a sentence to the `compile_error()` docs I thought could be added.
bors added a commit that referenced this pull request May 30, 2018
Rollup of 12 pull requests
Successful merges:
- #51050 (std::fs::DirEntry.metadata(): use fstatat instead of lstat when possible)
- #51123 (Update build instructions)
- #51127 (Add doc link from discriminant struct to function.)
- #51146 (typeck: Do not pass the field check on field error)
- #51147 (Stabilize SliceIndex trait.)
- #51151 (Move slice::exact_chunks directly above exact_chunks_mut for more con…)
- #51152 (Replace `if` with `if and only if` in the definition dox of `Sync`)
- #51153 (Link panic and compile_error docs)
- #51158 (Mention spec and indented blocks in doctest docs)
- #51186 (Remove two redundant .nll.stderr files)
- #51203 (Two minor `obligation_forest` tweaks.)
- #51213 (fs: copy: Use File::set_permissions instead of fs::set_permissions)
Failed merges:
@emilyalbini

Copy link
Copy Markdown
Member

@GuillaumeGomez this probably needs to be r+ed again.

@emilyalbiniemilyalbini added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Jun 4, 2018
@kennytm

kennytm commented Jun 4, 2018

Copy link
Copy Markdown
Member

@bors retry r- try (just to check if merge conflict will still happen)

@borsbors added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jun 4, 2018
@bors

bors commented Jun 4, 2018

Copy link
Copy Markdown
Collaborator

🔒 Merge conflict

@emilyalbini

Copy link
Copy Markdown
Member

Uh, nevermind. @ogham you need to rebase this PR on top of the latest master.

@ogham

ogham commented Jun 5, 2018

Copy link
Copy Markdown
ContributorAuthor

I tried, but I got a conflict and I don’t know how to resolve it 😖

	both added: .gitignore

@kennytm

Copy link
Copy Markdown
Member

@ogham Strange, what does git status say?

@emilyalbini

Copy link
Copy Markdown
Member

Ping from triage @ogham! This PR still needs the rebase, if you can answer @kennytm's question maybe we can help you :)

ogham added 2 commits June 25, 2018 10:33
Fixesrust-lang#47275. These two macros are similar, but different, and could do with documentation links to each other.
It now details why using compile_error!() is different from just not having the final macro_rules!() branch.
@emilyalbini
emilyalbiniforce-pushed the panic-and-compile_error-docs branch from 1d7a0df to f85ddfbCompareJune 25, 2018 08:34
@emilyalbini

Copy link
Copy Markdown
Member

Rebased the commits myself.

@bors r=GuillaumeGomez rollup

@bors

bors commented Jun 25, 2018

Copy link
Copy Markdown
Collaborator

📌 Commit f85ddfb has been approved by GuillaumeGomez

@borsbors 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-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Jun 25, 2018
GuillaumeGomez added a commit to GuillaumeGomez/rust that referenced this pull request Jun 25, 2018
… r=GuillaumeGomez
Link panic and compile_error docs
This adds documentation links between `panic!()` and `compile_error!()` as per rust-lang#47275, which points out that they’re similar. It also adds a sentence to the `compile_error()` docs I thought could be added.
emilyalbini added a commit to emilyalbini/rust that referenced this pull request Jun 26, 2018
… r=GuillaumeGomez
Link panic and compile_error docs
This adds documentation links between `panic!()` and `compile_error!()` as per rust-lang#47275, which points out that they’re similar. It also adds a sentence to the `compile_error()` docs I thought could be added.
bors added a commit that referenced this pull request Jun 26, 2018
Rollup of 11 pull requests
Successful merges:
- #51104 (add `dyn ` to display of dynamic (trait) types)
- #51153 (Link panic and compile_error docs)
- #51642 (Fix unknown windows build)
- #51730 (New safe associated functions for PinMut)
- #51731 (Fix ICEs when using continue as an array length inside closures (inside loop conditions))
- #51747 (Add error for using null characters in #[export_name])
- #51769 (Update broken rustc-guide links)
- #51786 (Remove unnecessary stat64 pointer casts)
- #51788 (Fix typo)
- #51789 (Don't ICE when performing `lower_pattern_unadjusted` on a `TyError`)
- #51791 (Minify css)
Failed merges:
r? @ghost
@bors
bors merged commit f85ddfb into rust-lang:masterJun 26, 2018
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-borsStatus: 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.

7 participants

@ogham@rust-highfive@GuillaumeGomez@bors@emilyalbini@kennytm@cramertj