@@ -72,7 +72,6 @@ impl<'a> ValidationErrorContext<'a> {
7272 /// Emits a generic validation error without rich formatting.
7373 fn emit_generic_error ( & self , error : & spirv_tools:: val:: ValidatorError ) {
7474 let mut err = self . sess . dcx ( ) . struct_err ( error. to_string ( ) ) ;
75- err. note ( "spirv-val failed" ) ;
7675 err. note ( format ! ( "module `{}`" , self . filename. display( ) ) ) ;
7776 err. emit ( ) ;
7877 }
@@ -128,7 +127,6 @@ impl<'a> ValidationErrorContext<'a> {
128127 }
129128 }
130129
131- err. note ( "spirv-val failed" ) ;
132130 err. note ( format ! ( "module `{}`" , self . filename. display( ) ) ) ;
133131 err. emit ( ) ;
134132 } else {
@@ -137,7 +135,6 @@ impl<'a> ValidationErrorContext<'a> {
137135 "{:?} variable `{}` at location {} conflicts with `{}`" ,
138136 storage_class, second_name_display, location, first_name_display
139137 ) ) ;
140- err. note ( "spirv-val failed" ) ;
141138 err. note ( format ! ( "module `{}`" , self . filename. display( ) ) ) ;
142139 err. note ( format ! (
143140 "variables `{}` and `{}` both use location {} component {}" ,
@@ -189,7 +186,6 @@ impl<'a> ValidationErrorContext<'a> {
189186 err. note ( format ! ( "generated SPIR-V:\n {}" , context) ) ;
190187 }
191188
192- err. note ( "spirv-val failed" ) ;
193189 err. note ( format ! ( "module `{}`" , self . filename. display( ) ) ) ;
194190 err. emit ( ) ;
195191 }
0 commit comments