forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of rust-lang#79017 - GuillaumeGomez:rollup-5orhudd, r=Guil…
…laumeGomez Rollup of 6 pull requests Successful merges: - rust-lang#77151 (Add regression test for issue rust-lang#76042) - rust-lang#77996 (Doc change: Remove mention of `fnv` in HashMap) - rust-lang#78463 (Add type to `ConstKind::Placeholder`) - rust-lang#78984 (Rustdoc check option) - rust-lang#78985 (add dropck test for const params) - rust-lang#78996 (add explicit test for const param promotion) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
- Loading branch information
Showing
22 changed files
with
286 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// compile-flags: -Z unstable-options --check | ||
|
||
#![deny(missing_docs)] | ||
#![deny(rustdoc)] | ||
|
||
//! ```rust,testharness | ||
//~^ ERROR | ||
//! let x = 12; | ||
//! ``` | ||
|
||
pub fn foo() {} | ||
//~^ ERROR | ||
//~^^ ERROR | ||
|
||
/// hello | ||
//~^ ERROR | ||
/// | ||
/// ```rust,testharness | ||
/// let x = 12; | ||
/// ``` | ||
pub fn bar() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
error: missing documentation for a function | ||
--> $DIR/check-fail.rs:11:1 | ||
| | ||
LL | pub fn foo() {} | ||
| ^^^^^^^^^^^^ | ||
| | ||
note: the lint level is defined here | ||
--> $DIR/check-fail.rs:3:9 | ||
| | ||
LL | #![deny(missing_docs)] | ||
| ^^^^^^^^^^^^ | ||
|
||
error: missing code example in this documentation | ||
--> $DIR/check-fail.rs:11:1 | ||
| | ||
LL | pub fn foo() {} | ||
| ^^^^^^^^^^^^^^^ | ||
| | ||
note: the lint level is defined here | ||
--> $DIR/check-fail.rs:4:9 | ||
| | ||
LL | #![deny(rustdoc)] | ||
| ^^^^^^^ | ||
= note: `#[deny(missing_doc_code_examples)]` implied by `#[deny(rustdoc)]` | ||
|
||
error: unknown attribute `testharness`. Did you mean `test_harness`? | ||
--> $DIR/check-fail.rs:6:1 | ||
| | ||
LL | / //! ```rust,testharness | ||
LL | | | ||
LL | | //! let x = 12; | ||
LL | | //! ``` | ||
| |_______^ | ||
| | ||
note: the lint level is defined here | ||
--> $DIR/check-fail.rs:4:9 | ||
| | ||
LL | #![deny(rustdoc)] | ||
| ^^^^^^^ | ||
= note: `#[deny(invalid_codeblock_attributes)]` implied by `#[deny(rustdoc)]` | ||
= help: the code block will either not be tested if not marked as a rust one or the code will be wrapped inside a main function | ||
|
||
error: unknown attribute `testharness`. Did you mean `test_harness`? | ||
--> $DIR/check-fail.rs:15:1 | ||
| | ||
LL | / /// hello | ||
LL | | | ||
LL | | /// | ||
LL | | /// ```rust,testharness | ||
LL | | /// let x = 12; | ||
LL | | /// ``` | ||
| |_______^ | ||
| | ||
= help: the code block will either not be tested if not marked as a rust one or the code will be wrapped inside a main function | ||
|
||
error: aborting due to 4 previous errors | ||
|
Oops, something went wrong.