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

Support Literal as result of paste #92

Merged
merged 4 commits into from
Dec 12, 2022
Merged

Support Literal as result of paste #92

merged 4 commits into from
Dec 12, 2022

Conversation

dtolnay
Copy link
Owner

@dtolnay dtolnay commented Dec 12, 2022

Closes #91. This is made possible by rust-lang/rust#84717 on Rust 1.54+.

Currently fails with:

    error: `"1_u32"` is not a valid identifier
      --> tests/test_expr.rs:56:49
       |
    56 |                         [<vec_ $bit>].insert(0, [<1_u $bit>]);
       |                                                 ^^^^^^^^^^^^
    ...
    63 |     vec_insert!(32);
       |     --------------- in this macro invocation
       |
       = note: this error originates in the macro `vec_insert` (in Nightly builds, run with -Z macro-backtrace for more info)

    error[E0425]: cannot find function `vector_insert_32_bit` in this scope
      --> tests/test_expr.rs:64:5
       |
    64 |     vector_insert_32_bit(2);
       |     ^^^^^^^^^^^^^^^^^^^^ not found in this scope
@dtolnay dtolnay merged commit 80d037b into master Dec 12, 2022
@dtolnay dtolnay deleted the literal branch December 12, 2022 21:23
Repository owner locked and limited conversation to collaborators Jul 31, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can not use in literals?
1 participant