-
Notifications
You must be signed in to change notification settings - Fork 732
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
file not found for module montgomery
#598
Comments
0.11 does include that file, have you per-chance done something that would have removed it? If not what platform, Rust version, etc are you using and can you provide steps to reproduce the problem? |
Same error here. Versions: rustc 1.24.0-nightly I'm running on MacOS 10.13.2 error[E0583]: file not found for module `montgomery`
--> /.../.cargo/registry/src/github.com-1ecc6299db9ec823/ring-0.11.0/src/arithmetic/arithmetic.rs:15:9
|
15 | pub mod montgomery;
| ^^^^^^^^^^
|
= help: name the file either arithmetic/montgomery.rs or arithmetic/montgomery/mod.rs inside the directory "/.../.cargo/registry/src/github.com-1ecc6299db9ec823/ring-0.11.0/src/arithmetic"
error: aborting due to previous error
error: Could not compile `ring`. This happens on a fresh git clone / install using the following Cargo.toml:
|
Updated my comment above with the Cargo file @andrewtj. This branch fails to build with the versions posted above; you should be able to clone / see the error: Edit: |
Ta, on macOS 10.12.6 it works with nightly-2017-12-21 but not nightly-2017-12-22. |
I see. It does build correctly on the latest nightly in the Docker image supported at |
@andrewtj Are you aware of a way to set the specific nightly for a project? |
why don't follow rust standard module contract?! |
Because the old |
Sounds like a regression in rustc nightly, probably related to rust-lang/rust#46531 or a closely-related change. |
I just manually add #[path] on each mod on nightly-2017-12-21. |
@thomashoneyman |
@andrewtj Yep, that's working for me. However, I'm already set to nightly 12-21 by default and that fails; moving to 12-20 works. Thanks for the help. |
Temporraily blacklisted Ring due to a [module issue][1] and it's blocking access to that sweet, sweet non-lexical lifetimes. [1]: briansmith/ring#598
This is rust-lang/rust#46936 and was caused by rust-lang/rust#46531. I responded here. Apologies for the surprise breakage! Would you accept a PR fixing this issue? Whether or not we roll back rust-lang/rust#46531, rust-lang/rust#37872 will be made a hard error in the near future, which will break Edit: opened #599 to address this. |
Please stabilize the new path search rules before breaking stuff using the old path rules. Then we'll just switch to the new path system. In the meantime, please keep the way ring is doing things working. We've been doing things this non-optimal way with |
We're not breaking the old path rules-- the old rules are (and will continue to be) intact. The fact that what you're doing in this crate ever worked was the result of a bug-- it was never a supported structure. It's possible that we can come up with a way to allow both the bug used in this crate and the new feature simultaneously. However, Rust cannot offer stability guarantees for crates |
Let's just wait a week or two and see if this change gets rolled back, first. |
@briansmith Please accept the PR sooner rather than later and backport to 0.11. It sounds like this is intended breakage with a fair warning period that was intentionally ignored by ring. What's more, once |
I'll come back to this after I clear my backlog. |
This is fixed in 0.13.0-alpha. |
|
15 | pub mod montgomery;
| ^^^^^^^^^^
|
= help: name the file either arithmetic/montgomery.rs or arithmetic/montgomery/mod.rs inside the directory "/home/sackery/.cargo/registry/src/github.com-1ecc6299db9ec823/ring-0.11.0/src/arithmetic"
The text was updated successfully, but these errors were encountered: