<p dir="auto">The string "0.6" appears 35 times in our tree and we don't have an obvious way to eliminate this duplication. Something like <code class="notranslate">include_lit!</code> might do the job.</p>
<p dir="auto">Consider</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="extern crate innercrate; //defines only one public item `from_inner_crate`

pub use inner::{inner_fn, from_inner_crate};


/// Top level documentation
pub fn top_level(){}


pub mod inner {
    pub use innercrate::from_inner_crate;
    /// Defined inside inner module
    pub fn inner_fn(){}
}"><pre class="notranslate"><span class="pl-k">extern</span> <span class="pl-k">crate</span> innercrate<span class="pl-kos">;</span> <span class="pl-c">//defines only one public item `from_inner_crate`</span>

<span class="pl-k">pub</span> <span class="pl-k">use</span> inner<span class="pl-kos">::</span><span class="pl-kos">{</span>inner_fn<span class="pl-kos">,</span> from_inner_crate<span class="pl-kos">}</span><span class="pl-kos">;</span>


<span class="pl-c">/// Top level documentation</span>
<span class="pl-k">pub</span> <span class="pl-k">fn</span> <span class="pl-en">top_level</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">{</span><span class="pl-kos">}</span>


<span class="pl-k">pub</span> <span class="pl-k">mod</span> inner <span class="pl-kos">{</span>
    <span class="pl-k">pub</span> <span class="pl-k">use</span> innercrate<span class="pl-kos">::</span>from_inner_crate<span class="pl-kos">;</span>
    <span class="pl-c">/// Defined inside inner module</span>
    <span class="pl-k">pub</span> <span class="pl-k">fn</span> <span class="pl-en">inner_fn</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">{</span><span class="pl-kos">}</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">Documentation renders from_inner_crate as if it was defined at the top level of crate rather than showing it as an reexport from inner module.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/679122/8765655/512f38d6-2e1f-11e5-8350-4fb1ff64c90f.png"><img src="https://cloud.githubusercontent.com/assets/679122/8765655/512f38d6-2e1f-11e5-8350-4fb1ff64c90f.png" alt="what output from rustdoc looks like" style="max-width: 100%;"></a></p>