Skip to content

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

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

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

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

brson opened this issue Mar 1, 2017 · 11 comments
Assignees
Labels
P-high High priority regression-from-stable-to-nightly Performance or correctness regression from stable to nightly. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@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 <[email protected]>
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 brson added regression-from-stable-to-nightly Performance or correctness regression from stable to nightly. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Mar 1, 2017
@brson
Copy link
Contributor Author

brson commented Mar 1, 2017

Also affects xmas-elf cc @nrc

@nrc
Copy link
Member

nrc commented Mar 2, 2017

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

@nikomatsakis
Copy link
Contributor

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.

@rust-highfive rust-highfive added the P-high High priority label Mar 2, 2017
@nikomatsakis
Copy link
Contributor

@alexcrichton is this T-compiler or something else?

@alexcrichton
Copy link
Member

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

@alexcrichton
Copy link
Member

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

@ehiggs
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
Copy link

ehiggs commented Mar 10, 2017

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

@alexcrichton
Copy link
Member

gah sorry @ehiggs, but thanks for the diagnosis!

@ehiggs
Copy link

ehiggs commented Mar 10, 2017

No worries. Glad to help.

@alexcrichton
Copy link
Member

Fixed in rust-lang/cargo#3818

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P-high High priority regression-from-stable-to-nightly Performance or correctness regression from stable to nightly. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

6 participants