Remove some TODOs

This commit is contained in:
Joshua Nelson 2020-08-21 12:31:04 -04:00
parent 002d3a922c
commit 7b8d0befd6
2 changed files with 0 additions and 3 deletions

View File

@ -150,7 +150,6 @@ impl<'a, 'tcx> LinkCollector<'a, 'tcx> {
let variant_name =
// we're not sure this is a variant at all, so use the full string
split.next().map(|f| Symbol::intern(f)).ok_or(ErrorKind::Resolve(ResolutionFailure::NotInScope(path_str.into())))?;
// TODO: this looks very wrong, why are we requiring 3 fields?
let path = split
.next()
.map(|f| {
@ -161,7 +160,6 @@ impl<'a, 'tcx> LinkCollector<'a, 'tcx> {
}
f.to_owned()
})
// TODO: is this right?
.ok_or(ErrorKind::Resolve(ResolutionFailure::NotInScope(
variant_name.to_string().into(),
)))?;

View File

@ -10,7 +10,6 @@
//~| NOTE no item named `path::to` is in scope
//~| HELP to escape
// TODO: why does this say `f` and not `f::A`??
/// [f::A]
//~^ ERROR unresolved link
//~| NOTE this link partially resolves