Skip to content

Rollup of 10 pull requests - #47276

Merged
bors merged 23 commits into
rust-lang:masterfrom
kennytm:rollup
Jan 9, 2018
Merged

Rollup of 10 pull requests#47276
bors merged 23 commits into
rust-lang:masterfrom
kennytm:rollup

Conversation

zackmdavisand others added 16 commits January 6, 2018 11:17
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)
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
@rust-highfive

Copy link
Copy Markdown
Contributor

r? @nikomatsakis

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

@kennytm

Copy link
Copy Markdown
MemberAuthor

@bors r+ p=11

@bors

bors commented Jan 8, 2018

Copy link
Copy Markdown
Collaborator

📌 Commit 97de5c1 has been approved by kennytm

@kennytmkennytm added the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label Jan 8, 2018
…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
…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...)
@kennytmkennytm changed the title Rollup of 11 pull requestsRollup of 10 pull requestsJan 8, 2018
@kennytm

Copy link
Copy Markdown
MemberAuthor

@bors r+

Removed #47248 — author changed code after r+.

@bors

bors commented Jan 8, 2018

Copy link
Copy Markdown
Collaborator

📌 Commit 9ef9854 has been approved by kennytm

@bors

bors commented Jan 8, 2018

Copy link
Copy Markdown
Collaborator

⌛ Testing commit 9ef9854 with merge 767b40396b16815dbe8a05d5be0b76f0835d6d00...

@bors

bors commented Jan 8, 2018

Copy link
Copy Markdown
Collaborator

💔 Test failed - status-appveyor

@kennytm

Copy link
Copy Markdown
MemberAuthor

@bors retry

bors added a commit that referenced this pull request Jan 9, 2018
Rollup of 10 pull requests
- Successful merges: #47210, #47233, #47246, #47254, #47256, #47258, #47259, #47263, #47270, #47272
- Failed merges: #47248
@bors

bors commented Jan 9, 2018

Copy link
Copy Markdown
Collaborator

⌛ Testing commit 9ef9854 with merge 74966b5...

@bors

bors commented Jan 9, 2018

Copy link
Copy Markdown
Collaborator

☀️ Test successful - status-appveyor, status-travis
Approved by: kennytm
Pushing 74966b5 to master...

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

rollupA PR which is a rollupS-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.

12 participants

@kennytm@rust-highfive@bors@nikomatsakis@Centril@zackmdavis@aidanhs@dotdash@sfackler@ollie27@Zoxc@GuillaumeGomez