Add single doc comment to librustc/hir/def_id.rs
This commit is contained in:
parent
83e106a303
commit
8df5dfbb57
@ -187,6 +187,7 @@ fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
|
||||
|
||||
impl DefId {
|
||||
/// Make a local `DefId` with the given index.
|
||||
pub fn local(index: DefIndex) -> DefId {
|
||||
DefId { krate: LOCAL_CRATE, index: index }
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user