Don't know; that may be wrong too. (I would check but I'm rustc-less at the moment.)

Corey Richardson <notifications@github.com> wrote:
>> @@ -1256,6 +1256,21 @@ pub fn check_crate(tcx: ty::ctxt,
>>              v.visited_outermost = true;
>>              visit::walk_crate(v, crate, ());
>>          }
>> +
>> +        // this basically duplicates check_missing_doc_attrs from
>above, minus the visibility test.
>> +
>> +        // If we're building a test harness, then warning about
>> +        // documentation is probably not really relevant right now.
>> +        if !cx.tcx.sess.opts.test {
>> +            // `#[doc(hidden)]` disables missing_doc check.
>> +            if !cx.is_doc_hidden {
>> +                if !crate.attrs.iter().any(|a|
>a.node.is_sugared_doc) {
>
>Dunno. Does it detect it in `check_missing_doc_attrs`?
>
>
>On Tue, Nov 26, 2013 at 1:20 AM, Huon Wilson
><notifications@github.com>wrote:
>
>> In src/librustc/middle/lint.rs:
>>
>> > @@ -1256,6 +1256,21 @@ pub fn check_crate(tcx: ty::ctxt,
>> >              v.visited_outermost = true;
>> >              visit::walk_crate(v, crate, ());
>> >          }
>> > +
>> > +        // this basically duplicates check_missing_doc_attrs from
>above, minus the visibility test.
>> > +
>> > +        // If we're building a test harness, then warning about
>> > +        // documentation is probably not really relevant right
>now.
>> > +        if !cx.tcx.sess.opts.test {
>> > +            // `#[doc(hidden)]` disables missing_doc check.
>> > +            if !cx.is_doc_hidden {
>> > +                if !crate.attrs.iter().any(|a|
>a.node.is_sugared_doc) {
>>
>> Hm, does this detect #[doc="foo"]?
>>
>> —
>> Reply to this email directly or view it on
>GitHub<https://github.com/mozilla/rust/pull/10665/files#r7916305>
>> .
>>
>
>---
>Reply to this email directly or view it on GitHub:
>https://github.com/mozilla/rust/pull/10665/files#r7916311