forked from SoroSusu-Protocol/sorosusu-contracts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcheck.txt
More file actions
141 lines (132 loc) · 5.97 KB
/
Copy pathcheck.txt
File metadata and controls
141 lines (132 loc) · 5.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
cargo : Checking sorosusu-contracts v0.1.0 (C:\Users\odeye\Desktop\My
Projects\OpensrcIssues\sorosusu-contracts)
At line:1 char:1
+ cargo check --color never 2>&1 | Out-File check.txt -Encoding UTF8
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: ( Checking so...susu-contracts):String)
[], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
error[E0252]: the name `contract` is defined multiple times
--> src\lib.rs:80:5
|
3 | use soroban_sdk::{contract, contractimpl, contracttype, token, Address, Env};
| -------- previous import of the macro `contract` here
...
80 | contract, contracterror, contractimpl, contractmeta, symbol_short, token,
Address, Env, Map, Symbol, Vec,
| ^^^^^^^^--
| |
| `contract` reimported here
| help: remove unnecessary import
|
= note: `contract` must be defined only once in the macro namespace of this module
error[E0252]: the name `contractimpl` is defined multiple times
--> src\lib.rs:80:30
|
3 | use soroban_sdk::{contract, contractimpl, contracttype, token, Address, Env};
| ------------ previous import of the macro
`contractimpl` here
...
80 | contract, contracterror, contractimpl, contractmeta, symbol_short, token,
Address, Env, Map, Symbol, Vec,
| ^^^^^^^^^^^^--
| |
| `contractimpl` reimported here
| help: remove unnecessary import
|
= note: `contractimpl` must be defined only once in the macro namespace of this
module
error[E0252]: the name `token` is defined multiple times
--> src\lib.rs:80:72
|
3 | use soroban_sdk::{contract, contractimpl, contracttype, token, Address, Env};
| ----- previous import of
the module `token` here
...
80 | contract, contracterror, contractimpl, contractmeta, symbol_short, token,
Address, Env, Map, Symbol, Vec,
| ^^^^^--
| |
| `token`
reimported here
| help:
remove unnecessary import
|
= note: `token` must be defined only once in the type namespace of this module
error[E0252]: the name `Address` is defined multiple times
--> src\lib.rs:80:79
|
3 | use soroban_sdk::{contract, contractimpl, contracttype, token, Address, Env};
| ------- previous
import of the type `Address` here
...
80 | contract, contracterror, contractimpl, contractmeta, symbol_short, token,
Address, Env, Map, Symbol, Vec,
|
^^^^^^^--
| |
|
`Address` reimported here
|
help: remove unnecessary import
|
= note: `Address` must be defined only once in the type namespace of this module
error[E0252]: the name `Env` is defined multiple times
--> src\lib.rs:80:88
|
3 | use soroban_sdk::{contract, contractimpl, contracttype, token, Address, Env};
| ---
previous import of the type `Env` here
...
80 | contract, contracterror, contractimpl, contractmeta, symbol_short, token,
Address, Env, Map, Symbol, Vec,
|
^^^--
|
|
|
`Env` reimported here
|
help: remove unnecessary import
|
= note: `Env` must be defined only once in the type namespace of this module
error[E0428]: the name `__initialize` is defined multiple times
--> src\lib.rs:112:1
|
18 | #[contractimpl]
| --------------- previous definition of the module `__initialize` here
...
112 | #[contractimpl]
| ^^^^^^^^^^^^^^^ `__initialize` redefined here
|
= note: `__initialize` must be defined only once in the type namespace of this
module
= note: this error originates in the attribute macro `contractimpl` (in Nightly
builds, run with -Z macro-backtrace for more info)
error[E0428]: the name `__SPEC_XDR_FN_INITIALIZE` is defined multiple times
--> src\lib.rs:112:1
|
18 | #[contractimpl]
| --------------- previous definition of the value `__SPEC_XDR_FN_INITIALIZE` here
...
112 | #[contractimpl]
| ^^^^^^^^^^^^^^^ `__SPEC_XDR_FN_INITIALIZE` redefined here
|
= note: `__SPEC_XDR_FN_INITIALIZE` must be defined only once in the value namespace
of this module
= note: this error originates in the attribute macro `soroban_sdk::contractspecfn`
(in Nightly builds, run with -Z macro-backtrace for more info)
warning: unused imports: `Address`, `Env`, `contract`, `contractimpl`, and `token`
--> src\lib.rs:80:5
|
80 | contract, contracterror, contractimpl, contractmeta, symbol_short, token,
Address, Env, Map, Symbol, Vec,
| ^^^^^^^^ ^^^^^^^^^^^^ ^^^^^
^^^^^^^ ^^^
|
= note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
Some errors have detailed explanations: E0252, E0428.
For more information about an error, try `rustc --explain E0252`.
warning: `sorosusu-contracts` (lib) generated 1 warning
error: could not compile `sorosusu-contracts` (lib) due to 7 previous errors; 1 warning
emitted