dtolnay / rustversion

Conditional compilation according to rustc compiler version
Apache License 2.0
334 stars 15 forks source link

Rename generated file from version.rs to version.expr #32

Closed dtolnay closed 2 years ago

dtolnay commented 2 years ago

This avoids disrupting find . -name '*.rs' | xargs rustfmt.

error: expected one of `!` or `::`, found `{`
 --> target/debug/build/rustversion-74a17b343f086e80/out/version.rs:1:25
  |
1 | crate::version::Version {
  |                         ^ expected one of `!` or `::`