Skip to content

Commit 5a2af97

Browse files
authored
Rollup merge of rust-lang#67178 - GuillaumeGomez:move-non-clean-impls, r=kinnison
Move non clean impls items This is another (and should be the last for the `clean` module) rustdoc cleanup. I tried to follow the same commit pattern as the last one to make the review as easy as possible. r? @kinnison
2 parents 2af31da + f0babc8 commit 5a2af97

File tree

3 files changed

+608
-588
lines changed

3 files changed

+608
-588
lines changed

src/librustdoc/clean/auto_trait.rs

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,24 @@
11
use rustc::hir;
22
use rustc::traits::auto_trait::{self, AutoTraitResult};
3-
use rustc::ty::{self, TypeFoldable};
3+
use rustc::ty::{self, Region, RegionVid, TypeFoldable};
4+
use rustc::util::nodemap::FxHashSet;
5+
46
use std::fmt::Debug;
57

68
use super::*;
79

10+
#[derive(Eq, PartialEq, Hash, Copy, Clone, Debug)]
11+
enum RegionTarget<'tcx> {
12+
Region(Region<'tcx>),
13+
RegionVid(RegionVid)
14+
}
15+
16+
#[derive(Default, Debug, Clone)]
17+
struct RegionDeps<'tcx> {
18+
larger: FxHashSet<RegionTarget<'tcx>>,
19+
smaller: FxHashSet<RegionTarget<'tcx>>
20+
}
21+
822
pub struct AutoTraitFinder<'a, 'tcx> {
923
pub cx: &'a core::DocContext<'tcx>,
1024
pub f: auto_trait::AutoTraitFinder<'tcx>,

0 commit comments

Comments
 (0)