Skip to content

1.99 beta crater regression: overflow evaluating the requirement #161916

Description

@theemathas

This regression was found by the 1.99 crater run.

[INFO] [stdout] error[E0275]: overflow evaluating the requirement `matrix::Matrix<matrix::Matrix<_, _, _>, _, _>: core::ops::Add<matrix::Matrix<_, _, _>>`
[INFO] [stdout]    --> src/matrix.rs:347:26
[INFO] [stdout]     |
[INFO] [stdout] 347 |         let mut result = Matrix::new();
[INFO] [stdout]     |                          ^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: consider increasing the recursion limit by adding a `#![recursion_limit = "256"]` attribute to your crate (`matrs`)
[INFO] [stdout] note: required for `matrix::Matrix<matrix::Matrix<matrix::Matrix<_, _, _>, _, _>, _, _>` to implement `core::ops::Add<matrix::Matrix<matrix::Matrix<_, _, _>, _, _>>`
[INFO] [stdout]    --> src/matrix.rs:216:7
[INFO] [stdout]     |
[INFO] [stdout] 212 |         T: CompliantNumerical + Add<TOther, Output = T>,
[INFO] [stdout]     |                                             ---------- unsatisfied trait bound introduced here
[INFO] [stdout] ...
[INFO] [stdout] 216 |     > Add<Matrix<TOther, ROWS, COLS>> for Matrix<T, ROWS, COLS>
[INFO] [stdout]     |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     = note: 126 redundant requirements hidden
[INFO] [stdout]     = note: required for `Matrix<Matrix<Matrix<Matrix<_, _, _>, _, _>, _, _>, _, _>` to implement `Add<Matrix<Matrix<Matrix<Matrix<_, _, _>, _, _>, _, _>, _, _>>`
[INFO] [stdout] note: required by a bound in `MatrixInterface::new`
[INFO] [stdout]    --> src/traits.rs:85:5
[INFO] [stdout]     |
[INFO] [stdout]  85 |     Add<T>
[INFO] [stdout]     |     ^^^^^^ required by this bound in `MatrixInterface::new`
[INFO] [stdout] ...
[INFO] [stdout]  96 |     fn new() -> Self;
[INFO] [stdout]     |        --- required by a bound in this associated function
[INFO] [stdout]     = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/matrs-ff379938da94556c.long-type-4903951877788026595.txt'
[INFO] [stdout]     = note: consider using `--verbose` to print the full type name to the console
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0275]: overflow evaluating the requirement `matrix::Matrix<matrix::Matrix<_, _, _>, _, _>: core::ops::Add<matrix::Matrix<_, _, _>>`
[INFO] [stdout]    --> src/lib.rs:74:26
[INFO] [stdout]     |
[INFO] [stdout]  74 |         let mut result = Matrix::new();
[INFO] [stdout]     |                          ^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: consider increasing the recursion limit by adding a `#![recursion_limit = "256"]` attribute to your crate (`matrs`)
[INFO] [stdout] note: required for `matrix::Matrix<matrix::Matrix<matrix::Matrix<_, _, _>, _, _>, _, _>` to implement `core::ops::Add<matrix::Matrix<matrix::Matrix<_, _, _>, _, _>>`
[INFO] [stdout]    --> src/matrix.rs:216:7
[INFO] [stdout]     |
[INFO] [stdout] 212 |         T: CompliantNumerical + Add<TOther, Output = T>,
[INFO] [stdout]     |                                             ---------- unsatisfied trait bound introduced here
[INFO] [stdout] ...
[INFO] [stdout] 216 |     > Add<Matrix<TOther, ROWS, COLS>> for Matrix<T, ROWS, COLS>
[INFO] [stdout]     |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     = note: 126 redundant requirements hidden
[INFO] [stdout]     = note: required for `Matrix<Matrix<Matrix<Matrix<_, _, _>, _, _>, _, _>, _, _>` to implement `Add<Matrix<Matrix<Matrix<Matrix<_, _, _>, _, _>, _, _>, _, _>>`
[INFO] [stdout] note: required by a bound in `MatrixInterface::new`
[INFO] [stdout]    --> src/traits.rs:85:5
[INFO] [stdout]     |
[INFO] [stdout]  85 |     Add<T>
[INFO] [stdout]     |     ^^^^^^ required by this bound in `MatrixInterface::new`
[INFO] [stdout] ...
[INFO] [stdout]  96 |     fn new() -> Self;
[INFO] [stdout]     |        --- required by a bound in this associated function
[INFO] [stdout]     = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/matrs-ff379938da94556c.long-type-862771533300215836.txt'
[INFO] [stdout]     = note: consider using `--verbose` to print the full type name to the console
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0275`.

https://crater-reports.s3.amazonaws.com/beta-1.99-4/1.99.0-beta.1/gh/ivario123.matrix_math/log.txt

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

C-bugCategory: This is a bug.P-highHigh priorityS-has-bisectionStatus: A bisection has been found for this issueS-has-mcveStatus: A Minimal Complete and Verifiable Example has been found for this issueT-typesRelevant to the types team, which will review and decide on the PR/issue.fixed-by-next-solverFixed by the next-generation trait solver, `-Znext-solver`.regression-from-stable-to-betaPerformance or correctness regression from stable to beta.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions