Rename more Error and Result types.

This commit is contained in:
Dan Gohman
2018-06-12 04:43:02 -07:00
parent 43bd3cb2a3
commit 1b55a2d005
12 changed files with 157 additions and 150 deletions

View File

@@ -7,8 +7,8 @@
//! ISAs. If the file contains no `isa` commands, the tests will be run against all supported ISAs.
use cretonne_codegen::isa::TargetIsa;
use cretonne_codegen::settings::{Configurable, Error as SetError, Flags};
use error::{Location, Result};
use cretonne_codegen::settings::{Configurable, Flags, SetError};
use error::{Location, ParseResult};
use testcommand::TestOption;
/// The ISA specifications in a `.cton` file.
@@ -35,7 +35,7 @@ impl IsaSpec {
}
/// Parse an iterator of command line options and apply them to `config`.
pub fn parse_options<'a, I>(iter: I, config: &mut Configurable, loc: &Location) -> Result<()>
pub fn parse_options<'a, I>(iter: I, config: &mut Configurable, loc: &Location) -> ParseResult<()>
where
I: Iterator<Item = &'a str>,
{