Skip to content

Commit 1c4d6ed

Browse files
committed
Auto merge of #7817 - ehuss:fix-doc-target-test, r=Eh2406
Fix doc_target test which no longer works on stable/beta. rust-lang/rust#67989 changed it so that `#![feature]` requires nightly.
2 parents 9826222 + 10e9bc9 commit 1c4d6ed

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/testsuite/doc.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -584,6 +584,10 @@ fn doc_same_name() {
584584

585585
#[cargo_test]
586586
fn doc_target() {
587+
if !is_nightly() {
588+
// no_core, lang_items requires nightly.
589+
return;
590+
}
587591
const TARGET: &str = "arm-unknown-linux-gnueabihf";
588592

589593
let p = project()

0 commit comments

Comments
 (0)