Skip to content

Commit 67c226a

Browse files
committed
Cleaned up for tidy checks.
1 parent 5e1f92c commit 67c226a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/librustc/traits/auto_trait.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ use infer::region_constraints::{Constraint, RegionConstraintData};
2121
use ty::{Region, RegionVid};
2222
use ty::fold::TypeFolder;
2323

24-
// TODO(twk): this is obviously not nice to duplicate like that
24+
// FIXME(twk): this is obviously not nice to duplicate like that
2525
#[derive(Eq, PartialEq, Hash, Copy, Clone, Debug)]
2626
pub enum RegionTarget<'tcx> {
2727
Region(Region<'tcx>),
@@ -374,15 +374,13 @@ impl<'a, 'tcx> AutoTraitFinder<'a, 'tcx> {
374374
}
375375
}
376376

377-
// TODO(twk): lifetime branding
378377
pub fn get_lifetime(&self, region: Region, names_map: &FxHashMap<String, String>) -> String {
379378
self.region_name(region)
380379
.map(|name| {
381380
names_map.get(&name).unwrap_or_else(|| {
382381
panic!("Missing lifetime with name {:?} for {:?}", name, region)
383382
})
384383
})
385-
// TODO(twk): .unwrap_or(&Lifetime::statik())
386384
.unwrap_or(&"'static".to_string())
387385
.clone()
388386
}

0 commit comments

Comments
 (0)