about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorinrustwetrust <inrustwetrust@users.noreply.github.com>2015-05-10 00:07:26 +0200
committerinrustwetrust <inrustwetrust@users.noreply.github.com>2015-05-10 00:07:26 +0200
commit8e8f8d9a5a35eb5875999efac7837956ed1b20da (patch)
tree3429248fc009c88153f24260455786c004796a8d /src/rustllvm/RustWrapper.cpp
parentd8b64c7fb2809eeba8ff9125cc95c4c38efb9a8a (diff)
downloadrust-8e8f8d9a5a35eb5875999efac7837956ed1b20da.tar.gz
rust-8e8f8d9a5a35eb5875999efac7837956ed1b20da.zip
Upgraded warning for invalid crate_type attribute syntax to an error
If the user intended to set the crate_type to "lib" but accidentally used
incorrect syntax such as `#![crate_type(lib)]`, the compilation would fail with
"main function not found". This made it hard to locate the source of the
problem, since the failure would cause the warning about the incorrect
attribute not to be shown.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions