Skip to content

Commit 2dd139f

Browse files
committed
add some XXX markers
1 parent dc4a4ad commit 2dd139f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/librustc/middle/pat_util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ pub fn necessary_variants(dm: &DefMap, pat: &hir::Pat) -> Vec<ast::NodeId> {
228228
hir::PatStruct(..) => {
229229
match dm.borrow().get(&p.id) {
230230
Some(&PathResolution { base_def: DefVariant(_, id, _), .. }) => {
231-
variants.push(id.node);
231+
variants.push(id.node); // XXX
232232
}
233233
_ => ()
234234
}

src/librustc_resolve/record_exports.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ impl<'a, 'b, 'tcx> ExportRecorder<'a, 'b, 'tcx> {
102102
self.add_exports_for_module(&mut exports, module_);
103103
match module_.def_id.get() {
104104
Some(def_id) => {
105-
self.export_map.insert(def_id.node, exports);
105+
self.export_map.insert(def_id.node, exports); // XXX
106106
debug!("(computing exports) writing exports for {} (some)",
107107
def_id.node);
108108
}

src/librustc_typeck/collect.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ fn is_param<'tcx>(tcx: &ty::ctxt<'tcx>,
558558
if let hir::TyPath(None, _) = ast_ty.node {
559559
let path_res = *tcx.def_map.borrow().get(&ast_ty.id).unwrap();
560560
match path_res.base_def {
561-
def::DefSelfTy(Some(def_id), None) => {
561+
def::DefSelfTy(Some(def_id), None) => { // XXX
562562
path_res.depth == 0 && def_id.node == param_id
563563
}
564564
def::DefTyParam(_, _, def_id, _) => {

0 commit comments

Comments
 (0)