Open
Description
Currently, if we deprecate ABI provided methods or contract methods, the warning span points to autogenerated code.
E.g., for this code:
abi Abi {
fn other_deprecated_to_be_abi_method();
} {
#[deprecated]
fn deprecated_abi_provided_method() {}
}
impl Abi for Contract {
#[deprecated]
fn other_deprecated_to_be_abi_method() {}
}
we will get:
warning
--> <autogenerated>:9:15
|
7 | }
8 | if _method_name == "other_deprecated_to_be_abi_method" {
9 | let _result = __contract_entry_other_deprecated_to_be_abi_method();
| -------------------------------------------------- deprecated function
10 | __contract_ret(asm() { zero: raw_ptr }, 0);
11 | }
|
____
warning
--> <autogenerated>:13:15
|
11 | }
12 | if _method_name == "deprecated_abi_provided_method" {
13 | let _result = __contract_entry_deprecated_abi_provided_method();
| ----------------------------------------------- deprecated function
14 | __contract_ret(asm() { zero: raw_ptr }, 0);
15 | }