Add single doc comment to librustc/hir/def_id.rs

This commit is contained in:
bjorn3 2017-06-03 18:21:43 +02:00 committed by GitHub
parent 83e106a303
commit 8df5dfbb57

View File

@ -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 }
}