Skip to content

Commit 7b8d0be

Browse files
committed
Remove some TODOs
1 parent 002d3a9 commit 7b8d0be

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

src/librustdoc/passes/collect_intra_doc_links.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,6 @@ impl<'a, 'tcx> LinkCollector<'a, 'tcx> {
150150
let variant_name =
151151
// we're not sure this is a variant at all, so use the full string
152152
split.next().map(|f| Symbol::intern(f)).ok_or(ErrorKind::Resolve(ResolutionFailure::NotInScope(path_str.into())))?;
153-
// TODO: this looks very wrong, why are we requiring 3 fields?
154153
let path = split
155154
.next()
156155
.map(|f| {
@@ -161,7 +160,6 @@ impl<'a, 'tcx> LinkCollector<'a, 'tcx> {
161160
}
162161
f.to_owned()
163162
})
164-
// TODO: is this right?
165163
.ok_or(ErrorKind::Resolve(ResolutionFailure::NotInScope(
166164
variant_name.to_string().into(),
167165
)))?;

src/test/rustdoc-ui/intra-link-errors.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
//~| NOTE no item named `path::to` is in scope
1111
//~| HELP to escape
1212

13-
// TODO: why does this say `f` and not `f::A`??
1413
/// [f::A]
1514
//~^ ERROR unresolved link
1615
//~| NOTE this link partially resolves

0 commit comments

Comments
 (0)