Skip to content

An unsafe block is considered an invalid expansion, even though its contents form a valid expression #86

@ramonacat

Description

@ramonacat

There's also the second error, which I honestly don't fully understand as I use paths starting with :: all over the place, and only this one has issue.

   Compiling eisheth v0.1.0 (/home/ramona/Projects/ligeia/eisheth)
error: Potentially invalid expansion. Expected an expression, an identifier, `::`, `<`, `Self`, `break` or 13 others.
  --> eisheth/src/module/macros.rs:70:21
   |
70 |         let $name = unsafe {
   |                     ^^^^^^

error: Potentially invalid expansion. Expected an identifier, `Self`, `_`, `self`, `super`, a `(`.
  --> eisheth/src/module/macros.rs:94:31
   |
94 |             $($function_name: ::eisheth::module::DeclaredFunctionDescriptor),*
   |                               ^

error: could not compile `eisheth` (lib) due to 2 previous errors

code: ramonacat/ligeia@df5c26b#diff-77bcda3d388bae57442da72490152305ad8871346955e17ed968cb18d2323217

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions