Skip to content
This repository was archived by the owner on Aug 13, 2018. It is now read-only.
This repository was archived by the owner on Aug 13, 2018. It is now read-only.

Build fails on x86_64 #74

@gwenn

Description

@gwenn
error[E0277]: the trait bound `u32: std::convert::From<usize>` is not satisfied
   --> /Users/gwen/.cargo/git/checkouts/lrlex-ddf8d7de299f325b/2e1a484/src/lib/lexer.rs:249:18
    |
249 |             len: u32::try_from(len).unwrap(),
    |                  ^^^^^^^^^^^^^ the trait `std::convert::From<usize>` is not implemented for `u32`
    |
...
error[E0277]: the trait bound `u32: std::convert::From<usize>` is not satisfied
   --> /Users/gwen/.cargo/git/checkouts/cfgrammar-6e1473d6c831f868/f1dc7bc/src/lib/yacc/grammar.rs:276:31
    |
276 |             nonterms_len:     u32::try_from(nonterm_names.len()).unwrap(),
    |                               ^^^^^^^^^^^^^ the trait `std::convert::From<usize>` is not implemented for `u32`
    |

https://stackoverflow.com/questions/50437732/how-do-i-convert-a-usize-to-a-u32-using-tryfrom

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions