Skip to content

Commit

Permalink
Rollup merge of rust-lang#71337 - Valloric:rustdoc-check-pass, r=Guil…
Browse files Browse the repository at this point in the history
…laumeGomez

Moving all rustdoc-ui tests to check-pass

These were all build-pass before and don't seem to need it.

Helps with rust-lang#62277

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/rust-lang/rust/71337)
<!-- Reviewable:end -->
  • Loading branch information
Dylan-DPC authored Apr 21, 2020
2 parents ad87d7b + 2add9d8 commit 268918c
Show file tree
Hide file tree
Showing 19 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion src/test/rustdoc-ui/cfg-test.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// build-pass (FIXME(62277): could be check-pass?)
// check-pass
// compile-flags:--test --test-args --test-threads=1
// normalize-stdout-test: "src/test/rustdoc-ui" -> "$$DIR"

Expand Down
2 changes: 1 addition & 1 deletion src/test/rustdoc-ui/coverage/basic.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// compile-flags:-Z unstable-options --show-coverage
// build-pass (FIXME(62277): could be check-pass?)
// check-pass

#![feature(extern_types)]

Expand Down
2 changes: 1 addition & 1 deletion src/test/rustdoc-ui/coverage/empty.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// compile-flags:-Z unstable-options --show-coverage
// build-pass (FIXME(62277): could be check-pass?)
// check-pass

// an empty crate still has one item to document: the crate root
2 changes: 1 addition & 1 deletion src/test/rustdoc-ui/coverage/enums.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// compile-flags:-Z unstable-options --show-coverage
// build-pass (FIXME(62277): could be check-pass?)
// check-pass

//! (remember the crate root is still a module)

Expand Down
2 changes: 1 addition & 1 deletion src/test/rustdoc-ui/coverage/exotic.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// compile-flags:-Z unstable-options --show-coverage
// build-pass (FIXME(62277): could be check-pass?)
// check-pass

#![feature(doc_keyword)]

Expand Down
2 changes: 1 addition & 1 deletion src/test/rustdoc-ui/coverage/json.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// build-pass
// check-pass
// compile-flags:-Z unstable-options --output-format json --show-coverage

pub mod foo {
Expand Down
2 changes: 1 addition & 1 deletion src/test/rustdoc-ui/coverage/private.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// compile-flags:-Z unstable-options --show-coverage --document-private-items
// build-pass (FIXME(62277): could be check-pass?)
// check-pass

#![allow(unused)]

Expand Down
2 changes: 1 addition & 1 deletion src/test/rustdoc-ui/coverage/statics-consts.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// compile-flags:-Z unstable-options --show-coverage
// build-pass (FIXME(62277): could be check-pass?)
// check-pass

//! gotta make sure we can count statics and consts correctly, too

Expand Down
2 changes: 1 addition & 1 deletion src/test/rustdoc-ui/coverage/traits.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// compile-flags:-Z unstable-options --show-coverage
// build-pass (FIXME(62277): could be check-pass?)
// check-pass

#![feature(trait_alias)]

Expand Down
2 changes: 1 addition & 1 deletion src/test/rustdoc-ui/deprecated-attrs.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// build-pass (FIXME(62277): could be check-pass?)
// check-pass

#![doc(no_default_passes, passes = "collapse-docs unindent-comments")]

Expand Down
2 changes: 1 addition & 1 deletion src/test/rustdoc-ui/doc-test-doctest-feature.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// build-pass
// check-pass
// compile-flags:--test
// normalize-stdout-test: "src/test/rustdoc-ui" -> "$$DIR"

Expand Down
2 changes: 1 addition & 1 deletion src/test/rustdoc-ui/doc-test-rustdoc-feature.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// build-pass
// check-pass
// compile-flags:--test
// normalize-stdout-test: "src/test/rustdoc-ui" -> "$$DIR"

Expand Down
2 changes: 1 addition & 1 deletion src/test/rustdoc-ui/intra-links-warning-crlf.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ignore-tidy-cr
// build-pass
// check-pass

// This file checks the spans of intra-link warnings in a file with CRLF line endings. The
// .gitattributes file in this directory should enforce it.
Expand Down
2 changes: 1 addition & 1 deletion src/test/rustdoc-ui/intra-links-warning.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// build-pass
// check-pass

//! Test with [Foo::baz], [Bar::foo], ...
//~^ WARNING `[Foo::baz]` cannot be resolved
Expand Down
2 changes: 1 addition & 1 deletion src/test/rustdoc-ui/invalid-syntax.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// build-pass
// check-pass

/// ```
/// \__________pkt->size___________/ \_result->size_/ \__pkt->size__/
Expand Down
2 changes: 1 addition & 1 deletion src/test/rustdoc-ui/issue-58473-2.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// build-pass (FIXME(62277): could be check-pass?)
// check-pass

#![deny(private_doc_tests)]

Expand Down
2 changes: 1 addition & 1 deletion src/test/rustdoc-ui/issue-58473.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// build-pass (FIXME(62277): could be check-pass?)
// check-pass

pub trait Foo {
/**
Expand Down
2 changes: 1 addition & 1 deletion src/test/rustdoc-ui/test-no_std.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// compile-flags:--test
// normalize-stdout-test: "src/test/rustdoc-ui" -> "$$DIR"
// build-pass
// check-pass

#![no_std]

Expand Down
2 changes: 1 addition & 1 deletion src/test/rustdoc-ui/unused.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// build-pass (FIXME(62277): could be check-pass?)
// check-pass

// This test purpose is to check that unused_imports lint isn't fired
// by rustdoc. Why would it? Because when rustdoc is running, it uses
Expand Down

0 comments on commit 268918c

Please sign in to comment.