Skip to content

Commit 2ccab19

Browse files
committed
Introduce a CollectCtxt and impl AstConv on *that*. Also make all fns
in collect private except the public entry point.
1 parent 95ee339 commit 2ccab19

File tree

3 files changed

+70
-58
lines changed

3 files changed

+70
-58
lines changed

src/librustc_typeck/check/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4939,7 +4939,7 @@ pub fn check_enum_variants(ccx: &CrateCtxt,
49394939
Some(i) => {
49404940
span_err!(ccx.tcx.sess, v.span, E0081,
49414941
"discriminant value `{}` already exists", disr_vals[i]);
4942-
span_note!(ccx.tcx.sess, ccx.tcx().map.span(variants[i].id.node),
4942+
span_note!(ccx.tcx.sess, ccx.tcx.map.span(variants[i].id.node),
49434943
"conflicting discriminant here")
49444944
}
49454945
None => {}

0 commit comments

Comments
 (0)