Eliminate unused variable warnings.

This commit is contained in:
Michael Sullivan 2013-07-25 12:49:25 -07:00
parent 8582fde150
commit f5721c9334
2 changed files with 3 additions and 3 deletions

View file

@ -186,7 +186,7 @@ fn parse_trait_store(st: &mut PState) -> ty::TraitStore {
}
fn parse_substs(st: &mut PState, conv: conv_did) -> ty::substs {
let regions = parse_region_substs(st, |x,y| conv(x,y));
let regions = parse_region_substs(st);
let self_ty = parse_opt(st, |st| parse_ty(st, |x,y| conv(x,y)) );
@ -202,7 +202,7 @@ fn parse_substs(st: &mut PState, conv: conv_did) -> ty::substs {
};
}
fn parse_region_substs(st: &mut PState, conv: conv_did) -> ty::RegionSubsts {
fn parse_region_substs(st: &mut PState) -> ty::RegionSubsts {
match next(st) {
'e' => ty::ErasedRegions,
'n' => {

View file

@ -439,7 +439,7 @@ impl CoherenceChecker {
-> UniversalQuantificationResult {
let regions = match polytype.generics.region_param {
None => opt_vec::Empty,
Some(r) => {
Some(_) => {
opt_vec::with(
self.inference_context.next_region_var(
infer::BoundRegionInCoherence))