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 13 pull requests #88461

Merged
merged 35 commits into from
Aug 29, 2021
Merged

Conversation

GuillaumeGomez
Copy link
Member

Successful merges:

Failed merges:

r? @ghost
@rustbot modify labels: rollup

Create a similar rollup

LeSeulArtichaut and others added 30 commits December 31, 2020 02:22
This commit refactors the implementation of
`markdown_summary_with_limit()`, separating the logic of determining
when the limit has been reached from the actual rendering process.

The main advantage of the new approach is that it guarantees that all
HTML tags are closed, whereas the previous implementation could generate
tags that were never closed. It also ensures that no empty tags are
generated (e.g., `<em></em>`).

The new implementation consists of a general-purpose struct
`HtmlWithLimit` that manages the length-limiting logic and a function
`markdown_summary_with_limit()` that renders Markdown to HTML using the
struct.
The length limit turns out to be a surprisingly good heuristic for
initial allocation size. See here for more details [1].

[1]: rust-lang#88173 (comment)
This can happen when a tag is opened after the length limit is reached;
the tag will not end up being added to `unclosed_tags` because the queue
will never be flushed. So, now, if the `unclosed_tags` stack is empty,
`close_tag()` does nothing.

This change fixes a panic in the `limit_0` unit test.
stack_t.ss_sp is now c_void on DragonFlyBSD, so the specialization is no longer needed.

Changed in rust-lang/libc@02922ef.
We can instead if either the LHS or RHS types contain
`TyKind::Error`. In addition to covering the case where
we would have previously updated `if_let_suggestions`, this might
also prevent redundant errors in other cases as well.
When calling a method requiring a mutable self borrow on an inmutable
to a mutable borrow of the type, suggest making the binding mutable.

Fix rust-lang#83241.
…storino

Notify when an `I-prioritize` issue is closed or reopened

Companion PR to rust-lang/triagebot#1078, blocked on that PR.
r? ``@spastorino`` cc ``@rust-lang/wg-prioritization``
Suggestion for call on immutable binding of mutable type

When calling a method requiring a mutable self borrow on an inmutable
to a mutable borrow of the type, suggest making the binding mutable.

Fix rust-lang#83241.
…rister

add rustc-demangle assertion on mangled symbol

cc rust-lang#60705 (comment)
r? `@michaelwoerister`
…mit, r=GuillaumeGomez

Refactor Markdown length-limited summary implementation

This PR is a new approach to rust-lang#79749.

This PR refactors the implementation of `markdown_summary_with_limit()`,
separating the logic of determining when the limit has been reached from
the actual rendering process.

The main advantage of the new approach is that it guarantees that all
HTML tags are closed, whereas the previous implementation could generate
tags that were never closed. It also ensures that no empty tags are
generated (e.g., `<em></em>`).

The new implementation consists of a general-purpose struct
`HtmlWithLimit` that manages the length-limiting logic and a function
`markdown_summary_with_limit()` that renders Markdown to HTML using the
struct.

r? `@GuillaumeGomez`
…test, r=oli-obk

Add const and static TAIT tests

r? ``@oli-obk``

Related to rust-lang#86727
…e, r=Mark-Simulacrum

add unsized coercion test

we had no tests in our test suite for this case
…r=dtolnay

Handle stack_t.ss_sp type change for DragonFlyBSD

stack_t.ss_sp is now c_void on DragonFlyBSD, like the rest of the BSDs.

Changed in rust-lang/libc@02922ef.
…Simulacrum

Remove vestigial rustfix tests.

The directory `src/test/rustfix` is not actually tested. It looks like a mistake was made when rustfix tests were originally introduced in rust-lang#50084.  In commit 6f2d023 they were moved to `src/test/ui`, but the tests in the original directory weren't deleted.
…Simulacrum

Fix formatting in release notes from 52a9883

I neglected to add a line that allowed the `[cargo/9663]` short-hand to resolve to an actual link in the rendered markdown on github.
…estebank

Remove `Session.if_let_suggestions`

We can instead if either the LHS or RHS types contain
`TyKind::Error`. In addition to covering the case where
we would have previously updated `if_let_suggestions`, this might
also prevent redundant errors in other cases as well.
…r=camelid,notriddle

Fix code blocks color in Ayu theme

Fixes rust-lang#88415.

cc `@camelid`
r? `@notriddle`
@rustbot rustbot added the rollup A PR which is a rollup label Aug 29, 2021
@GuillaumeGomez
Copy link
Member Author

@bors: r+ p=13 rollup=never

@bors
Copy link
Contributor

bors commented Aug 29, 2021

📌 Commit 26feefd has been approved by GuillaumeGomez

@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 Aug 29, 2021
@BubbaSheen
Copy link

BubbaSheen commented Aug 29, 2021 via email

@bors
Copy link
Contributor

bors commented Aug 29, 2021

⌛ Testing commit 26feefd with merge daa4dc9...

@bors
Copy link
Contributor

bors commented Aug 29, 2021

☀️ Test successful - checks-actions
Approved by: GuillaumeGomez
Pushing daa4dc9 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Aug 29, 2021
@bors bors merged commit daa4dc9 into rust-lang:master Aug 29, 2021
@rustbot rustbot added this to the 1.56.0 milestone Aug 29, 2021
@GuillaumeGomez GuillaumeGomez deleted the rollup-khgu0eb branch August 29, 2021 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged-by-bors This PR was explicitly merged by bors. rollup A PR which is a rollup S-waiting-on-bors Status: 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.