about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-02-05 05:54:44 +0000
committerbors <bors@rust-lang.org>2017-02-05 05:54:44 +0000
commit696f5c1fc695494053709ae3b18b4c6a65b619a6 (patch)
tree885324aad755a824bad88cd4a6930ef30099a909 /src/rustllvm/RustWrapper.cpp
parentd7777ae682d498ff43e3d6b65a7a8d0b2361fa0b (diff)
parentec356bb1a7654f38bd784028b6c0aa69518dafee (diff)
downloadrust-696f5c1fc695494053709ae3b18b4c6a65b619a6.tar.gz
rust-696f5c1fc695494053709ae3b18b4c6a65b619a6.zip
Auto merge of #38161 - durka:rustdoc-crate-attrs, r=alexcrichton
rustdoc: fix doctests with non-feature crate attrs

Fixes #38129.

The book says that any top-level crate attributes at the beginning of a doctest are moved outside the generated `fn main`, but it was only checking for `#![feature`, not `#![`.

These attributes previously caused warnings but were then ignored, so in theory this could change the behavior of doctests in the wild.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions