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 3 pull requests #39981

Merged
merged 10 commits into from
Feb 20, 2017
Merged

Rollup of 3 pull requests #39981

merged 10 commits into from
Feb 20, 2017

Conversation

frewsxcv
Copy link
Member

nikomatsakis and others added 10 commits February 17, 2017 11:01
These are some samples that I have been focusing on improving over
time. In this PR, I mainly want to stem the bleeding where we in some
cases we show an error that gives you no possible way to divine the
problem.
This reverts commit 7f1d1c6.

The original commit was created because mdBook and rustdoc had
different generation algorithms for header links; now with
rust-lang#39966 , the algorithms
are the same. So let's undo this change.

... when I came across this problem, I said "eh, this isn't fun,
but it doesn't take that long." I probably should have just actually
taken the time to fix upstream, given that they were amenable. Oh
well!
Previously, mdBook used JavaScript to add header links, so we
skipped checking the book. As of
rust-lang#39966, it no longer does,
so we can start checking again.

There is a twist, though: it uses name instead of id, so let's test
for both. They're both valid links anyway, so it's good to have the
checker check anyway.
This brings in a needed bugfix.
…felix

Report full details of inference errors

When the old suggestion machinery was removed by @brson in rust-lang#37057, it was not completely removed. There was a bit of code that had the job of going through errors and finding those for which suggestions were applicable, and it remained, causing us not to emit the full details of such errors.  This PR removes that.

I've also added various lifetime tests to the UI test suite (so you can also see the before/after there). I have some concrete thoughts on how to improve these cases and am planning on writing those up in some mentoring issues (@cengizio has expressed interest in working on those changes, so I plan to work with him on it, at least to start).

cc @jonathandturner
Fix spelling in hashmap comments

Fixing my bad english from rust-lang#38368

Note to self: triple check spelling/grammar
…ker, r=frewsxcv

Reenable linkchecker for books

In some senses, this is a revert of rust-lang@cacb3bc#diff-b64563d143f859565c8357a28ef81101R212; we disabled linkchecker for the book because the links were added by JavaScript. Now, that's fixed upstream, and so we can re-enable the checker.

This also involves two other fixes: we have to check for `name`s as well as `id`s for links, and the linking algorithm of mdBook changed to the same as rustdoc's, so we change some links back.

~~~This isn't quite ready yet; it's [depending on a PR of mine to mdBook](https://github.com/azerupi/mdBook/pull/209). After that's released, this should be the last of these kinds of shenanigans~~~ 😄

This is good to go 😄
@rust-highfive
Copy link
Collaborator

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @steveklabnik (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see the contribution instructions for more information.

@frewsxcv
Copy link
Member Author

@bors r+ p=10

@bors
Copy link
Contributor

bors commented Feb 20, 2017

📌 Commit 9a8dbbe has been approved by frewsxcv

@bors
Copy link
Contributor

bors commented Feb 20, 2017

⌛ Testing commit 9a8dbbe with merge c1368fc...

bors added a commit that referenced this pull request Feb 20, 2017
Rollup of 3 pull requests

- Successful merges: #39913, #39937, #39976
- Failed merges:
@bors
Copy link
Contributor

bors commented Feb 20, 2017

☀️ Test successful - status-appveyor, status-travis
Approved by: frewsxcv
Pushing c1368fc to master...

@bors bors merged commit 9a8dbbe into rust-lang:master Feb 20, 2017
@bors bors mentioned this pull request Feb 20, 2017
4 tasks
@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.

7 participants