Skip to content

Commit 4dde90b

Browse files
committed
Shorter message
1 parent 327f5b0 commit 4dde90b

7 files changed

+11
-7
lines changed

compiler-core/src/warning.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1497,7 +1497,7 @@ The imported value could not be used in this module anyway."
14971497
Warning::EmptyModule { path: _, name } => Diagnostic {
14981498
title: "Empty module".into(),
14991499
text: format!("Module '{name}' contains no public definitions."),
1500-
hint: Some("Consider adding public functions, types, or constants, or removing this module.".into()),
1500+
hint: Some("You can safely remove this module.".into()),
15011501
level: diagnostic::Level::Warning,
15021502
location: None,
15031503
},

test-package-compiler/src/snapshots/test_package_compiler__generated_tests__empty_module_warning.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ main() ->
9898
warning: Empty module
9999

100100
Module 'empty' contains no public definitions.
101-
Hint: Consider adding public functions, types, or constants, or removing this module.
101+
Hint: You can safely remove this module.
102102

103103

104104

test-package-compiler/src/snapshots/test_package_compiler__generated_tests__erlang_app_generation.snap

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
source: test-package-compiler/src/generated_tests.rs
3+
assertion_line: 74
34
expression: "./cases/erlang_app_generation"
45
snapshot_kind: text
56
---
@@ -36,4 +37,4 @@ snapshot_kind: text
3637
warning: Empty module
3738

3839
Module 'main' contains no public definitions.
39-
Hint: Consider adding public functions, types, or constants, or removing this module.
40+
Hint: You can safely remove this module.

test-package-compiler/src/snapshots/test_package_compiler__generated_tests__erlang_app_generation_with_argument.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ snapshot_kind: text
3737
warning: Empty module
3838

3939
Module 'main' contains no public definitions.
40-
Hint: Consider adding public functions, types, or constants, or removing this module.
40+
Hint: You can safely remove this module.

test-package-compiler/src/snapshots/test_package_compiler__generated_tests__erlang_empty.snap

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
source: test-package-compiler/src/generated_tests.rs
3+
assertion_line: 107
34
expression: "./cases/erlang_empty"
45
snapshot_kind: text
56
---
@@ -30,4 +31,4 @@ snapshot_kind: text
3031
warning: Empty module
3132

3233
Module 'empty' contains no public definitions.
33-
Hint: Consider adding public functions, types, or constants, or removing this module.
34+
Hint: You can safely remove this module.

test-package-compiler/src/snapshots/test_package_compiler__generated_tests__javascript_empty.snap

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
source: test-package-compiler/src/generated_tests.rs
3+
assertion_line: 261
34
expression: "./cases/javascript_empty"
45
snapshot_kind: text
56
---
@@ -24,4 +25,4 @@ export * from "../prelude.mjs";
2425
warning: Empty module
2526

2627
Module 'empty' contains no public definitions.
27-
Hint: Consider adding public functions, types, or constants, or removing this module.
28+
Hint: You can safely remove this module.

test-package-compiler/src/snapshots/test_package_compiler__generated_tests__not_overwriting_erlang_module.snap

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
source: test-package-compiler/src/generated_tests.rs
3+
assertion_line: 283
34
expression: "./cases/not_overwriting_erlang_module"
45
snapshot_kind: text
56
---
@@ -30,4 +31,4 @@ snapshot_kind: text
3031
warning: Empty module
3132

3233
Module 'app/code' contains no public definitions.
33-
Hint: Consider adding public functions, types, or constants, or removing this module.
34+
Hint: You can safely remove this module.

0 commit comments

Comments
 (0)