Skip to content

Commit

Permalink
Fixes clippy and tests not passing.
Browse files Browse the repository at this point in the history
  • Loading branch information
esdrubal committed Feb 17, 2025
1 parent e50e270 commit a401b54
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
5 changes: 1 addition & 4 deletions sway-core/src/semantic_analysis/type_check_context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@
use std::collections::{HashMap, HashSet, VecDeque};

use crate::{
decl_engine::{
DeclEngineGet, DeclEngineGetParsedDeclId, DeclEngineInsert, DeclId, DeclRef,
DeclRefFunction,
},
decl_engine::{DeclEngineGet, DeclId, DeclRefFunction},
engine_threading::*,
language::{
parsed::TreeType,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@ category = "fail"
validate_abi = false
expected_warnings = 3

# check: fn foo(self) -> u64 {

# check: fn foo(self) -> u64 {
# nextln: $()Duplicate definitions for the method "foo" for type "S<T>".
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ category = "fail"
# check: $()let _ = my_struct_1.foo(my_struct_2);
# nextln: $()No method "foo(MyStruct<u64>, MyStruct<numeric>)" found for type "MyStruct<u64>".
# nextln: $()Matching method:
# nextln: $()foo(MyStruct<u64>, MyStruct<u64>) -> bool in MyStruct<u64>
# nextln: $()foo(MyStruct<T>, MyStruct<T>) -> bool in MyStruct<T>
# nextln: $()test/src/e2e_vm_tests/test_programs/should_fail/trait_method_and_generic_trait_impl/src/main.sw:16:5
# nextln: $()Not used because of 1 issue:
# nextln: $()Trait "MyTrait" is not implemented for type "u64".

# check: $()let _ = my_struct_1.bar(my_struct_2);
# nextln: $()No method "bar(MyStruct<u64>, MyStruct<numeric>)" found for type "MyStruct<u64>".
# nextln: $()Matching method:
# nextln: $()bar(MyStruct<u64>, MyStruct<u64>) -> bool in MyStruct<u64>
# nextln: $()bar(MyStruct<T>, MyStruct<T>) -> bool in MyStruct<T>
# nextln: $()test/src/e2e_vm_tests/test_programs/should_fail/trait_method_and_generic_trait_impl/src/main.sw:10:5
# nextln: $()Not used because of 1 issue:
# nextln: $()Trait "MyTrait" is not implemented for type "u64".

0 comments on commit a401b54

Please sign in to comment.