about summary refs log tree commit diff
path: root/src/libsyntax/parse/parser.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-07-15 09:13:40 -0700
committerAlex Crichton <alex@alexcrichton.com>2014-07-18 08:47:23 -0700
commit50868db351d5261346afe855f88235d044b80195 (patch)
tree529f43df6e1102554125bc5092c1698230a9ee7b /src/libsyntax/parse/parser.rs
parent5ddc7b4a252fbebee5f2ac87ed755139816d6823 (diff)
downloadrust-50868db351d5261346afe855f88235d044b80195.tar.gz
rust-50868db351d5261346afe855f88235d044b80195.zip
rustc: #[crate_name] and --crate-name must match
Part of the original discussions around the `--crate-name` flag brought up that
mass confusion can arise when the flag specifies a different name than is
contained in the crate.

The current primary use case of the `--crate-name` flag is through cargo and
not requiring a `#[crate_name]` attribute, but if the `#[crate_name]` attribute
is specified it will likely go awry when the two names deviate from one another.
This commit requires that if both are provided they both match to prevent this
confusion.
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
0 files changed, 0 insertions, 0 deletions