-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
configured-off modules are required to exist #5870
Comments
I agree this behavior is somewhat surprising. At the moment, cfg()-filtering happens after parsing and expansion. Possibly it should happen during parsing, as this bug suggests. Nominating for backwards compatibility. |
accepted for feature-complete milestone |
This may be working as intended. cfg happens after parsing. |
"Fixing" this will be backwards compatible, so not a 1.0 blocker. It is a useful property that everything that is cfg'ed off is still checked as parseable. So it is not clear whether we even want to "fix" this. Assigning P-low, but at some point, the team should also decide whether this is even a bug or not. |
My opinion is this is not a bug. This is just our model. |
To clarify: I think it's even useful to check that windows-specific |
CC #4047 and closing. |
ARM target works except dependency info. Moved .gitignore from project root to build directories. Makefile reads patterns specified in gitignore to find all output files and remove them with the help of `find` and `xargs`. Do not overwrite dep info. Using `sed` to remove some dependency info. See http://stackoverflow.com/a/9054420 and rust-lang/rust#5870. Specified that makefiles should use bash.
ARM target works. Moved .gitignore from project root to build directories. Makefile reads patterns specified in gitignore to find all output files and remove them with the help of `find` and `xargs`. Do not overwrite dep info. Using `sed` to remove some dependency info. See http://stackoverflow.com/a/9054420 and rust-lang/rust#5870. Specified that makefiles should use bash.
ARM target works. Moved .gitignore from project root to build directories. Makefile reads patterns specified in gitignore to find all output files and remove them with the help of `find` and `xargs`. Do not overwrite dep info. Using `sed` to remove some dependency info. See http://stackoverflow.com/a/9054420 and rust-lang/rust#5870. Specified that makefiles should use bash.
…rialize, r=flip1995 enable #[allow(clippy::unsafe_derive_deserialize)] Before this change this lint could not be allowed as the code we are checking is automatically generated. changelog: Enable using the `allow` attribute on top of an ADT linted by [`unsafe_derive_deserialize`]. Fixes: rust-lang#5789
Rollup of 5 pull requests Successful merges: - rust-lang#5825 (Add the new lint `same_item_push`) - rust-lang#5869 (New lint against `Self` as an arbitrary self type) - rust-lang#5870 (enable #[allow(clippy::unsafe_derive_deserialize)]) - rust-lang#5871 (Lint .min(x).max(y) with x < y) - rust-lang#5874 (Make the docs clearer for new contributors) Failed merges: r? @ghost changelog: rollup
If
foo.rs
does not exist, this fails to compile, even ifbar.rs
exists and thefoo
configuration option isn't given. Seems like only modules that are actually being compiled should be required to exist.The text was updated successfully, but these errors were encountered: