pub fn validate_ident(name: &str) -> Result<(), CodegenError>Expand description
Validate a name as a Rust identifier stem: ASCII alphanumeric, _, -,
not starting with a digit, not empty, not a Rust keyword.
This is also the only thing standing between a --in argument and the
filesystem, so it has to reject anything that could be a path: /, \,
. and .. all fail the alphanumeric test. See resolve_target.