Add #![feature] attributes to doctests
This commit is contained in:
parent
df290f127e
commit
e9019101a8
107 changed files with 649 additions and 22 deletions
|
|
@ -268,7 +268,7 @@ pub fn maketest(s: &str, cratename: Option<&str>, lints: bool,
|
|||
|
||||
// Don't inject `extern crate std` because it's already injected by the
|
||||
// compiler.
|
||||
if !s.contains("extern crate") && cratename != Some("std") && inject_crate {
|
||||
if !s.contains("extern crate") && inject_crate {
|
||||
match cratename {
|
||||
Some(cratename) => {
|
||||
if s.contains(cratename) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue