-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Document rustfmt on nightly-rustc #86737
Conversation
Some changes occurred in src/tools/rustfmt. |
See https://rust-lang.zulipchat.com/#narrow/stream/233931-t-compiler.2Fmajor-changes/topic/rustdoc.20is.20using.20rustc_ast_pretty.2C.20would.20.E2.80.A6.20compiler-team.23403 for the motivation - rustdoc is considering using rustfmt as a library. |
// Build rustdoc. | ||
builder.ensure(tool::Rustdoc { compiler }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This wasn't actually necessary - rustdoc is built in the step before when Rustc
is documented.
This comment has been minimized.
This comment has been minimized.
Seems reasonable to me -- r=me with CI fixed (looks like rustfmt failure). |
The recursion_limit attribute avoids the following error: ``` error[E0275]: overflow evaluating the requirement `std::ptr::Unique<rustc_ast::Pat>: std::marker::Send` | = help: consider adding a `#![recursion_limit="256"]` attribute to your crate (`rustfmt_nightly`) ```
@bors r=Mark-Simulacrum |
📌 Commit 01cf0bd has been approved by |
…laumeGomez Rollup of 5 pull requests Successful merges: - rust-lang#85749 (Revert "Don't load all extern crates unconditionally") - rust-lang#86714 (Add linked list cursor end methods) - rust-lang#86737 (Document rustfmt on nightly-rustc) - rust-lang#86776 (Skip layout query when computing integer type size during mangling) - rust-lang#86797 (Stabilize `Bound::cloned()`) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
…items, r=jyn514 Document rustdoc with `--document-private-items` The `tool_doc` macro introduced in rust-lang#86737 did not use `false` as the default value for `binary` when it is not provided, so the `if` is not even expanded and thus the argument is never provided if the `binary` argument isn't. Resolves rust-lang#86900 r? `@Mark-Simulacrum`
…items, r=jyn514 Document rustdoc with `--document-private-items` The `tool_doc` macro introduced in rust-lang#86737 did not use `false` as the default value for `binary` when it is not provided, so the `if` is not even expanded and thus the argument is never provided if the `binary` argument isn't. Resolves rust-lang#86900 r? ``@Mark-Simulacrum``
…items, r=jyn514 Document rustdoc with `--document-private-items` The `tool_doc` macro introduced in rust-lang#86737 did not use `false` as the default value for `binary` when it is not provided, so the `if` is not even expanded and thus the argument is never provided if the `binary` argument isn't. Resolves rust-lang#86900 r? ```@Mark-Simulacrum```
recursion_limit
macro to avoid overflow errorsThis does not currently pass --document-private-items for rustfmt due to rust-lang/cargo#8422 (comment).
r? @Mark-Simulacrum cc @calebcartwright