Navigation Menu

Skip to content

Commit

Permalink
remove support method for synthetic default method ids
Browse files Browse the repository at this point in the history
  • Loading branch information
nikomatsakis committed Oct 1, 2015
1 parent 6bfdf37 commit f0dc7bd
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/librustc/front/map/mod.rs
Expand Up @@ -305,22 +305,6 @@ impl<'ast> Map<'ast> {
self.definitions.borrow().as_local_node_id(def_id)
}

/// for default methods, we create a fake node-id; this method
/// adds that fake node-id to the def-id tables
pub fn synthesize_default_method_def_id(&self,
impl_def_id: DefId,
new_method_id: NodeId,
method_name: Name)
-> DefId {
assert!(impl_def_id.is_local());
let index =
self.definitions.borrow_mut()
.create_def_with_parent(Some(impl_def_id.index),
new_method_id,
DefPathData::Value(method_name));
DefId::local(index)
}

fn entry_count(&self) -> usize {
self.map.borrow().len()
}
Expand Down

0 comments on commit f0dc7bd

Please sign in to comment.