@@ -113,7 +113,7 @@ impl<'tcx> LateLintPass<'tcx> for TypeCosplay {
113
113
spans[ 0 ] ,
114
114
"Deserializing from different ADT types." ,
115
115
Some ( spans[ 1 ] ) ,
116
- "help: deserialize from only structs with a discriminant, or an enum encapsulating all structs."
116
+ "deserialize from only structs with a discriminant, or an enum encapsulating all structs."
117
117
) ;
118
118
}
119
119
}
@@ -150,9 +150,9 @@ fn check_enums(cx: &LateContext<'_>, enums: &Vec<(DefId, Span)>) {
150
150
cx,
151
151
TYPE_COSPLAY ,
152
152
first_span,
153
- "warning: multiple enum types deserialized. Should only have one enum type to avoid possible equivalent types" ,
153
+ "multiple enum types deserialized. Should only have one enum type to avoid possible equivalent types" ,
154
154
Some ( second_span) ,
155
- "help: consider constructing a single enum that contains all type definitions as variants"
155
+ "consider constructing a single enum that contains all type definitions as variants"
156
156
) ;
157
157
} else if enums. len ( ) == 1 {
158
158
// future check - check that single enum is safe
@@ -185,16 +185,16 @@ fn has_discriminant(cx: &LateContext, adt: AdtDef, num_struct_types: usize, span
185
185
cx,
186
186
TYPE_COSPLAY ,
187
187
span,
188
- "warning: type does not have a proper discriminant. It may be indistinguishable when deserialized." ,
188
+ "type does not have a proper discriminant. It may be indistinguishable when deserialized." ,
189
189
None ,
190
- "help: add an enum with at least as many variants as there are struct definitions"
190
+ "add an enum with at least as many variants as there are struct definitions"
191
191
)
192
192
}
193
193
}
194
194
}
195
195
196
196
#[ test]
197
- fn insecure_1 ( ) {
197
+ fn insecure ( ) {
198
198
dylint_testing:: ui_test_example ( env ! ( "CARGO_PKG_NAME" ) , "insecure" ) ;
199
199
}
200
200
0 commit comments