Skip to content

Conversation

GuillaumeGomez and others added 6 commits February 25, 2016 10:15
`continue` expression's description mentioned `break` instead of `continue`

Signed-off-by: benaryorg <binary@benary.org>
When foldings Substs, we map over VecPerParamSpace instances using
EnumeratedItems which does not provide an accurate size_hint()
in its Iterator implementation. This leads to quite a large number or
reallocations. Providing a suitable size_hint() implementation reduces
the time spent in item-bodies checking quite a bit.

```
crate  | before | after | ~change
-------|-------------------------
core   |  7.28s | 5.44s |   -25%
std    |  2.07s | 1.88s |  -9.2%
syntax |  8.86s | 8.30s |  -6.3%
```
Adds extra documentation links for library types and methods to be
consistent with similar items already linked. Also includes minor
formatting fixes.
@Manishearth
Copy link
Member Author

@bors r+ p=20

@bors
Copy link
Collaborator

bors commented Feb 27, 2016

📌 Commit 9c63c56 has been approved by Manishearth

@bors
Copy link
Collaborator

bors commented Feb 27, 2016

⌛ Testing commit 9c63c56 with merge ef48928...

@bors
Copy link
Collaborator

bors commented Feb 27, 2016

💔 Test failed - auto-win-gnu-32-nopt-t

`continue` expression's description mentioned `break` instead of `continue`
These `_post` methods are quite helpful to control lint behavior without storing e.g. block node ids. So here are a few more I believe will be helpful.

r? @Manishearth
When foldings Substs, we map over VecPerParamSpace instances using
EnumeratedItems which does not provide an accurate size_hint()
in its Iterator implementation. This leads to quite a large number or
reallocations. Providing a suitable size_hint() implementation reduces
the time spent in item-bodies checking quite a bit.

```
crate  | before | after | ~change
-------|-------------------------
core   |  7.28s | 5.44s |   -25%
std    |  2.07s | 1.88s |  -9.2%
syntax |  8.86s | 8.30s |  -6.3%
```
Hello.

I've added links for items inside of some stable methods for consistency with existing ones that already have them. Also includes minor formatting fixes.

r? @steveklabnik
@Manishearth
Copy link
Member Author

@bors r+ p=10 force

@bors
Copy link
Collaborator

bors commented Feb 27, 2016

📌 Commit 7f59c21 has been approved by Manishearth

@bors
Copy link
Collaborator

bors commented Feb 27, 2016

⌛ Testing commit 7f59c21 with merge 8082137...

@bors
Copy link
Collaborator

bors commented Feb 27, 2016

💔 Test failed - auto-win-gnu-32-opt

@Manishearth
Copy link
Member Author

@bors retry force

bors added a commit that referenced this pull request Feb 27, 2016
@bors
Copy link
Collaborator

bors commented Feb 27, 2016

⌛ Testing commit 7f59c21 with merge acdd3b9...

@bors bors merged commit 7f59c21 into rust-lang:master Feb 27, 2016
@Centril Centril added the rollup A PR which is a rollup label Oct 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rollup A PR which is a rollup
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants