@@ -271,23 +271,23 @@ fn diagnostic_kind_default_severity() {
271271 Severity :: Error
272272 ) ;
273273 assert_eq ! (
274- DiagnosticKind :: UnnamedDefNotLast . default_severity( ) ,
274+ DiagnosticKind :: UnnamedDef . default_severity( ) ,
275275 Severity :: Error
276276 ) ;
277277}
278278
279279#[ test]
280280fn diagnostic_kind_suppression_order ( ) {
281281 // Higher priority (earlier in enum) suppresses lower priority (later in enum)
282- assert ! ( DiagnosticKind :: UnclosedTree . suppresses( & DiagnosticKind :: UnnamedDefNotLast ) ) ;
282+ assert ! ( DiagnosticKind :: UnclosedTree . suppresses( & DiagnosticKind :: UnnamedDef ) ) ;
283283 assert ! ( DiagnosticKind :: UnclosedTree . suppresses( & DiagnosticKind :: UndefinedReference ) ) ;
284- assert ! ( DiagnosticKind :: ExpectedExpression . suppresses( & DiagnosticKind :: UnnamedDefNotLast ) ) ;
284+ assert ! ( DiagnosticKind :: ExpectedExpression . suppresses( & DiagnosticKind :: UnnamedDef ) ) ;
285285
286286 // Same kind doesn't suppress itself
287287 assert ! ( !DiagnosticKind :: UnclosedTree . suppresses( & DiagnosticKind :: UnclosedTree ) ) ;
288288
289289 // Lower priority doesn't suppress higher priority
290- assert ! ( !DiagnosticKind :: UnnamedDefNotLast . suppresses( & DiagnosticKind :: UnclosedTree ) ) ;
290+ assert ! ( !DiagnosticKind :: UnnamedDef . suppresses( & DiagnosticKind :: UnclosedTree ) ) ;
291291}
292292
293293#[ test]
@@ -364,7 +364,7 @@ fn filtered_no_suppression_disjoint_spans() {
364364#[ test]
365365fn filtered_suppresses_lower_priority_contained ( ) {
366366 let mut diagnostics = Diagnostics :: new ( ) ;
367- // Higher priority error (UnclosedTree) contains lower priority (UnnamedDefNotLast )
367+ // Higher priority error (UnclosedTree) contains lower priority (UnnamedDef )
368368 diagnostics
369369 . report (
370370 DiagnosticKind :: UnclosedTree ,
@@ -373,7 +373,7 @@ fn filtered_suppresses_lower_priority_contained() {
373373 . emit ( ) ;
374374 diagnostics
375375 . report (
376- DiagnosticKind :: UnnamedDefNotLast ,
376+ DiagnosticKind :: UnnamedDef ,
377377 TextRange :: new ( 5 . into ( ) , 15 . into ( ) ) ,
378378 )
379379 . emit ( ) ;
@@ -386,10 +386,10 @@ fn filtered_suppresses_lower_priority_contained() {
386386#[ test]
387387fn filtered_consequence_suppressed_by_structural ( ) {
388388 let mut diagnostics = Diagnostics :: new ( ) ;
389- // Consequence error (UnnamedDefNotLast ) suppressed when structural error (UnclosedTree) exists
389+ // Consequence error (UnnamedDef ) suppressed when structural error (UnclosedTree) exists
390390 diagnostics
391391 . report (
392- DiagnosticKind :: UnnamedDefNotLast ,
392+ DiagnosticKind :: UnnamedDef ,
393393 TextRange :: new ( 0 . into ( ) , 20 . into ( ) ) ,
394394 )
395395 . emit ( ) ;
@@ -418,7 +418,7 @@ fn filtered_same_span_higher_priority_wins() {
418418 . emit ( ) ;
419419 diagnostics
420420 . report (
421- DiagnosticKind :: UnnamedDefNotLast ,
421+ DiagnosticKind :: UnnamedDef ,
422422 TextRange :: new ( 0 . into ( ) , 10 . into ( ) ) ,
423423 )
424424 . emit ( ) ;
@@ -448,7 +448,7 @@ fn render_filtered() {
448448 . emit ( ) ;
449449 diagnostics
450450 . report (
451- DiagnosticKind :: UnnamedDefNotLast ,
451+ DiagnosticKind :: UnnamedDef ,
452452 TextRange :: new ( 5 . into ( ) , 15 . into ( ) ) ,
453453 )
454454 . message ( "unnamed def" )
0 commit comments