Skip to content

Add tests for issues with the E-needstest label #43465

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Jul 26, 2017

Conversation

topecongiro
Copy link
Contributor

@topecongiro topecongiro commented Jul 25, 2017

Fixes #19181.
Fixes #29516.
Fixes #29798.
Fixes #33504.
Fixes #34780.
Fixes #39211.
Fixes #39467.
Fixes #39720.

@rust-highfive
Copy link
Contributor

r? @aturon

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

@Mark-Simulacrum
Copy link
Member

Could you add Fixes #xxx for each issue you've fixed by adding a test for it to the description? That way GitHub will automatically close them.

@topecongiro
Copy link
Contributor Author

@Mark-Simulacrum Thanks, updated the description.

@Mark-Simulacrum
Copy link
Member

@bors r+ rollup

@bors
Copy link
Collaborator

bors commented Jul 25, 2017

📌 Commit 04aa5c1 has been approved by Mark-Simulacrum

@Mark-Simulacrum Mark-Simulacrum added the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label Jul 25, 2017
@RalfJung
Copy link
Member

This adds a test checking that

trait VecN {
    const DIM: usize;
}
trait Mat {
    type Row: VecN;
}

fn m<M: Mat>() {
    let a = [3; M::Row::DIM]; //~ ERROR associated type `Row` not found for `M`
}
fn main() {
}

It seems that this used to ICE, and the test makes sure that doesn't happen. Okay. However, the error message doesn't make any sense, so I am somewhat surprised that it should be "enforced" by a test.

@Mark-Simulacrum
Copy link
Member

Once #34344 is fixed, I'd imagine we'd remove that test. I think it's better to have it and avoid regressing on the ICE. Tests in general to me don't imply cemented behavior, just current behavior -- if you're fixing something and it fixes a test, consider removing the test; it's just somewhat unusual that we have tests like this.

Mark-Simulacrum added a commit to Mark-Simulacrum/rust that referenced this pull request Jul 26, 2017
bors added a commit that referenced this pull request Jul 26, 2017
Rollup of 10 pull requests

- Successful merges: #42959, #43447, #43455, #43456, #43458, #43462, #43463, #43465, #43471, #43480
- Failed merges:
@bors bors merged commit 04aa5c1 into rust-lang:master Jul 26, 2017
@topecongiro topecongiro deleted the needs-test branch July 26, 2017 23:59
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants