Unused invalid code is accepted #368
Labels
a: error messages
Issues specific to error messages
c: rustc_codegen_spirv
Issues specific to the rustc_codegen_spirv crate.
t: enhancement
A new feature or improvement to an existing one.
Currently unused code that is invalid on
spirv-unknown-unknown
will be accepted if it isn't being used in the code. This is pretty surprising behaviour as it can give you the false impression that we have features and support for features in the language. that we currently don't. For example we currently don't support options (see #234) but as shown below depending on whether the function is pub or not, you'll see an error. Is there a way to elevate some of the validation so that is checked against unused code?The text was updated successfully, but these errors were encountered: