Skip to content

Commit

Permalink
Fix clean/types doc links
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Jan 27, 2021
1 parent 5f22b30 commit d78e1ed
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/librustdoc/clean/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1310,12 +1310,15 @@ crate trait GetDefId {
/// Use [`Self::def_id_full`] if you want to include primitives.
///
/// [`clean`]: crate::clean
/// [`clean::Type`]: crate::clean::Type
// FIXME: get rid of this function and always use `def_id_full`
fn def_id(&self) -> Option<DefId>;

/// Use this method to get the [DefId] of a [clean] AST node, including [PrimitiveType]s.
///
/// See [`Self::def_id`] for more.
///
/// [clean]: crate::clean
fn def_id_full(&self, cache: &Cache) -> Option<DefId>;
}

Expand Down

0 comments on commit d78e1ed

Please sign in to comment.