aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_ty/src/diagnostics/decl_check.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/hir_ty/src/diagnostics/decl_check.rs')
-rw-r--r--crates/hir_ty/src/diagnostics/decl_check.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/hir_ty/src/diagnostics/decl_check.rs b/crates/hir_ty/src/diagnostics/decl_check.rs
index bfa53bdce..cfb5d7320 100644
--- a/crates/hir_ty/src/diagnostics/decl_check.rs
+++ b/crates/hir_ty/src/diagnostics/decl_check.rs
@@ -256,7 +256,7 @@ impl<'a, 'b> DeclValidator<'a, 'b> {
256 } 256 }
257 257
258 let ident_type = 258 let ident_type =
259 if is_param { IdentType::Argument } else { IdentType::Variable }; 259 if is_param { IdentType::Parameter } else { IdentType::Variable };
260 260
261 let diagnostic = IncorrectCase { 261 let diagnostic = IncorrectCase {
262 file: source_ptr.file_id, 262 file: source_ptr.file_id,
@@ -643,10 +643,10 @@ fn NonSnakeCaseName() {}
643 check_diagnostics( 643 check_diagnostics(
644 r#" 644 r#"
645fn foo(SomeParam: u8) {} 645fn foo(SomeParam: u8) {}
646 // ^^^^^^^^^ Argument `SomeParam` should have snake_case name, e.g. `some_param` 646 // ^^^^^^^^^ Parameter `SomeParam` should have snake_case name, e.g. `some_param`
647 647
648fn foo2(ok_param: &str, CAPS_PARAM: u8) {} 648fn foo2(ok_param: &str, CAPS_PARAM: u8) {}
649 // ^^^^^^^^^^ Argument `CAPS_PARAM` should have snake_case name, e.g. `caps_param` 649 // ^^^^^^^^^^ Parameter `CAPS_PARAM` should have snake_case name, e.g. `caps_param`
650"#, 650"#,
651 ); 651 );
652 } 652 }