Uh oh!
There was an error while loading. Please reload this page.
Rollup of 10 pull requests - #47276
Merged
Merged
Conversation
This `horizontal_trim` function strips the leading whitespace from doc-comments that have a left-asterisk-margin: /** * You know what I mean— * * comments like this! */ The index of the column of asterisks is `i`, and if trimming is deemed possible, we slice each line from `i+1` to the end of the line. But if, in particular, `i` was 0 _and_ there was an empty line (as in the example given in the reporting issue), we ended up panicking trying to slice an empty string from 0+1 (== 1). Let's tighten our check to say that we can't trim when `i` is even the same as the length of the line, not just when it's greater. (Any such cases would panic trying to slice `line` from `line.len()+1`.) Resolvesrust-lang#47197.
The same effect can be achieved using -Cllvm-args=-debug Refs rust-lang#46437 as it removes LLVMRustSetDebug()
Refs rust-lang#46437 as it also removes LLVMRustWriteDebugLocToString()
As a side effect, this fixes the warning about repr(C, simd) that has been reported during x86_64 windows builds since rust-lang#47111 (see also: rust-lang#47103)
…and locals that mentioned "extern repr"
It is also intended for use with unions.
…blems_in_computer_science, r=QuietMisdreavus fix the doc-comment-decoration-trimming edge-case rustdoc ICE This `horizontal_trim` function strips the leading whitespace from doc-comments that have a left-asterisk-margin: ``` /** * You know what I mean— * * comments like this! */ ``` The index of the column of asterisks is `i`, and if trimming is deemed possible, we slice each line from `i+1` to the end of the line. But if, in particular, `i` was 0 _and_ there was an empty line (as in the example given in the reporting issue), we ended up panicking trying to slice an empty string from 0+1 (== 1). Let's tighten our check to say that we can't trim when `i` is even the same as the length of the line, not just when it's greater. (Any such cases would panic trying to slice `line` from `line.len()+1`.) Resolvesrust-lang#47197.
Remove unused LLVM related code Ticks a few more boxes on rust-lang#46437
…, r=KodrAus Make wasm obey backtrace feature, like other targets E.g. https://github.com/rust-lang/rust/blob/6828cf90146c7fefc4ba4f16dffe75f763f2d910/src/libstd/sys/unix/mod.rs#L40-L41
rust-highfive
commented
Jan 8, 2018
Contributor
(rust_highfive has picked a reviewer for you, use r? to override) |
kennytm
commented
Jan 8, 2018
MemberAuthor
@bors r+ p=11 |
bors
commented
Jan 8, 2018
Collaborator
📌 Commit 97de5c1 has been approved by |
…richton Replace empty array hack with repr(align) As a side effect, this fixes the warning about repr(C, simd) that has been reported during x86_64 windows builds since rust-lang#47111 (see also: rust-lang#47103) r? @alexcrichton
Rename ReprExtern to ReprC … and similarily rename a few other field and locals that mentioned "extern repr".
rustc::ty: Rename struct_variant to non_enum_variant r? @eddyb
Add HashMap::remove_entry Implements rust-lang#46344 r? @dtolnay
…t, r=GuillaumeGomez rustdoc: Don't import macros from private imports Fixesrust-lang#47038
Don't look for niches inside generator types. Fixesrust-lang#47253 r? @eddyb
…etMisdreavus Add missing links r? @QuietMisdreavus (please wait for CI, I have a few doubts about the `Write` trait links...)
kennytm
commented
Jan 8, 2018
MemberAuthor
bors
commented
Jan 8, 2018
Collaborator
📌 Commit 9ef9854 has been approved by |
bors
commented
Jan 8, 2018
Collaborator
⌛ Testing commit 9ef9854 with merge 767b40396b16815dbe8a05d5be0b76f0835d6d00... |
bors
commented
Jan 8, 2018
Collaborator
💔 Test failed - status-appveyor |
kennytm
commented
Jan 9, 2018
MemberAuthor
@bors retry |
bors
commented
Jan 9, 2018
Collaborator
bors
commented
Jan 9, 2018
Collaborator
☀️ Test successful - status-appveyor, status-travis |
This was referenced Jan 9, 2018
This file contains hidden or 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
Sign up for freeto 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.
Uh oh!
There was an error while loading. Please reload this page.