We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6bfdf37 commit f0dc7bdCopy full SHA for f0dc7bd
src/librustc/front/map/mod.rs
@@ -305,22 +305,6 @@ impl<'ast> Map<'ast> {
305
self.definitions.borrow().as_local_node_id(def_id)
306
}
307
308
- /// for default methods, we create a fake node-id; this method
309
- /// adds that fake node-id to the def-id tables
310
- pub fn synthesize_default_method_def_id(&self,
311
- impl_def_id: DefId,
312
- new_method_id: NodeId,
313
- method_name: Name)
314
- -> DefId {
315
- assert!(impl_def_id.is_local());
316
- let index =
317
- self.definitions.borrow_mut()
318
- .create_def_with_parent(Some(impl_def_id.index),
319
- new_method_id,
320
- DefPathData::Value(method_name));
321
- DefId::local(index)
322
- }
323
-
324
fn entry_count(&self) -> usize {
325
self.map.borrow().len()
326
0 commit comments