Revert the effect of #77467 by disabling normalization in rustdoc
This commit is contained in:
parent
361543d776
commit
8b81bb8715
2 changed files with 3 additions and 0 deletions
|
@ -1503,7 +1503,9 @@ 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
|
||||
use crate::rustc_trait_selection::infer::TyCtxtInferExt;
|
||||
use crate::rustc_trait_selection::traits::query::normalize::AtExt;
|
||||
use rustc_middle::traits::ObligationCause;
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
// ignore-tidy-linelength
|
||||
// aux-build:normalize-assoc-item.rs
|
||||
// build-aux-docs
|
||||
// ignore-test
|
||||
|
||||
pub trait Trait {
|
||||
type X;
|
||||
|
|
Loading…
Add table
Reference in a new issue