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

fix(compat): convert invalid into into a cast #2

Merged
merged 1 commit into from Jun 18, 2021

Conversation

sno2
Copy link
Collaborator

@sno2 sno2 commented Jun 17, 2021

It wasn't working on Windows PowerShell with the Rustup v1.50.0 toolkit. This fixed it. Here was the stack trace:

error[E0277]: the trait bound `u64: From<char>` is not satisfied
  --> src\lexer\tokenizer.rs:39:64
   |
39 |                 '`' => tokens.push(Token::Literal(Value::MLStr(c.into()))),
   |                                                                ^^^^^^^^ the trait `From<char>` is not 
implemented for `u64`
   |
   = help: the following implementations were found:
             <u64 as From<NonZeroU64>>
             <u64 as From<bool>>
             <u64 as From<u32>>
             <u64 as From<u8>>
   = note: required because of the requirements on the impl of `Into<u64>` for `char`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0277`.

Perhaps you were using nightly or the latest stable version has this implemented.

@sno2 sno2 changed the title fix(compat): convert invalid into into a cast fix(compat): convert invalid into into a cast Jun 17, 2021
@VarunPotti VarunPotti merged commit 0ef8726 into zetalang:master Jun 18, 2021
@sno2 sno2 deleted the fix/invalid-into branch June 18, 2021 06:20
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.

None yet

2 participants