-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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 18 pull requests #43800
Merged
Merged
Rollup of 18 pull requests #43800
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Yellow is indeed a nice color for a bikeshed.
tidy will no longer complain about long lines containing links so there is no reason to use a URL shortener here.
The spans previously encoded only span the first token after the opening brace, up to the closing brace of inline `mod` declarations. Thus, when examining exports from an external crate, the spans don't include the header of inline `mod` declarations.
That makes ./x.py test --stage 1 work on x86_64-unknown-linux-gnu.
The layout is currently broken for struct/union fields and enum variants in the search results when searching from a struct, union or enum page.
(this should not have been merged with this typo)
E0122: clarify wording I *assume* the reason these constraints are not hard errors is backwards compatibility. If yes, I think the error explanation (at least the long form) should be clearer about that, which is what this PR does. If not, the explanation should give some other suitable explanation.
…ark-Simulacrum Detect relative urls in tidy check This came up in rust-lang#43631: there can be long relative urls in Markdown comments, that do not start with `http://` or `https://`, so the tidy check will not detect them as urls and complain about the line length. This PR adds detection of relative urls starting with `../`.
test MIR validation statements in closures r? @nikomatsakis
Reexport all SyntaxExtension variants This was previously done very inconsistently and made matches look weird since some variants had the `SyntaxExtension::` prefix while others didn't.
…reavus Stop using URL shortener in docs tidy will no longer complain about long lines containing links so there is no reason to use a URL shortener here.
Provide more explanation for Deref in String docs While working on a different project I encountered a point of confusion where using `&String` to dereference a `String` into `&str` did not compile. I found the explanation of [String Deref](https://doc.rust-lang.org/std/string/struct.String.html#deref), thought that it matched what I was trying to do, and was confused as to why my program did not compile when the docs stated that it would work with 'any function which takes a `&str`'. At the bottom it is mentioned that this will 'generally' work, unless `String` is needed, but I found this statement confusing based on the previous claim of 'any'. Looking further into the docs I was able to find the function `as_str()` that works instead. I thought it might be helpful to mention here deref coercion, an instance in which using `&String` does not work, to explain why it does not work, then direct users to a different option that should work in this instance. A user casually skimming the page will likely come to this explanation first, then find `as_str()` later, but be no the wiser as to what potentially went wrong. r? @steveklabnik
Encode proper module spans in crate metadata. The spans previously encoded only span the first token after the opening brace, up to the closing brace of inline `mod` declarations. Thus, when examining exports from an external crate, the spans don't include the header of inline `mod` declarations. r? @eddyb
fix assertion - trait object pointers don't have infinite fields r? @eddyb
…lacrum Ignore tests that fail on stage1 That makes `./x.py test --stage 1` work on `x86_64-unknown-linux-gnu`.
…reavus Improve headers linking r? @QuietMisdreavus
Add IRC's `!union union` as a test, addresses rust-lang#43553 This pull request adds a new test, `union` to `weird-exprs.rs`.
…aumeGomez rustdoc: Fix broken CSS in search results The layout is currently broken for struct/union fields and enum variants in the search results when searching from a struct, union or enum page. Some examples: https://doc.rust-lang.org/nightly/std/ops/struct.RangeInclusive.html?search=start https://doc.rust-lang.org/nightly/std/option/enum.Option.html?search=some rust-lang#34477 was an incomplete fix
fix a typo (this should not have been merged with this typo)
Fix typo in unicode char definition Reference: http://www.fileformat.info/info/unicode/char/16ed/index.htm
…lacrum Fix typo corersponding -> corresponding I was reading the documentation of __Struct std::os::unix::net::UnixListener__ when I saw a typo inside.
…sdreavus File docs r? @rust-lang/docs
Fix broken links in Arc documentation Some link references had ticks, when they should not have had them.
…-style, r=QuietMisdreavus Improve enum variants display r? @rust-lang/docs Before: <img width="1440" alt="screen shot 2017-08-11 at 00 22 54" src="https://user-images.githubusercontent.com/3050060/29194776-728ce0e2-7e2b-11e7-8299-8300cc0c168b.png"> After: <img width="1440" alt="screen shot 2017-08-11 at 00 22 57" src="https://user-images.githubusercontent.com/3050060/29194783-78867558-7e2b-11e7-9226-1327fd20163a.png"> (The doc of the variant is more aligned with the "[-]" now).
Some changes occurred in HTML/CSS. |
(rust_highfive has picked a reviewer for you, use r? to override) |
@bors: r+ p=10 |
📌 Commit 742bba0 has been approved by |
bors
added a commit
that referenced
this pull request
Aug 11, 2017
☀️ Test successful - status-appveyor, status-travis |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
!union union
as a test, addresses #43553 #43752, rustdoc: Fix broken CSS in search results #43760, fix a typo #43773, Fix typo in unicode char definition #43779, Fix typo corersponding -> corresponding #43783, File docs #43791, Fix broken links in Arc documentation #43793, Improve enum variants display #43795