Commit 0c17b7b 1 parent 09446fa commit 0c17b7b Copy full SHA for 0c17b7b
File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
1
use solar:: {
2
2
interface:: { diagnostics:: EmittedDiagnostics , Session } ,
3
3
sema:: {
4
- hir:: { Arena , ContractId , Hir } ,
4
+ hir:: { Arena , ContractId } ,
5
5
ParsingContext ,
6
6
} ,
7
7
} ;
@@ -23,9 +23,9 @@ fn main() -> Result<(), EmittedDiagnostics> {
23
23
let mut parsing_context = ParsingContext :: new ( & sess) ;
24
24
parsing_context. load_files ( paths) ?;
25
25
let hir = parsing_context. parse_and_lower_to_hir ( & hir_arena) ?;
26
- let counter_contract = Hir :: contract ( & hir , ContractId :: new ( 0 ) ) ;
26
+ let counter_contract = hir . contract ( ContractId :: new ( 0 ) ) ;
27
27
assert_eq ! ( counter_contract. name. to_string( ) , "Counter" ) ;
28
- let another_counter_contract = Hir :: contract ( & hir , ContractId :: new ( 1 ) ) ;
28
+ let another_counter_contract = hir . contract ( ContractId :: new ( 1 ) ) ;
29
29
assert_eq ! ( another_counter_contract. name. to_string( ) , "AnotherCounter" ) ;
30
30
Ok ( ( ) )
31
31
} ) ;
@@ -34,3 +34,4 @@ fn main() -> Result<(), EmittedDiagnostics> {
34
34
// If any errors were emitted, this returns `Err(_)`, otherwise `Ok(())`.
35
35
sess. emitted_errors ( ) . unwrap ( )
36
36
}
37
+
You can’t perform that action at this time.
0 commit comments