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

Rollup of 9 pull requests #70033

Closed
wants to merge 28 commits into from

Conversation

Dylan-DPC-zz
Copy link

Successful merges:

Failed merges:

r? @ghost

ollie27 and others added 28 commits March 12, 2020 22:55
This should allow the `rustdoc-js` and `rustdoc-js-std` test suites to run automatically on PRs.
Stable, beta and nightly URLs remain
…ddyb

Refactor the `Qualif` trait

This PR attempts to preserve the existing semantics of the `Qualif` trait while reducing its API to two significant methods with descriptive names, `in_any_value_of_ty` and `in_adt_inherently`. The other `in_*` methods have been made into free functions, since they should never be overloaded. Finally, I changed the bounds on the `in_local` argument to be less restrictive (`FnMut` instead of `Fn`), which addresses a FIXME in the const-checker.

r? @eddyb
cc @pnkfelix @oli-obk
…umeGomez

Use `pprust` to print attributes in rustdoc

Fixes rust-lang#69559.

I'm not sure what the original motivation was for the `render_attribute`, so I may be missing something, but replacing it with `pprust::attribute_to_string` seems to give the intended output (modulo some spacing idiosyncrasies).

r? @GuillaumeGomez
…=oli-obk

Make methods declared by `newtype_index` macro `const`

Crates that use the macro to define an `Idx` type need to enable `#![feature(const_if_match, const_panic)]`.
…m,GuillaumeGomez

Add Node.js to PR CI image

This should allow the `rustdoc-js` and `rustdoc-js-std` test suites to run automatically on PRs.
Block version-specific docs from search engines

Latest stable, beta and nightly URLs remain accessible because their URLs don't start with a version number. Robots.txt uses simple path prefixes, so it's OK that the disallow rules aren't full directory paths.

Direct links to old docs remain accessible to users, because robots.txt only affects crawlers.

With this change old docs for specific old versions of Rust won't pop up in search results. This is good, because users won't be getting obsolete documentation by accident.
…flow, r=ecstatic-morse

Add more context to the literal overflow message

related to issue rust-lang#63733
…error-code-e0634, r=Dylan-DPC,GuillaumeGomez

Add long error explanation for E0634

Add long explanation for the E0634 error code
Part of rust-lang#61137

r? @GuillaumeGomez
…ok, r=Dylan-DPC

Small fixes in rustdoc book

I read the `rustdoc` book today and noticed some small typos/problems. Mainly:

 - `# fn foo() {}` was displayed when not needed because fenced block code type was `text` instead of `rust`;
 - two path separators were missing and some Windows-style separators were not consistent with the rest of them (mainly Linux-style).

Here are my proposed fixes. It is my first PR for the rust project. Don't hesitate to tell me if I am doing it wrong or if you need anything else.

Have a nice day!
@Dylan-DPC-zz
Copy link
Author

@bors r+ rollup=never p=9

@bors
Copy link
Contributor

bors commented Mar 15, 2020

📌 Commit b543b99 has been approved by Dylan-DPC

@bors bors added the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label Mar 15, 2020
@bors
Copy link
Contributor

bors commented Mar 15, 2020

⌛ Testing commit b543b99 with merge a70c07b9d5509a9af1dc18340de99360521bbe91...

@rust-highfive
Copy link
Collaborator

The job mingw-check of your PR failed (pretty log, raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem.

Click to expand the log.
2020-03-15T23:57:26.2349212Z     Checking rustc_parse v0.0.0 (/checkout/src/librustc_parse)
2020-03-15T23:57:28.5509707Z     Checking rustc_ast_passes v0.0.0 (/checkout/src/librustc_ast_passes)
2020-03-15T23:57:29.2342262Z     Checking rustc_expand v0.0.0 (/checkout/src/librustc_expand)
2020-03-15T23:57:30.6355790Z     Checking rustc_builtin_macros v0.0.0 (/checkout/src/librustc_builtin_macros)
2020-03-15T23:57:33.8973180Z error[E0599]: no function or associated item named `from_u32_const` found for struct `rustc_hir::hir_id::ItemLocalId` in the current scope
2020-03-15T23:57:33.8975017Z    --> src/librustc/hir/map/mod.rs:348:40
2020-03-15T23:57:33.8976044Z     |
2020-03-15T23:57:33.8977419Z 348 |         if id.local_id == ItemLocalId::from_u32_const(0) {
2020-03-15T23:57:33.8979807Z     |                                        ^^^^^^^^^^^^^^ function or associated item not found in `rustc_hir::hir_id::ItemLocalId`
2020-03-15T23:57:40.7513655Z error: aborting due to previous error
2020-03-15T23:57:40.7514830Z 
2020-03-15T23:57:40.7515825Z For more information about this error, try `rustc --explain E0599`.
2020-03-15T23:57:40.7757183Z error: could not compile `rustc`.
2020-03-15T23:57:40.7757183Z error: could not compile `rustc`.
2020-03-15T23:57:40.7758036Z 
2020-03-15T23:57:40.7759194Z To learn more, run the command again with --verbose.
2020-03-15T23:57:40.7788472Z command did not execute successfully: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "check" "-Zconfig-profile" "--target" "x86_64-unknown-linux-gnu" "-Zbinary-dep-depinfo" "-j" "2" "--release" "--color" "always" "--features" " llvm" "--manifest-path" "/checkout/src/rustc/Cargo.toml" "--message-format" "json-render-diagnostics"
2020-03-15T23:57:40.7793306Z failed to run: /checkout/obj/build/bootstrap/debug/bootstrap check
2020-03-15T23:57:40.7794002Z Build completed unsuccessfully in 0:03:57
2020-03-15T23:57:40.7851731Z == clock drift check ==
2020-03-15T23:57:40.7867815Z   local time: Sun Mar 15 23:57:40 UTC 2020
2020-03-15T23:57:40.7867815Z   local time: Sun Mar 15 23:57:40 UTC 2020
2020-03-15T23:57:41.0576523Z   network time: Sun, 15 Mar 2020 23:57:41 GMT
2020-03-15T23:57:41.0584591Z == end clock drift check ==
2020-03-15T23:57:41.9910900Z 
2020-03-15T23:57:41.9978794Z ##[error]Bash exited with code '1'.
2020-03-15T23:57:42.0047252Z ##[section]Starting: Checkout rust-lang/rust@auto to s
2020-03-15T23:57:42.0051901Z ==============================================================================
2020-03-15T23:57:42.0052561Z Task         : Get sources
2020-03-15T23:57:42.0052959Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.

I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact @rust-lang/infra. (Feature Requests)

@bors
Copy link
Contributor

bors commented Mar 16, 2020

💔 Test failed - checks-azure

@bors bors added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Mar 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.