dtolnay / paste

Macros for all your token pasting needs
Apache License 2.0
983 stars 53 forks source link

is test suite broken? #100

Open tenzap opened 6 months ago

tenzap commented 6 months ago

I'm trying to run the test suite but this is the outcome. Am I doing something wrong?

$ cargo test

    Updating crates.io index
  Downloaded itoa v1.0.10
  Downloaded rustversion v1.0.14
  Downloaded dissimilar v1.0.7
  Downloaded termcolor v1.4.0
  Downloaded ryu v1.0.16
  Downloaded serde_derive v1.0.193
  Downloaded once_cell v1.19.0
  Downloaded quote v1.0.33
  Downloaded unicode-ident v1.0.12
  Downloaded trybuild v1.0.86
  Downloaded proc-macro2 v1.0.71
  Downloaded basic-toml v0.1.7
  Downloaded serde v1.0.193
  Downloaded serde_json v1.0.108
  Downloaded syn v2.0.42
  Downloaded 15 crates (885.7 KB) in 1.15s
   Compiling proc-macro2 v1.0.71
   Compiling unicode-ident v1.0.12
   Compiling serde v1.0.193
   Compiling serde_json v1.0.108
   Compiling ryu v1.0.16
   Compiling rustversion v1.0.14
   Compiling trybuild v1.0.86
   Compiling itoa v1.0.10
   Compiling paste v1.0.11 (/mnt/packages/git_repos/dpkg/debcargo-conf/build/paste)
   Compiling glob v0.3.1
   Compiling quote v1.0.33
   Compiling syn v2.0.42
   Compiling dissimilar v1.0.7
   Compiling termcolor v1.4.0
   Compiling once_cell v1.19.0
   Compiling paste-test-suite v0.0.0
error: expected item, found `@`
 --> /home/xxxx/.cargo/registry/src/github.com-1ecc6299db9ec823/paste-test-suite-0.0.0/src/lib.rs:1:1
  |
1 | @
  | ^ expected item

error: could not compile `paste-test-suite` due to previous error
warning: build failed, waiting for other jobs to finish...
tenzap commented 6 months ago

The problem seems to be that the content of the package published on crates.io is buggy/empty. The lib.rs file only contains one line

@

Maybe a new publication on crates.io would fix it.

tenzap commented 6 months ago

@dtolnay