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

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

Closed
brson opened this Issue Mar 1, 2017 · 11 comments

Comments

Projects
None yet
6 participants
@brson
Copy link
Contributor

brson commented Mar 1, 2017

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

@brson

This comment has been minimized.

Copy link
Contributor Author

brson commented Mar 1, 2017

Also affects xmas-elf cc @nrc

@nrc

This comment has been minimized.

Copy link
Member

nrc commented Mar 2, 2017

@brson how did you repro for xmas-elf? cargo build works fine for me

@nikomatsakis

This comment has been minimized.

Copy link
Contributor

nikomatsakis commented Mar 2, 2017

triage: P-high

This is a regression, hence P-high, but it's unclear if it is a true regression or an artifact of cargobomb.

@nikomatsakis

This comment has been minimized.

Copy link
Contributor

nikomatsakis commented Mar 9, 2017

@alexcrichton is this T-compiler or something else?

@nikomatsakis nikomatsakis reopened this Mar 9, 2017

@alexcrichton

This comment has been minimized.

Copy link
Member

alexcrichton commented Mar 9, 2017

@nikomatsakis my guess is Cargo, I'm not sure though (I'll have to investigate)

@alexcrichton

This comment has been minimized.

Copy link
Member

alexcrichton commented Mar 10, 2017

cc @ehiggs I think this may have been caused by rust-lang/cargo#3004, mind taking a look?

@ehiggs

This comment has been minimized.

Copy link

ehiggs commented Mar 10, 2017

Running a git bisect, I found that this was broken in either 8c40d891e2d770fac47b440d95ac31cb5d83f120 (which seems to have broken the build) or e3edc064761b75a0d9a8dfcd4ce46e9294e43f06 (more likely, imo).

rust-lang/cargo#3609

@ehiggs

This comment has been minimized.

Copy link

ehiggs commented Mar 10, 2017

This is a cargo bug. I've entered rust-lang/cargo#3814 to handle it.

@alexcrichton

This comment has been minimized.

Copy link
Member

alexcrichton commented Mar 10, 2017

gah sorry @ehiggs, but thanks for the diagnosis!

@ehiggs

This comment has been minimized.

Copy link

ehiggs commented Mar 10, 2017

No worries. Glad to help.

@alexcrichton

This comment has been minimized.

Copy link
Member

alexcrichton commented Mar 14, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.