add some XXX markers

This commit is contained in:
Niko Matsakis 2015-09-02 07:09:53 -04:00
parent dc4a4ada58
commit 2dd139f5fd
3 changed files with 3 additions and 3 deletions

View file

@ -228,7 +228,7 @@ pub fn necessary_variants(dm: &DefMap, pat: &hir::Pat) -> Vec<ast::NodeId> {
hir::PatStruct(..) => {
match dm.borrow().get(&p.id) {
Some(&PathResolution { base_def: DefVariant(_, id, _), .. }) => {
variants.push(id.node);
variants.push(id.node); // XXX
}
_ => ()
}

View file

@ -102,7 +102,7 @@ impl<'a, 'b, 'tcx> ExportRecorder<'a, 'b, 'tcx> {
self.add_exports_for_module(&mut exports, module_);
match module_.def_id.get() {
Some(def_id) => {
self.export_map.insert(def_id.node, exports);
self.export_map.insert(def_id.node, exports); // XXX
debug!("(computing exports) writing exports for {} (some)",
def_id.node);
}

View file

@ -558,7 +558,7 @@ fn is_param<'tcx>(tcx: &ty::ctxt<'tcx>,
if let hir::TyPath(None, _) = ast_ty.node {
let path_res = *tcx.def_map.borrow().get(&ast_ty.id).unwrap();
match path_res.base_def {
def::DefSelfTy(Some(def_id), None) => {
def::DefSelfTy(Some(def_id), None) => { // XXX
path_res.depth == 0 && def_id.node == param_id
}
def::DefTyParam(_, _, def_id, _) => {