From 152d7fcee73efff6429294662d701ffa79016a51 Mon Sep 17 00:00:00 2001 From: Andrew Brown Date: Wed, 1 Jul 2020 10:31:13 -0700 Subject: [PATCH] Fix typo and wording of CDSL error messages --- cranelift/codegen/meta/src/cdsl/instructions.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cranelift/codegen/meta/src/cdsl/instructions.rs b/cranelift/codegen/meta/src/cdsl/instructions.rs index 6d4b6738df..88a15c6038 100644 --- a/cranelift/codegen/meta/src/cdsl/instructions.rs +++ b/cranelift/codegen/meta/src/cdsl/instructions.rs @@ -62,7 +62,7 @@ impl InstructionGroup { self.instructions .iter() .find(|inst| inst.name == name) - .unwrap_or_else(|| panic!("unexisting instruction with name {}", name)) + .unwrap_or_else(|| panic!("instruction with name '{}' does not exist", name)) } } @@ -598,7 +598,7 @@ fn verify_format(inst_name: &str, operands_in: &[Operand], format: &InstructionF assert_eq!( num_values, format.num_value_operands, - "inst {} doesnt' have as many value input operand as its format {} declares; you may need \ + "inst {} doesn't have as many value input operands as its format {} declares; you may need \ to use a different format.", inst_name, format.name );