From 10e9bc9dfe101b41408133ca2d91feb5215293b6 Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Mon, 20 Jan 2020 11:16:53 -0800 Subject: [PATCH] Fix doc_target test which no longer works on stable/beta. --- tests/testsuite/doc.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/testsuite/doc.rs b/tests/testsuite/doc.rs index ffcf8d2063f..c8e943aca0d 100644 --- a/tests/testsuite/doc.rs +++ b/tests/testsuite/doc.rs @@ -584,6 +584,10 @@ fn doc_same_name() { #[cargo_test] fn doc_target() { + if !is_nightly() { + // no_core, lang_items requires nightly. + return; + } const TARGET: &str = "arm-unknown-linux-gnueabihf"; let p = project()