Skip to content

Commit b772329

Browse files
committed
test: Mark the gluon example code as f# so its not treated as a doc test
cc rust-lang/rust#28712 cc rust-lang/rust#40912
1 parent 3cc6c0e commit b772329

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

check/src/unify_type.rs

+5-7
Original file line numberDiff line numberDiff line change
@@ -405,8 +405,7 @@ fn unify_rows<'a, U>(unifier: &mut UnifierState<'a, U>,
405405

406406
// This default `rest` value will only be used on errors, or if both fields has the same fields
407407
let mut r_iter = r.row_iter();
408-
for _ in r_iter.by_ref() {
409-
}
408+
for _ in r_iter.by_ref() {}
410409
let mut rest = r_iter.current_type().clone();
411410

412411
// No need to do anything of no fields are missing
@@ -436,8 +435,7 @@ fn unify_rows<'a, U>(unifier: &mut UnifierState<'a, U>,
436435
// No need to do anything of no fields are missing
437436
if !missing_from_left.is_empty() {
438437
let mut l_iter = l.row_iter();
439-
for _ in l_iter.by_ref() {
440-
}
438+
for _ in l_iter.by_ref() {}
441439

442440
match **l_iter.current_type() {
443441
Type::EmptyRow => {
@@ -529,7 +527,8 @@ fn find_alias_<'a, U>(unifier: &mut UnifierState<'a, U>,
529527
/// either the same types that were passed in or two types which have the same alias in their spine
530528
///
531529
/// Example:
532-
/// ```
530+
///
531+
/// ```f#
533532
/// type Test a = | Test a Int
534533
/// type Test2 = Test String
535534
///
@@ -778,8 +777,7 @@ mod tests {
778777
Ok(result) => {
779778
// Get the row variable at the end of the resulting type so we can compare the types
780779
let mut iter = result.row_iter();
781-
for _ in iter.by_ref() {
782-
}
780+
for _ in iter.by_ref() {}
783781
let row_variable = iter.current_type().clone();
784782
let expected = Type::poly_record(vec![], vec![x.clone(), y.clone()], row_variable);
785783
assert_eq!(result, expected);

0 commit comments

Comments
 (0)