@@ -229,10 +229,10 @@ fn foo() {
229
229
check_diagnostics (
230
230
r#"
231
231
struct non_camel_case_name {}
232
- // ^^^^^^^^^^^^^^^^^^^ π‘ warn: Structure `non_camel_case_name` should have CamelCase name, e.g. `NonCamelCaseName`
232
+ // ^^^^^^^^^^^^^^^^^^^ π‘ warn: Structure `non_camel_case_name` should have UpperCamelCase name, e.g. `NonCamelCaseName`
233
233
234
234
struct SCREAMING_CASE {}
235
- // ^^^^^^^^^^^^^^ π‘ warn: Structure `SCREAMING_CASE` should have CamelCase name, e.g. `ScreamingCase`
235
+ // ^^^^^^^^^^^^^^ π‘ warn: Structure `SCREAMING_CASE` should have UpperCamelCase name, e.g. `ScreamingCase`
236
236
"# ,
237
237
) ;
238
238
}
@@ -261,10 +261,10 @@ struct SomeStruct { SomeField: u8 }
261
261
check_diagnostics (
262
262
r#"
263
263
enum some_enum { Val(u8) }
264
- // ^^^^^^^^^ π‘ warn: Enum `some_enum` should have CamelCase name, e.g. `SomeEnum`
264
+ // ^^^^^^^^^ π‘ warn: Enum `some_enum` should have UpperCamelCase name, e.g. `SomeEnum`
265
265
266
266
enum SOME_ENUM {}
267
- // ^^^^^^^^^ π‘ warn: Enum `SOME_ENUM` should have CamelCase name, e.g. `SomeEnum`
267
+ // ^^^^^^^^^ π‘ warn: Enum `SOME_ENUM` should have UpperCamelCase name, e.g. `SomeEnum`
268
268
"# ,
269
269
) ;
270
270
}
@@ -283,7 +283,7 @@ enum AABB {}
283
283
check_diagnostics (
284
284
r#"
285
285
enum SomeEnum { SOME_VARIANT(u8) }
286
- // ^^^^^^^^^^^^ π‘ warn: Variant `SOME_VARIANT` should have CamelCase name, e.g. `SomeVariant`
286
+ // ^^^^^^^^^^^^ π‘ warn: Variant `SOME_VARIANT` should have UpperCamelCase name, e.g. `SomeVariant`
287
287
"# ,
288
288
) ;
289
289
}
@@ -313,7 +313,7 @@ static some_weird_const: u8 = 10;
313
313
check_diagnostics (
314
314
r#"
315
315
struct someStruct;
316
- // ^^^^^^^^^^ π‘ warn: Structure `someStruct` should have CamelCase name, e.g. `SomeStruct`
316
+ // ^^^^^^^^^^ π‘ warn: Structure `someStruct` should have UpperCamelCase name, e.g. `SomeStruct`
317
317
318
318
impl someStruct {
319
319
fn SomeFunc(&self) {
@@ -530,11 +530,11 @@ extern {
530
530
check_diagnostics (
531
531
r#"
532
532
trait BAD_TRAIT {
533
- // ^^^^^^^^^ π‘ warn: Trait `BAD_TRAIT` should have CamelCase name, e.g. `BadTrait`
533
+ // ^^^^^^^^^ π‘ warn: Trait `BAD_TRAIT` should have UpperCamelCase name, e.g. `BadTrait`
534
534
const bad_const: u8;
535
535
// ^^^^^^^^^ π‘ warn: Constant `bad_const` should have UPPER_SNAKE_CASE name, e.g. `BAD_CONST`
536
536
type BAD_TYPE;
537
- // ^^^^^^^^ π‘ warn: Type alias `BAD_TYPE` should have CamelCase name, e.g. `BadType`
537
+ // ^^^^^^^^ π‘ warn: Type alias `BAD_TYPE` should have UpperCamelCase name, e.g. `BadType`
538
538
fn BAD_FUNCTION();
539
539
// ^^^^^^^^^^^^ π‘ warn: Function `BAD_FUNCTION` should have snake_case name, e.g. `bad_function`
540
540
fn BadFunction();
@@ -552,11 +552,11 @@ trait BAD_TRAIT {
552
552
check_diagnostics_with_disabled (
553
553
r#"
554
554
trait BAD_TRAIT {
555
- // ^^^^^^^^^ π‘ warn: Trait `BAD_TRAIT` should have CamelCase name, e.g. `BadTrait`
555
+ // ^^^^^^^^^ π‘ warn: Trait `BAD_TRAIT` should have UpperCamelCase name, e.g. `BadTrait`
556
556
const bad_const: u8;
557
557
// ^^^^^^^^^ π‘ warn: Constant `bad_const` should have UPPER_SNAKE_CASE name, e.g. `BAD_CONST`
558
558
type BAD_TYPE;
559
- // ^^^^^^^^ π‘ warn: Type alias `BAD_TYPE` should have CamelCase name, e.g. `BadType`
559
+ // ^^^^^^^^ π‘ warn: Type alias `BAD_TYPE` should have UpperCamelCase name, e.g. `BadType`
560
560
fn BAD_FUNCTION(BAD_PARAM: u8);
561
561
// ^^^^^^^^^^^^ π‘ warn: Function `BAD_FUNCTION` should have snake_case name, e.g. `bad_function`
562
562
// ^^^^^^^^^ π‘ warn: Parameter `BAD_PARAM` should have snake_case name, e.g. `bad_param`
@@ -664,7 +664,7 @@ mod CheckNonstandardStyle {
664
664
mod CheckBadStyle {
665
665
//^^^^^^^^^^^^^ π‘ error: Module `CheckBadStyle` should have snake_case name, e.g. `check_bad_style`
666
666
struct fooo;
667
- //^^^^ π‘ error: Structure `fooo` should have CamelCase name, e.g. `Fooo`
667
+ //^^^^ π‘ error: Structure `fooo` should have UpperCamelCase name, e.g. `Fooo`
668
668
}
669
669
670
670
mod F {
@@ -676,7 +676,7 @@ mod F {
676
676
677
677
#[deny(non_snake_case, non_camel_case_types)]
678
678
pub struct some_type {
679
- //^^^^^^^^^ π‘ error: Structure `some_type` should have CamelCase name, e.g. `SomeType`
679
+ //^^^^^^^^^ π‘ error: Structure `some_type` should have UpperCamelCase name, e.g. `SomeType`
680
680
SOME_FIELD: u8,
681
681
//^^^^^^^^^^ π‘ error: Field `SOME_FIELD` should have snake_case name, e.g. `some_field`
682
682
SomeField: u16,
@@ -693,11 +693,11 @@ pub static SomeStatic: u8 = 10;
693
693
694
694
#[deny(non_snake_case, non_camel_case_types, non_upper_case_globals)]
695
695
trait BAD_TRAIT {
696
- // ^^^^^^^^^ π‘ error: Trait `BAD_TRAIT` should have CamelCase name, e.g. `BadTrait`
696
+ // ^^^^^^^^^ π‘ error: Trait `BAD_TRAIT` should have UpperCamelCase name, e.g. `BadTrait`
697
697
const bad_const: u8;
698
698
// ^^^^^^^^^ π‘ error: Constant `bad_const` should have UPPER_SNAKE_CASE name, e.g. `BAD_CONST`
699
699
type BAD_TYPE;
700
- // ^^^^^^^^ π‘ error: Type alias `BAD_TYPE` should have CamelCase name, e.g. `BadType`
700
+ // ^^^^^^^^ π‘ error: Type alias `BAD_TYPE` should have UpperCamelCase name, e.g. `BadType`
701
701
fn BAD_FUNCTION(BAD_PARAM: u8);
702
702
// ^^^^^^^^^^^^ π‘ error: Function `BAD_FUNCTION` should have snake_case name, e.g. `bad_function`
703
703
// ^^^^^^^^^ π‘ error: Parameter `BAD_PARAM` should have snake_case name, e.g. `bad_param`
@@ -952,7 +952,7 @@ fn foo() {
952
952
let FOO;
953
953
#[allow(non_snake_case)]
954
954
struct qux;
955
- // ^^^ π‘ warn: Structure `qux` should have CamelCase name, e.g. `Qux`
955
+ // ^^^ π‘ warn: Structure `qux` should have UpperCamelCase name, e.g. `Qux`
956
956
957
957
fn BAZ() {
958
958
// ^^^ π‘ error: Function `BAZ` should have snake_case name, e.g. `baz`
0 commit comments