Rollup merge of #104626 - reez12g:issue-99144-2, r=jyn514
Fix doctest errors related to rustc_middle Helps with https://github.com/rust-lang/rust/issues/99144
This commit is contained in:
commit
d553811c1f
@ -4,7 +4,6 @@ version = "0.0.0"
|
||||
edition = "2021"
|
||||
|
||||
[lib]
|
||||
doctest = false
|
||||
|
||||
[dependencies]
|
||||
bitflags = "1.2.1"
|
||||
|
@ -1648,6 +1648,8 @@ rustc_queries! {
|
||||
/// a generic type parameter will panic if you call this method on it:
|
||||
///
|
||||
/// ```
|
||||
/// use std::fmt::Debug;
|
||||
///
|
||||
/// pub trait Foo<T: Debug> {}
|
||||
/// ```
|
||||
///
|
||||
|
@ -5,7 +5,7 @@
|
||||
//!
|
||||
//! # Example
|
||||
//! ```rust
|
||||
//! enum Void {}
|
||||
//! #![feature(never_type)]
|
||||
//! mod a {
|
||||
//! pub mod b {
|
||||
//! pub struct SecretlyUninhabited {
|
||||
@ -15,6 +15,7 @@
|
||||
//! }
|
||||
//!
|
||||
//! mod c {
|
||||
//! enum Void {}
|
||||
//! pub struct AlsoSecretlyUninhabited {
|
||||
//! _priv: Void,
|
||||
//! }
|
||||
@ -35,7 +36,7 @@
|
||||
//! `Foo`.
|
||||
//!
|
||||
//! # Example
|
||||
//! ```rust
|
||||
//! ```ignore(illustrative)
|
||||
//! let foo_result: Result<T, Foo> = ... ;
|
||||
//! let Ok(t) = foo_result;
|
||||
//! ```
|
||||
|
Loading…
x
Reference in New Issue
Block a user