mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-05 13:13:40 +00:00
Fix incorrect auto trait displayed in rustdoc
This commit is contained in:
parent
691d1c1e12
commit
28b6d2c282
@ -1270,7 +1270,7 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
|
||||
// the master cache. Since coherence executes pretty quickly,
|
||||
// it's not worth going to more trouble to increase the
|
||||
// hit-rate, I don't think.
|
||||
if self.intercrate {
|
||||
if self.intercrate || self.allow_negative_impls {
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -1287,7 +1287,7 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
|
||||
// mode, so don't do any caching. In particular, we might
|
||||
// re-use the same `InferCtxt` with both an intercrate
|
||||
// and non-intercrate `SelectionContext`
|
||||
if self.intercrate {
|
||||
if self.intercrate || self.allow_negative_impls {
|
||||
return None;
|
||||
}
|
||||
let tcx = self.tcx();
|
||||
|
Loading…
Reference in New Issue
Block a user