Skip to content

Update error message for E0243 and E0244#35419

Merged
bors merged 1 commit into
rust-lang:masterfrom
Keats:err-243
Aug 7, 2016
Merged

Update error message for E0243 and E0244#35419
bors merged 1 commit into
rust-lang:masterfrom
Keats:err-243

Conversation

@Keats

@Keats Keats commented Aug 6, 2016

Copy link
Copy Markdown

Fixes #35389 and #35390 as part of #35233.

r? @jonathandturner

@rust-highfive

Copy link
Copy Markdown
Contributor

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @jonathandturner (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.

Comment thread src/test/compile-fail/issue-23024.rs Outdated

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

this errors:

unexpected errors (from JSON output): [
    Error {
        line_num: 19,
        kind: Some(
            Note
        ),
        msg: "in this expansion of println!"
    },
    Error {
        line_num: 19,
        kind: Some(
            Note
        ),
        msg: "in this expansion of println!"
    },
    Error {
        line_num: 19,
        kind: Some(
            Note
        ),
        msg: "in this expansion of println!"
    },
    Error {
        line_num: 19,
        kind: Some(
            Note
        ),
        msg: "in this expansion of println!"
    }
]

Remove the note make the test pass. Any idea?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

according to irc, it's because once one NOTE is there, they must all be accounted for, should I remove mine or add the 4 missing?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Right. For the time being, would you mind adding the 4 missing ones? We'll probably do another pass later on that helps clean up macro errors, but for now we'll need to test for them.

@Keats

Keats commented Aug 6, 2016

Copy link
Copy Markdown
Author

Updated

@sophiajt

sophiajt commented Aug 6, 2016

Copy link
Copy Markdown
Contributor

Looks good!

@bors r+ rollup

@bors

bors commented Aug 6, 2016

Copy link
Copy Markdown
Collaborator

📌 Commit 24ddca0 has been approved by jonathandturner

sophiajt pushed a commit to sophiajt/rust that referenced this pull request Aug 6, 2016
bors added a commit that referenced this pull request Aug 6, 2016
Rollup of 9 pull requests

- Successful merges: #35362, #35393, #35394, #35402, #35410, #35411, #35413, #35419, #35421
- Failed merges: #35395, #35415
@sophiajt

sophiajt commented Aug 6, 2016

Copy link
Copy Markdown
Contributor

@bors r-

Looks like you missed a couple, both of them in src/test/compile-fail/typeck-builtin-bound-type-parameters.rs on line 23 and 27:

unexpected errors (from JSON output): [
    Error {
        line_num: 23,
        kind: Some(
            Note
        ),
        msg: "unexpected lifetime parameter"
    },
    Error {
        line_num: 27,
        kind: Some(
            Note
        ),
        msg: "unexpected lifetime parameter"
    }
]

@Keats

Keats commented Aug 7, 2016

Copy link
Copy Markdown
Author

Had to rebase to see the errors, anyway fixed

@sophiajt

sophiajt commented Aug 7, 2016

Copy link
Copy Markdown
Contributor

@Keats - yeah I figured that might be the case. Thanks for updating.

@bors r+ rollup

@bors

bors commented Aug 7, 2016

Copy link
Copy Markdown
Collaborator

📌 Commit 02f3609 has been approved by jonathandturner

sophiajt pushed a commit to sophiajt/rust that referenced this pull request Aug 7, 2016
sophiajt pushed a commit to sophiajt/rust that referenced this pull request Aug 7, 2016
bors added a commit that referenced this pull request Aug 7, 2016
@bors bors merged commit 02f3609 into rust-lang:master Aug 7, 2016
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.

4 participants