diff options
| author | Inokentiy Babushkin <twk@twki.de> | 2018-04-05 21:21:17 +0200 |
|---|---|---|
| committer | Inokentiy Babushkin <twk@twki.de> | 2018-04-26 22:13:10 +0200 |
| commit | 67c226aecece6f22d7a25a24cc2cb4654a29c0d1 (patch) | |
| tree | 5c2dcd9193f98ee6bafeb1a3087ce56d54554274 | |
| parent | 5e1f92cd841b8c925f5149cb362f550c354d36bf (diff) | |
| download | rust-67c226aecece6f22d7a25a24cc2cb4654a29c0d1.tar.gz rust-67c226aecece6f22d7a25a24cc2cb4654a29c0d1.zip | |
Cleaned up for tidy checks.
| -rw-r--r-- | src/librustc/traits/auto_trait.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/librustc/traits/auto_trait.rs b/src/librustc/traits/auto_trait.rs index 62148a8e2bf..f2416eb7c8f 100644 --- a/src/librustc/traits/auto_trait.rs +++ b/src/librustc/traits/auto_trait.rs @@ -21,7 +21,7 @@ use infer::region_constraints::{Constraint, RegionConstraintData}; use ty::{Region, RegionVid}; use ty::fold::TypeFolder; -// TODO(twk): this is obviously not nice to duplicate like that +// FIXME(twk): this is obviously not nice to duplicate like that #[derive(Eq, PartialEq, Hash, Copy, Clone, Debug)] pub enum RegionTarget<'tcx> { Region(Region<'tcx>), @@ -374,7 +374,6 @@ impl<'a, 'tcx> AutoTraitFinder<'a, 'tcx> { } } - // TODO(twk): lifetime branding pub fn get_lifetime(&self, region: Region, names_map: &FxHashMap<String, String>) -> String { self.region_name(region) .map(|name| { @@ -382,7 +381,6 @@ impl<'a, 'tcx> AutoTraitFinder<'a, 'tcx> { panic!("Missing lifetime with name {:?} for {:?}", name, region) }) }) - // TODO(twk): .unwrap_or(&Lifetime::statik()) .unwrap_or(&"'static".to_string()) .clone() } |
