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

Compilation inconsistency when referencing the same code over path and git/version #7850

Closed
Tracked by #84
k06a opened this issue Jan 31, 2020 · 4 comments
Closed
Tracked by #84
Labels
A-documenting-cargo-itself Area: Cargo's documentation C-bug Category: bug

Comments

@k06a
Copy link

k06a commented Jan 31, 2020

Problem
I got the true compilation errors when referenced dependency with path. And see no errors when reference over git of version in TOML file.

Steps
Check this demo repo: https://github.com/k06a/usize-issue

Notes
Output of cargo version:
cargo 1.41.0-nightly (626f0f4 2019-12-03)

@ehuss
Copy link
Contributor

ehuss commented Feb 1, 2020

This is intentional. Dependencies are usually built with --cap-lints=allow to hide lint warnings (and deny-by-default lints). Workspace members and path dependencies are not capped. This is done with the intent that you are working on the package and want to see the warnings.

@k06a
Copy link
Author

k06a commented Feb 3, 2020

@ehuss having such kind of problems was highly unexpected. I mean assigning out-of-range values to integral types.

@weihanglo
Copy link
Member

With #12115, we may have lint control over warnings from Cargo itself in the future. This issue can gain some benefits from that.

@weihanglo
Copy link
Member

I think this is kinda a duplicate of #5998, and both of them are waiting for the [lints] feature stabilization, so that we will have a dedicated documentation for how Cargo handles lints. Close in favor of #5998.

@weihanglo weihanglo closed this as not planned Won't fix, can't repro, duplicate, stale Jun 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-documenting-cargo-itself Area: Cargo's documentation C-bug Category: bug
Projects
None yet
Development

No branches or pull requests

3 participants