You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Note: I believe that this is probably another instantiation of issue #31089]
The macro chain! from the package nom expects at the end a closure with zero arguments. If the closure has more arguments, the compiler emits the error "internal compiler error: unprintable span". Crate to replicate this error:
Cargo.toml
[package]
name = "bug-test"
version = "0.1.0"
authors = ["xxx"]
[dependencies]
nom = "=1.2.0"
Compiling bug-test v0.1.0 ($XXX/bug-test)
src/lib.rs:8:9: 119:60 error: this function takes 1 parameter but 0 parameters were supplied [E0057]
(internal compiler error: unprintable span)
<nom macros>:110:1: 110:69 note: in this expansion of chaining_parser! (defined in <nom macros>)
<nom macros>:2:3: 2:54 note: in this expansion of chaining_parser! (defined in <nom macros>)
<nom macros>:20:3: 20:36 note: in this expansion of chain! (defined in <nom macros>)
src/lib.rs:6:1: 10:3 note: in this expansion of named! (defined in <nom macros>)
src/lib.rs:8:9: 119:60 help: run `rustc --explain E0057` to see a detailed explanation
error: aborting due to previous error
Could not compile `bug-test`.
To learn more, run the command again with --verbose.
[Note: I believe that this is probably another instantiation of issue #31089]
The macro
chain!
from the packagenom
expects at the end a closure with zero arguments. If the closure has more arguments, the compiler emits the error "internal compiler error: unprintable span". Crate to replicate this error:Cargo.toml
src/lib
Error message (full path omitted for privacy):
Version:
The text was updated successfully, but these errors were encountered: