Skip to content

Error messages from rustc interleaved #6848

Closed

Description

@bjorn3

Problem

I ran cargo test and saw:

   Compiling moria v0.1.0 (/Users/bjorn/Documents/moria)
error: expected one of `;` or `{`, found `#`
error: expected one of `;` or `{`, found `#`
  --> src/lib.rs:42:1
   |
  --> src/lib.rs:42:1
40 | mod dsym
   |
40 | mod dsym
   |         - expected one of `;` or `{` here
   |         - expected one of `;` or `{` here
41 | 
42 | #[cfg(not(target_os="macos"))]
   | ^ unexpected token

41 | 
42 | #[cfg(not(target_os="macos"))]
   | ^ unexpected token

error: aborting due to previous error

error: aborting due to previous error

error: Could not compile `moria`.
warning: build failed, waiting for other jobs to finish...
error: Could not compile `moria`.

To learn more, run the command again with --verbose.

Steps

  1. Add an error (eg syntax error) to a rust file.
  2. Run cargo test

Possible Solution(s)

Notes

Output of cargo version: cargo 1.33.0 (f099fe94b 2019-02-12)

$ uname
Darwin

Activity

  1. self-assigned this
    on May 6, 2019
  2. added a commit that references this issue on May 21, 2019
  3. added
    A-console-outputArea: Terminal output, colors, progress bar, etc.
    A-cache-messagesArea: caching of compiler messages
    on Sep 23, 2019
  4. added a commit that references this issue on Oct 15, 2019
    b03182a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

A-cache-messagesArea: caching of compiler messagesA-console-outputArea: Terminal output, colors, progress bar, etc.C-bugCategory: bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions