Skip to content

syntax: Fix complexity of string parsing. Closes #16624.#16659

Merged
bors merged 3 commits intorust-lang:masterfrom
brson:slowparse
Aug 22, 2014
Merged

syntax: Fix complexity of string parsing. Closes #16624.#16659
bors merged 3 commits intorust-lang:masterfrom
brson:slowparse

Conversation

@brson
Copy link
Copy Markdown
Contributor

@brson brson commented Aug 21, 2014

Note that this contains a 9.5MB test file, but it should compress thoroughly.

@brson
Copy link
Copy Markdown
Contributor Author

brson commented Aug 21, 2014

The problem here was that every char iteration was formatting an error message preemptively.

@alexcrichton
Copy link
Copy Markdown
Member

I think this also plagues binary literals, could a test be added for that as well?

@brson
Copy link
Copy Markdown
Contributor Author

brson commented Aug 21, 2014

Done. I also reduced the number of characters in each test from 1,000,000 to 400,000.

bors added a commit that referenced this pull request Aug 22, 2014
Note that this contains a 9.5MB test file, but it should compress thoroughly.
@bors bors closed this Aug 22, 2014
@bors bors merged commit f59cfd9 into rust-lang:master Aug 22, 2014
flip1995 pushed a commit to flip1995/rust that referenced this pull request Mar 5, 2026
Make `swap_binop()` a method of `HirEqInterExpr`, and use the proper
typeck to check the type of an expression.

changelog: none (fix of a regression, should be backported)

Fixes rust-lang/rust-clippy#16505

<!-- TRIAGEBOT_START -->

<!-- TRIAGEBOT_SUMMARY_START -->

### Summary Notes

-
[Beta-nomination](rust-lang/rust-clippy#16659 (comment))
by [samueltardieu](https://github.com/samueltardieu)

*Managed by `@rustbot`—see
[help](https://forge.rust-lang.org/triagebot/note.html) for details*

<!-- TRIAGEBOT_SUMMARY_END -->
<!-- TRIAGEBOT_END -->
cuviper pushed a commit to cuviper/rust that referenced this pull request Apr 9, 2026
Make `swap_binop()` a method of `HirEqInterExpr`, and use the proper
typeck to check the type of an expression.

changelog: none (fix of a regression, should be backported)

Fixes rust-lang/rust-clippy#16505

<!-- TRIAGEBOT_START -->

<!-- TRIAGEBOT_SUMMARY_START -->

### Summary Notes

-
[Beta-nomination](rust-lang/rust-clippy#16659 (comment))
by [samueltardieu](https://github.com/samueltardieu)

*Managed by `@rustbot`—see
[help](https://forge.rust-lang.org/triagebot/note.html) for details*

<!-- TRIAGEBOT_SUMMARY_END -->
<!-- TRIAGEBOT_END -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants