Skip to content

Commit e0b33e2

Browse files
committed
Revert "Fix incorrect auto trait displayed in rustdoc"
This reverts commit 28b6d2c.
1 parent ffdf6c4 commit e0b33e2

File tree

1 file changed

+2
-2
lines changed
  • compiler/rustc_trait_selection/src/traits/select

1 file changed

+2
-2
lines changed

compiler/rustc_trait_selection/src/traits/select/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1270,7 +1270,7 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
12701270
// the master cache. Since coherence executes pretty quickly,
12711271
// it's not worth going to more trouble to increase the
12721272
// hit-rate, I don't think.
1273-
if self.intercrate || self.allow_negative_impls {
1273+
if self.intercrate {
12741274
return false;
12751275
}
12761276

@@ -1287,7 +1287,7 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
12871287
// mode, so don't do any caching. In particular, we might
12881288
// re-use the same `InferCtxt` with both an intercrate
12891289
// and non-intercrate `SelectionContext`
1290-
if self.intercrate || self.allow_negative_impls {
1290+
if self.intercrate {
12911291
return None;
12921292
}
12931293
let tcx = self.tcx();

0 commit comments

Comments
 (0)