Skip to content

Commit 1cd0a9a

Browse files
authored
Merge pull request #40 from fabric-and-ink/small_stuff
Some trivial changes
2 parents aeb73db + 05792e7 commit 1cd0a9a

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/ir/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,9 @@ pub struct ProgramClause {
485485
pub fallback_clause: bool,
486486
}
487487

488-
/// Represents one clause of the form `consequence :- conditions`.
488+
/// Represents one clause of the form `consequence :- conditions` where
489+
/// `conditions = cond_1 && cond_2 && ...` is the conjunction of the individual
490+
/// conditions.
489491
#[derive(Clone, Debug, PartialEq, Eq, Hash)]
490492
pub struct ProgramClauseImplication {
491493
pub consequence: DomainGoal,

src/solve/infer/instantiate.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ impl InferenceTable {
1515
.map(|u| self.new_parameter_variable(u))
1616
.collect();
1717
debug!("instantiate: vars={:?}", vars);
18-
let mut instantiator = Instantiator { vars: vars };
18+
let mut instantiator = Instantiator { vars };
1919
arg.fold_with(&mut instantiator, 0).expect("")
2020
}
2121
}

src/solve/infer/unify.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,8 +319,6 @@ impl TypeName {
319319
}
320320
}
321321

322-
///////////////////////////////////////////////////////////////////////////
323-
324322
struct OccursCheck<'u, 't: 'u> {
325323
unifier: &'u mut Unifier<'t>,
326324
binders: usize,

0 commit comments

Comments
 (0)