~sircmpwn/hare

36339a64ab86e01a029ca6c287b184a69aa325a1 — Ember Sawady 6 months ago 5a1eed1
update for checkless for loops

Signed-off-by: Ember Sawady <ecs@d2evs.net>
M encoding/pem/pem.ha => encoding/pem/pem.ha +0 -2
@@ 114,8 114,6 @@ export fn next(dec: *decoder) ((str, pemdecoder) | io::EOF | io::error) = {
			b64 = base64::newdecoder(&base64::std_encoding, &dec.in),
		});
	};

	abort(); // Unreachable
};

fn pem_read(st: *io::stream, buf: []u8) (size | io::EOF | io::error) = {

M fnmatch/fnmatch.ha => fnmatch/fnmatch.ha +0 -1
@@ 226,7 226,6 @@ fn fnmatch_internal(
		case rune => void;
		};
	};
	abort();
};

fn match_bracket(

M format/ini/scan.ha => format/ini/scan.ha +0 -1
@@ 91,5 91,4 @@ export fn next(sc: *scanner) (entry | io::EOF | error) = {
			strings::sub(line, eq + 1, strings::end),
		);
	};
	abort(); // Unreachable
};

M hare/lex/lex.ha => hare/lex/lex.ha +0 -1
@@ 763,7 763,6 @@ fn nextw(lex: *lexer) ((rune, location) | io::EOF | error) = {
		};
		return r;
	};
	abort();
};

fn try(

M hare/parse/import.ha => hare/parse/import.ha +0 -1
@@ 22,7 22,6 @@ fn name_list(lexer: *lex::lexer) (ast::import_members | error) = {
		case => abort(); // Unreachable
		};
	};
	abort();
};

// Parses the import list for a sub-unit

M math/uints.ha => math/uints.ha +0 -1
@@ 704,7 704,6 @@ export fn gcd(a: u64, b: u64) u64 = {
		};
		b >>= trailing_zeros_u64(b);
	};
	abort();
};

@test fn gcd() void = {

M os/exec/process+freebsd.ha => os/exec/process+freebsd.ha +0 -1
@@ 113,7 113,6 @@ export fn waitall() (uint | error | !(process, exit_status)) = {
			return (pid, es);
		};
	};
	abort("unreachable");
};

// Checks for process completion, returning its status information on

M os/exec/process+linux.ha => os/exec/process+linux.ha +0 -1
@@ 98,7 98,6 @@ export fn waitall() (uint | error | !(process, exit_status)) = {
			return (pid, es);
		};
	};
	abort("unreachable");
};

// Checks for process completion, returning its status information on

M regex/regex.ha => regex/regex.ha +0 -2
@@ 768,8 768,6 @@ fn search(
			};
		};
	};

	return void;
};

// Returns whether or not a [[regex]] matches any part of a given string.

M temp/+freebsd.ha => temp/+freebsd.ha +0 -1
@@ 66,7 66,6 @@ export fn named(
			return (f, path);
		};
	};
	abort(); // Unreachable
};

// Creates a temporary directory. This function only guarantees that the

M temp/+linux.ha => temp/+linux.ha +0 -1
@@ 76,7 76,6 @@ export fn named(
			return (f, path);
		};
	};
	abort(); // Unreachable
};

// Creates a temporary directory. This function only guarantees that the