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

trybuild test failure on nightly. #75

Closed
Anders429 opened this issue May 6, 2022 · 0 comments · Fixed by #77
Closed

trybuild test failure on nightly. #75

Anders429 opened this issue May 6, 2022 · 0 comments · Fixed by #77

Comments

@Anders429
Copy link
Owner

The tests/trybuild/entities/length_not_integer.rs test fails on current nightly rustc:

EXPECTED:
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
error[E0308]: mismatched types
  --> tests/trybuild/entities/length_not_integer.rs:10:38
   |
10 |     let entities = entities!((A, B); 1.5);
   |                                      ^^^ expected `usize`, found floating-point number
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈

ACTUAL OUTPUT:
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
error[E0308]: mismatched types
    --> tests/trybuild/entities/length_not_integer.rs:10:38
     |
10   |     let entities = entities!((A, B); 1.5);
     |                    ------------------^^^-
     |                    |                 |
     |                    |                 expected `usize`, found floating-point number
     |                    arguments to this function are incorrect
     |
note: function defined here
    --> $RUST/alloc/src/vec/mod.rs
     |
     | pub fn from_elem<T: Clone>(elem: T, n: usize) -> Vec<T> {
     |        ^^^^^^^^^

error[E0308]: mismatched types
    --> tests/trybuild/entities/length_not_integer.rs:10:38
     |
10   |     let entities = entities!((A, B); 1.5);
     |                    ------------------^^^-
     |                    |                 |
     |                    |                 expected `usize`, found floating-point number
     |                    arguments to this function are incorrect
     |
note: function defined here
    --> $RUST/alloc/src/vec/mod.rs
     |
     | pub fn from_elem<T: Clone>(elem: T, n: usize) -> Vec<T> {
     |        ^^^^^^^^^
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈

This is caused by a recent change that is currently on nightly. The trybuild expected output should be changed to match this format.

This was referenced May 17, 2022
@Anders429 Anders429 linked a pull request May 17, 2022 that will close this issue
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 a pull request may close this issue.

1 participant