Add -Z normalize-docs and enable it for compiler docs
This commit is contained in:
parent
e37f25aa3f
commit
95a6427d2c
5 changed files with 10 additions and 3 deletions
|
|
@ -1503,9 +1503,12 @@ impl Clean<Type> for hir::Ty<'_> {
|
|||
}
|
||||
|
||||
/// Returns `None` if the type could not be normalized
|
||||
#[allow(unreachable_code, unused_variables)]
|
||||
fn normalize(cx: &DocContext<'tcx>, ty: Ty<'_>) -> Option<Ty<'tcx>> {
|
||||
return None; // HACK: low-churn fix for #79459 while we wait for a trait normalization fix
|
||||
// HACK: low-churn fix for #79459 while we wait for a trait normalization fix
|
||||
if !cx.tcx.sess.opts.debugging_opts.normalize_docs {
|
||||
return None;
|
||||
}
|
||||
|
||||
use crate::rustc_trait_selection::infer::TyCtxtInferExt;
|
||||
use crate::rustc_trait_selection::traits::query::normalize::AtExt;
|
||||
use rustc_middle::traits::ObligationCause;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue