Git Product home page Git Product logo

Comments (3)

creativcoder avatar creativcoder commented on July 23, 2024

Hey, @japaric I would like to help on this one. I am first trying to run one of the examples (one-task) in cortex-m-rtfm crate which points to my local copy of rtfm-syntax, just to get started with things.
On running cargo run --example one-task, it fails and
compiletest_rs does not compile for me:

➜  cortex-m-rtfm git:(master) ✗ cargo run --example one-task
   Compiling compiletest_rs v0.3.6
error[E0433]: failed to resolve. Could not find `OutputFormat` in `test`
  --> /home/creativcoder/.cargo/registry/src/github.com-1ecc6299db9ec823/compiletest_rs-0.3.6/src/lib.rs:97:41
   |
97 |         format: if config.quiet { test::OutputFormat::Terse } else { test::OutputFormat::Pretty },
   |                                         ^^^^^^^^^^^^ Could not find `OutputFormat` in `test`

error[E0433]: failed to resolve. Could not find `OutputFormat` in `test`
  --> /home/creativcoder/.cargo/registry/src/github.com-1ecc6299db9ec823/compiletest_rs-0.3.6/src/lib.rs:97:76
   |
97 |         format: if config.quiet { test::OutputFormat::Terse } else { test::OutputFormat::Pretty },
   |                                                                            ^^^^^^^^^^^^ Could not find `OutputFormat` in `test`

error[E0560]: struct `test::TestOpts` has no field named `format`
  --> /home/creativcoder/.cargo/registry/src/github.com-1ecc6299db9ec823/compiletest_rs-0.3.6/src/lib.rs:97:9
   |
97 |         format: if config.quiet { test::OutputFormat::Terse } else { test::OutputFormat::Pretty },
   |         ^^^^^^^ `test::TestOpts` does not have this field
   |
   = note: available fields are: `list`, `filter`, `filter_exact`, `run_ignored`, `run_tests` ... and 8 others

error: aborting due to 3 previous errors

error: Could not compile `compiletest_rs`.

I am on rust rustc 1.25.0-nightly (15a1e2844 2018-01-20)
Which nightly version should i use ?

from rtic.

japaric avatar japaric commented on July 23, 2024

I would like to help on this one.

Awesome.

compiletest_rs v0.3.6 (call cargo update to update the lockfile) and nightly-2018-02-11 work for me. But don't run the examples like that because they are not mean to be run on x86_64. You can run the test suite by doing exactly what Travis does:

$ # run compile-fail tests on the hosts
$ TARGET=x86_64-unknown-linux-gnu bash ci/script.sh

$ # check that the examples still compile
$ TARGET=thumbv7m-none-eabi bash ci/script.sh

from rtic.

creativcoder avatar creativcoder commented on July 23, 2024

Cool, tests are green now. Off to porting :)

from rtic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.