Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moving all rustdoc-ui tests to check-pass #71337

Merged
merged 1 commit into from
Apr 22, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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