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

Unable to parse file: Error("expected :") #59

Open
paulkernfeld opened this issue Sep 19, 2020 · 1 comment
Open

Unable to parse file: Error("expected :") #59

paulkernfeld opened this issue Sep 19, 2020 · 1 comment

Comments

@paulkernfeld
Copy link

Running cargo nono on my crate hmmm, it produced useful output but it also looks like it crashed.

(base) [13:27:101]% RUST_BACKTRACE=full cargo nono check                    paul@compy386:~/projects/hmmm on master -> origin/master
hmmm: ❌
  - Source code contains an explicit `use std::` statement.
   --> src/lib.rs

  - Did not find a #![no_std] attribute or a simple conditional attribute like #[cfg_attr(not(feature = "std"), no_std)] in the crate source. Crate most likely doesn't support no_std without changes.
  - Source code contains an explicit `use std::` statement.
   --> src/lib.rs

itertools: ❌
  - Crate supports no_std if "use_std" feature is deactivated.
    - Caused by feature flag "use_std" in crate "itertools:0.8.0"
      - Caused by feature flag "default" in crate "itertools:0.8.0"
        - Caused by implicitly enabled default feature from "hmmm:0.1.1"
lazy_static: ✅
thread 'main' panicked at 'Unable to parse file: Error("expected `:`")', /Users/paul/.cargo/registry/src/github.com-1ecc6299db9ec823/cargo-nono-0.1.8/src/check_source.rs:176:40
stack backtrace:
   0:        0x10dcf674e - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h24bb64d98a7e25d6
   1:        0x10dd1d03c - core::fmt::write::h8fdc9cddb01cd8b2
   2:        0x10dcf2ec9 - std::io::Write::write_fmt::hcc3030013983bab6
   3:        0x10dcf85d5 - std::panicking::default_hook::{{closure}}::h95817712c5ff0736
   4:        0x10dcf8312 - std::panicking::default_hook::h34e085f4e0b1062d
   5:        0x10dcf8b5d - std::panicking::rust_panic_with_hook::haf571858f996ac45
   6:        0x10dcf8702 - rust_begin_unwind
   7:        0x10dd272bf - core::panicking::panic_fmt::h11676ba6a846d9f4
   8:        0x10dd271c5 - core::option::expect_none_failed::h312e48bacb63d8ec
   9:        0x10db2248e - cargo_nono::check_source::check_source::h530517e4a9d84434
  10:        0x10db20f27 - cargo_nono::check_source::get_crate_support_from_source::he8edd4d27aa3598d
  11:        0x10db17f00 - cargo_nono::check_and_print_package::h35a5907c80c5bdb7
  12:        0x10db193bf - cargo_nono::main::h43be6d2de439cb88
  13:        0x10db11af6 - std::rt::lang_start::{{closure}}::hc4333fb266f5c967
  14:        0x10dcf8ebf - std::rt::lang_start_internal::hcd84a36052901671
  15:        0x10db196f9 - main
@Nashtare
Copy link

+1 happened on some of my local projects

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

No branches or pull requests

2 participants