Skip to content

couldn't read src/main.rs in reustmann-0.1.2, Rust 1.17 #40185

Closed
@brson

Description

@brson
brian@ip-10-145-43-250:~/dev/reustmann⟫ git remote -v
origin  https://github.com/Kerollmops/reustmann (fetch)
origin  https://github.com/Kerollmops/reustmann (push)
brian@ip-10-145-43-250:~/dev/reustmann⟫ git log -1
commit b1a1577667ca5e6e883dba603c13ef789723fb7c
Author: Geoffroy Couprie <geo.couprie@gmail.com>
Date:   Thu Nov 24 17:43:26 2016 +0100

    fix nom upgrade
brian@ip-10-145-43-250:/mnt2/dev/strcursor⟫ rustc +nightly -Vv
rustc 1.17.0-nightly (be760566c 2017-02-28)
binary: rustc
commit-hash: be760566cf938d11d34c2f6bd90d8fd0f67c2344
commit-date: 2017-02-28
host: x86_64-unknown-linux-gnu
release: 1.17.0-nightly
LLVM version: 3.9
brian@ip-10-145-43-250:~/dev/reustmann⟫ cargo +nightly test
   Compiling libc v0.2.20
   Compiling unicode-width v0.1.4
   Compiling encode_unicode v0.1.3
   Compiling bitflags v0.4.0
   Compiling colorify v0.2.2
   Compiling nom v2.1.0
   Compiling nix v0.5.1
   Compiling rustyline v0.2.3
   Compiling reustmann v0.1.2 (file:///mnt2/dev/reustmann)
warning: unused import: `memory::OpCodes`
 --> src/program.rs:1:5
  |
1 | use memory::OpCodes;
  |     ^^^^^^^^^^^^^^^
  |
  = note: #[warn(unused_imports)] on by default

warning: unused variable: `endl`
  --> src/program.rs:27:17
   |
27 |             let endl = '\n' as u8;
   |                 ^^^^
   |
   = note: #[warn(unused_variables)] on by default

warning: unused variable: `endl`
  --> src/program.rs:28:26
   |
28 |             if let Some(&endl) = instructions.last() { // FIXME '\r\n' for windows
   |                          ^^^^
   |
   = note: #[warn(unused_variables)] on by default

warning: method is never used: `trunc`
   --> src/interpreter.rs:121:5
    |
121 |       fn trunc(&self, val: u8) -> u8 {
    |  _____^ starting here...
122 | |         val & ((1 << self.arch_width) - 1)
123 | |     }
    | |_____^ ...ending here
    |
    = note: #[warn(dead_code)] on by default

warning: unused import: `memory::OpCodes`
 --> src/program.rs:1:5
  |
1 | use memory::OpCodes;
  |     ^^^^^^^^^^^^^^^
  |
  = note: #[warn(unused_imports)] on by default

warning: unused variable: `endl`
  --> src/program.rs:27:17
   |
27 |             let endl = '\n' as u8;
   |                 ^^^^
   |
   = note: #[warn(unused_variables)] on by default

warning: unused variable: `endl`
  --> src/program.rs:28:26
   |
28 |             if let Some(&endl) = instructions.last() { // FIXME '\r\n' for windows
   |                          ^^^^
   |
   = note: #[warn(unused_variables)] on by default

warning: method is never used: `trunc`
   --> src/interpreter.rs:121:5
    |
121 |       fn trunc(&self, val: u8) -> u8 {
    |  _____^ starting here...
122 | |         val & ((1 << self.arch_width) - 1)
123 | |     }
    | |_____^ ...ending here
    |
    = note: #[warn(dead_code)] on by default

error: couldn't read "src/main.rs": No such file or directory (os error 2)

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

Not on 1.16

cc @Kerollmops

Metadata

Metadata

Assignees

Labels

P-highHigh priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions