Skip to content

Commit 3b78e3c

Browse files
aayush-tripathilpil
authored andcommitted
Updated snapshots
1 parent e9d899f commit 3b78e3c

5 files changed

+23
-23
lines changed

compiler-core/src/type_/tests/snapshots/gleam_core__type___tests__dead_code_detection__shadowed_imported_value_marked_unused.snap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ warning: Unused imported module
2424

2525
Hint: You can safely remove it.
2626

27-
warning: `wibble` shadows an imported name
27+
warning: Shadowed Import
2828
┌─ /src/warning/wrn.gleam:4:1
2929
3030
4pub const wibble = 2
3131
^^^^^^^^^^^^^^^^ `wibble` is defined here
3232

33-
Definition of `wibble` shadows an imported value.
33+
Definition of wibble shadows an imported value.
3434
The imported value could not be used in this module anyway.
35-
Hint: Either rename `wibble` or remove the `import` that brings `wibble` into scope.
35+
Hint: Either rename the definition or remove its import.

compiler-core/src/type_/tests/snapshots/gleam_core__type___tests__dead_code_detection__used_shadowed_imported_value.snap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ pub const wibble = wibble
1616

1717

1818
----- WARNING
19-
warning: `wibble` shadows an imported name
19+
warning: Shadowed Import
2020
┌─ /src/warning/wrn.gleam:4:1
2121
2222
4pub const wibble = wibble
2323
^^^^^^^^^^^^^^^^ `wibble` is defined here
2424

25-
Definition of `wibble` shadows an imported value.
25+
Definition of wibble shadows an imported value.
2626
The imported value could not be used in this module anyway.
27-
Hint: Either rename `wibble` or remove the `import` that brings `wibble` into scope.
27+
Hint: Either rename the definition or remove its import.
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
11
---
22
source: compiler-core/src/type_/tests/warnings.rs
3-
expression: "\nimport module.{foo}\n\npub const foo = 1\n"
3+
expression: "\nimport module.{value}\n\npub const value = 1\n"
44
---
55
----- SOURCE CODE
66
-- module.gleam
77

8-
pub const foo = 1
8+
pub const value = 1
99

1010

1111
-- main.gleam
1212

13-
import module.{foo}
13+
import module.{value}
1414

15-
pub const foo = 1
15+
pub const value = 1
1616

1717

1818
----- WARNING
1919
warning: Unused imported module
2020
┌─ /src/warning/wrn.gleam:2:1
2121
22-
2import module.{foo}
23-
^^^^^^^^^^^^^^^^^^^ This imported module is never used
22+
2import module.{value}
23+
^^^^^^^^^^^^^^^^^^^^^ This imported module is never used
2424

2525
Hint: You can safely remove it.
2626

27-
warning: `foo` shadows an imported name
27+
warning: Shadowed Import
2828
┌─ /src/warning/wrn.gleam:4:1
2929
30-
4pub const foo = 1
31-
^^^^^^^^^^^^^ `foo` is defined here
30+
4pub const value = 1
31+
^^^^^^^^^^^^^^^ `value` is defined here
3232

33-
Definition of `foo` shadows an imported value.
33+
Definition of value shadows an imported value.
3434
The imported value could not be used in this module anyway.
35-
Hint: Either rename `foo` or remove the `import` that brings `foo` into scope.
35+
Hint: Either rename the definition or remove its import.

compiler-core/src/type_/tests/snapshots/gleam_core__type___tests__warnings__shadow_imported_function.snap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ warning: Unused imported module
2424

2525
Hint: You can safely remove it.
2626

27-
warning: `wibble` shadows an imported name
27+
warning: Shadowed Import
2828
┌─ /src/warning/wrn.gleam:4:1
2929
3030
4pub fn wibble() { Nil }
3131
^^^^^^^^^^^^^^^ `wibble` is defined here
3232

33-
Definition of `wibble` shadows an imported value.
33+
Definition of wibble shadows an imported value.
3434
The imported value could not be used in this module anyway.
35-
Hint: Either rename `wibble` or remove the `import` that brings `wibble` into scope.
35+
Hint: Either rename the definition or remove its import.

compiler-core/src/type_/tests/snapshots/gleam_core__type___tests__warnings__unused_alias_warning_test.snap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ Hint: You can safely remove it.
2424
import gleam/wibble as _
2525

2626

27-
warning: `one` shadows an imported name
27+
warning: Shadowed Import
2828
┌─ /src/warning/wrn.gleam:3:13
2929
3030
3pub const one = one
3131
^^^^^^^^^^^^^ `one` is defined here
3232

33-
Definition of `one` shadows an imported value.
33+
Definition of one shadows an imported value.
3434
The imported value could not be used in this module anyway.
35-
Hint: Either rename `one` or remove the `import` that brings `one` into scope.
35+
Hint: Either rename the definition or remove its import.

0 commit comments

Comments
 (0)