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

Fix for expected/found not showing in old school mode #33388

Closed
wants to merge 2 commits into from

Conversation

sophiajt
Copy link
Contributor

@sophiajt sophiajt commented May 3, 2016

This fixes #33366 by turning on the expected/found notes for old school mode. It does so by plumbing through access to check_old_skool()

cc @birkenfeld (builds on #33367)

@rust-highfive
Copy link
Contributor

r? @nrc

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

@@ -554,7 +554,7 @@ impl<'a, 'tcx> ErrorReporting<'tcx> for InferCtxt<'a, 'tcx> {
"{}",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so, what I was trying to say before was that if we wanted to have something more like the old output, we could remove the modification below and instead change this line to:

let message = if check_old_skool() {
    format("{} ({})", trace.origin, terr)
} else {
    format("{}", trace.origin)
};
let mut err = struct_span_err!(..., "{}", message);

But I guess I'm ok either way.

@nikomatsakis
Copy link
Contributor

@bors r+

@bors
Copy link
Collaborator

bors commented May 3, 2016

📌 Commit 430ee0a has been approved by nikomatsakis

Verified

This commit was signed with the committer’s verified signature.
joboet Jonas Böttiger
…rors
@bors
Copy link
Collaborator

bors commented May 16, 2016

☔ The latest upstream changes (presumably #33619) made this pull request unmergeable. Please resolve the merge conflicts.

@sophiajt sophiajt closed this May 19, 2016
@sophiajt sophiajt deleted the issue-33366 branch May 19, 2016 12:26
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.

New errors: expected/found types omitted
5 participants