-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] nested mul_div panicked #8516
Comments
After some quick debugging, I think this is due to the way inline functions work - you can't have inline functions inside inline functions. cc @wrwg |
Definitely you can have inline functions inside inline functions, it happens frequently in the functionals in the framework. This must be something different. |
Doing this currently fails with the following error:
|
I think it currently requires nested inline function to be defined at the same module as the invocation place.
The same appears with inline functions that have constants, try to call P.S. I suggest Aptos developers to implement tests for the public functions in modules different from the declaration module, i.e. |
… inlined method. Includes test case illustrating original bug (#8516) plus a few tests to double-check a few cases of multiple inlining and recursive inlining. A few tests added to aptos-stdlib/tests/, one actually related to math64, but the others parked there since I can't find another place to put nontrivial move tests to be executed.
… inlined method. Includes test case illustrating original bug (#8516) plus a number of tests to check corner cases of multiple inlining and recursive inlining. (Several failed without this fix.) Also replace panic!("ICE expected function parameter to be a lambda") with a more useful diag output.
… inlined method. Includes test case illustrating original bug (#8516) plus a number of tests to check corner cases of multiple inlining and recursive inlining. (Several failed without this fix.) Also replace panic!("ICE expected function parameter to be a lambda") with a more useful diag output.
… inlined method. Includes test case illustrating original bug (#8516) plus a number of tests to check corner cases of multiple inlining and recursive inlining. (Several failed without this fix.) Also replace panic!("ICE expected function parameter to be a lambda") with a more useful diag output.
… inlined method. Includes test case illustrating original bug (#8516) plus a number of tests to check corner cases of multiple inlining and recursive inlining. (Several failed without this fix.) Also replace panic!("ICE expected function parameter to be a lambda") with a more useful diag output.
… inlined method. Includes test case illustrating original bug (#8516) plus a number of tests to check corner cases of multiple inlining and recursive inlining. (Several failed without this fix.) Also replace panic!("ICE expected function parameter to be a lambda") with a more useful diag output.
… inlined method. (#8867) Includes test case illustrating original bug (#8516) plus a number of tests to check corner cases of multiple inlining and recursive inlining. (Several failed without this fix.) Also replace panic!("ICE expected function parameter to be a lambda") with a more useful diag output.
Fixed |
… inlined method. (#8867) Includes test case illustrating original bug (aptos-labs/aptos-core#8516) plus a number of tests to check corner cases of multiple inlining and recursive inlining. (Several failed without this fix.) Also replace panic!("ICE expected function parameter to be a lambda") with a more useful diag output. GitOrigin-RevId: ea19ce1b272e5e2e979057bd58990e76e6c4d03a
… inlined method. (#8867) Includes test case illustrating original bug (aptos-labs/aptos-core#8516) plus a number of tests to check corner cases of multiple inlining and recursive inlining. (Several failed without this fix.) Also replace panic!("ICE expected function parameter to be a lambda") with a more useful diag output. GitOrigin-RevId: ea19ce1b272e5e2e979057bd58990e76e6c4d03a
… inlined method. (#8867) Includes test case illustrating original bug (#8516) plus a number of tests to check corner cases of multiple inlining and recursive inlining. (Several failed without this fix.) Also replace panic!("ICE expected function parameter to be a lambda") with a more useful diag output.
… inlined method. (#8867) Includes test case illustrating original bug (aptos-labs/aptos-core#8516) plus a number of tests to check corner cases of multiple inlining and recursive inlining. (Several failed without this fix.) Also replace panic!("ICE expected function parameter to be a lambda") with a more useful diag output. GitOrigin-RevId: ea19ce1b272e5e2e979057bd58990e76e6c4d03a
… inlined method. (#8867) Includes test case illustrating original bug (aptos-labs/aptos-core#8516) plus a number of tests to check corner cases of multiple inlining and recursive inlining. (Several failed without this fix.) Also replace panic!("ICE expected function parameter to be a lambda") with a more useful diag output. GitOrigin-RevId: ea19ce1b272e5e2e979057bd58990e76e6c4d03a
… inlined method. (#8867) Includes test case illustrating original bug (aptos-labs/aptos-core#8516) plus a number of tests to check corner cases of multiple inlining and recursive inlining. (Several failed without this fix.) Also replace panic!("ICE expected function parameter to be a lambda") with a more useful diag output. GitOrigin-RevId: ea19ce1b272e5e2e979057bd58990e76e6c4d03a
… inlined method. (#8867) Includes test case illustrating original bug (aptos-labs/aptos-core#8516) plus a number of tests to check corner cases of multiple inlining and recursive inlining. (Several failed without this fix.) Also replace panic!("ICE expected function parameter to be a lambda") with a more useful diag output. GitOrigin-RevId: ea19ce1b272e5e2e979057bd58990e76e6c4d03a
… inlined method. (#8867) Includes test case illustrating original bug (aptos-labs/aptos-core#8516) plus a number of tests to check corner cases of multiple inlining and recursive inlining. (Several failed without this fix.) Also replace panic!("ICE expected function parameter to be a lambda") with a more useful diag output. GitOrigin-RevId: ea19ce1b272e5e2e979057bd58990e76e6c4d03a
… inlined method. (#8867) Includes test case illustrating original bug (aptos-labs/aptos-core#8516) plus a number of tests to check corner cases of multiple inlining and recursive inlining. (Several failed without this fix.) Also replace panic!("ICE expected function parameter to be a lambda") with a more useful diag output. GitOrigin-RevId: ea19ce1b272e5e2e979057bd58990e76e6c4d03a
… inlined method. (#8867) Includes test case illustrating original bug (aptos-labs/aptos-core#8516) plus a number of tests to check corner cases of multiple inlining and recursive inlining. (Several failed without this fix.) Also replace panic!("ICE expected function parameter to be a lambda") with a more useful diag output. GitOrigin-RevId: ea19ce1b272e5e2e979057bd58990e76e6c4d03a
… inlined method. (#8867) Includes test case illustrating original bug (aptos-labs/aptos-core#8516) plus a number of tests to check corner cases of multiple inlining and recursive inlining. (Several failed without this fix.) Also replace panic!("ICE expected function parameter to be a lambda") with a more useful diag output. GitOrigin-RevId: ea19ce1b272e5e2e979057bd58990e76e6c4d03a
… inlined method. (#8867) Includes test case illustrating original bug (aptos-labs/aptos-core#8516) plus a number of tests to check corner cases of multiple inlining and recursive inlining. (Several failed without this fix.) Also replace panic!("ICE expected function parameter to be a lambda") with a more useful diag output. GitOrigin-RevId: ea19ce1b272e5e2e979057bd58990e76e6c4d03a
… inlined method. (#8867) Includes test case illustrating original bug (aptos-labs/aptos-core#8516) plus a number of tests to check corner cases of multiple inlining and recursive inlining. (Several failed without this fix.) Also replace panic!("ICE expected function parameter to be a lambda") with a more useful diag output. GitOrigin-RevId: ea19ce1b272e5e2e979057bd58990e76e6c4d03a
… inlined method. (#8867) Includes test case illustrating original bug (aptos-labs/aptos-core#8516) plus a number of tests to check corner cases of multiple inlining and recursive inlining. (Several failed without this fix.) Also replace panic!("ICE expected function parameter to be a lambda") with a more useful diag output. GitOrigin-RevId: ea19ce1b272e5e2e979057bd58990e76e6c4d03a
… inlined method. (#8867) Includes test case illustrating original bug (aptos-labs/aptos-core#8516) plus a number of tests to check corner cases of multiple inlining and recursive inlining. (Several failed without this fix.) Also replace panic!("ICE expected function parameter to be a lambda") with a more useful diag output. GitOrigin-RevId: ea19ce1b272e5e2e979057bd58990e76e6c4d03a
… inlined method. (#8867) Includes test case illustrating original bug (aptos-labs/aptos-core#8516) plus a number of tests to check corner cases of multiple inlining and recursive inlining. (Several failed without this fix.) Also replace panic!("ICE expected function parameter to be a lambda") with a more useful diag output. GitOrigin-RevId: ea19ce1b272e5e2e979057bd58990e76e6c4d03a
… inlined method. (#8867) Includes test case illustrating original bug (aptos-labs/aptos-core#8516) plus a number of tests to check corner cases of multiple inlining and recursive inlining. (Several failed without this fix.) Also replace panic!("ICE expected function parameter to be a lambda") with a more useful diag output. GitOrigin-RevId: ea19ce1b272e5e2e979057bd58990e76e6c4d03a
… inlined method. (#8867) Includes test case illustrating original bug (aptos-labs/aptos-core#8516) plus a number of tests to check corner cases of multiple inlining and recursive inlining. (Several failed without this fix.) Also replace panic!("ICE expected function parameter to be a lambda") with a more useful diag output. GitOrigin-RevId: ea19ce1b272e5e2e979057bd58990e76e6c4d03a
… inlined method. (#8867) Includes test case illustrating original bug (aptos-labs/aptos-core#8516) plus a number of tests to check corner cases of multiple inlining and recursive inlining. (Several failed without this fix.) Also replace panic!("ICE expected function parameter to be a lambda") with a more useful diag output. GitOrigin-RevId: ea19ce1b272e5e2e979057bd58990e76e6c4d03a
… inlined method. (#8867) Includes test case illustrating original bug (aptos-labs/aptos-core#8516) plus a number of tests to check corner cases of multiple inlining and recursive inlining. (Several failed without this fix.) Also replace panic!("ICE expected function parameter to be a lambda") with a more useful diag output. GitOrigin-RevId: ea19ce1b272e5e2e979057bd58990e76e6c4d03a
… inlined method. (#8867) Includes test case illustrating original bug (aptos-labs/aptos-core#8516) plus a number of tests to check corner cases of multiple inlining and recursive inlining. (Several failed without this fix.) Also replace panic!("ICE expected function parameter to be a lambda") with a more useful diag output. GitOrigin-RevId: ea19ce1b272e5e2e979057bd58990e76e6c4d03a
… inlined method. (#8867) Includes test case illustrating original bug (aptos-labs/aptos-core#8516) plus a number of tests to check corner cases of multiple inlining and recursive inlining. (Several failed without this fix.) Also replace panic!("ICE expected function parameter to be a lambda") with a more useful diag output. GitOrigin-RevId: ea19ce1b272e5e2e979057bd58990e76e6c4d03a
… inlined method. (#8867) Includes test case illustrating original bug (aptos-labs/aptos-core#8516) plus a number of tests to check corner cases of multiple inlining and recursive inlining. (Several failed without this fix.) Also replace panic!("ICE expected function parameter to be a lambda") with a more useful diag output. GitOrigin-RevId: ea19ce1b272e5e2e979057bd58990e76e6c4d03a
… inlined method. (#8867) Includes test case illustrating original bug (aptos-labs/aptos-core#8516) plus a number of tests to check corner cases of multiple inlining and recursive inlining. (Several failed without this fix.) Also replace panic!("ICE expected function parameter to be a lambda") with a more useful diag output. GitOrigin-RevId: ea19ce1b272e5e2e979057bd58990e76e6c4d03a
… inlined method. (#8867) Includes test case illustrating original bug (aptos-labs/aptos-core#8516) plus a number of tests to check corner cases of multiple inlining and recursive inlining. (Several failed without this fix.) Also replace panic!("ICE expected function parameter to be a lambda") with a more useful diag output. GitOrigin-RevId: ea19ce1b272e5e2e979057bd58990e76e6c4d03a
… inlined method. (#8867) Includes test case illustrating original bug (aptos-labs/aptos-core#8516) plus a number of tests to check corner cases of multiple inlining and recursive inlining. (Several failed without this fix.) Also replace panic!("ICE expected function parameter to be a lambda") with a more useful diag output. GitOrigin-RevId: ea19ce1b272e5e2e979057bd58990e76e6c4d03a
… inlined method. (#8867) Includes test case illustrating original bug (aptos-labs/aptos-core#8516) plus a number of tests to check corner cases of multiple inlining and recursive inlining. (Several failed without this fix.) Also replace panic!("ICE expected function parameter to be a lambda") with a more useful diag output. GitOrigin-RevId: ea19ce1b272e5e2e979057bd58990e76e6c4d03a
… inlined method. (#8867) Includes test case illustrating original bug (aptos-labs/aptos-core#8516) plus a number of tests to check corner cases of multiple inlining and recursive inlining. (Several failed without this fix.) Also replace panic!("ICE expected function parameter to be a lambda") with a more useful diag output. GitOrigin-RevId: ea19ce1b272e5e2e979057bd58990e76e6c4d03a
… inlined method. (#8867) Includes test case illustrating original bug (aptos-labs/aptos-core#8516) plus a number of tests to check corner cases of multiple inlining and recursive inlining. (Several failed without this fix.) Also replace panic!("ICE expected function parameter to be a lambda") with a more useful diag output. GitOrigin-RevId: ea19ce1b272e5e2e979057bd58990e76e6c4d03a
… inlined method. (#8867) Includes test case illustrating original bug (aptos-labs/aptos-core#8516) plus a number of tests to check corner cases of multiple inlining and recursive inlining. (Several failed without this fix.) Also replace panic!("ICE expected function parameter to be a lambda") with a more useful diag output. GitOrigin-RevId: ea19ce1b272e5e2e979057bd58990e76e6c4d03a
… inlined method. (#8867) Includes test case illustrating original bug (aptos-labs/aptos-core#8516) plus a number of tests to check corner cases of multiple inlining and recursive inlining. (Several failed without this fix.) Also replace panic!("ICE expected function parameter to be a lambda") with a more useful diag output. GitOrigin-RevId: ea19ce1b272e5e2e979057bd58990e76e6c4d03a
… inlined method. (#8867) Includes test case illustrating original bug (aptos-labs/aptos-core#8516) plus a number of tests to check corner cases of multiple inlining and recursive inlining. (Several failed without this fix.) Also replace panic!("ICE expected function parameter to be a lambda") with a more useful diag output. GitOrigin-RevId: ea19ce1b272e5e2e979057bd58990e76e6c4d03a
… inlined method. (#8867) Includes test case illustrating original bug (aptos-labs/aptos-core#8516) plus a number of tests to check corner cases of multiple inlining and recursive inlining. (Several failed without this fix.) Also replace panic!("ICE expected function parameter to be a lambda") with a more useful diag output. GitOrigin-RevId: ea19ce1b272e5e2e979057bd58990e76e6c4d03a
… inlined method. (#8867) Includes test case illustrating original bug (aptos-labs/aptos-core#8516) plus a number of tests to check corner cases of multiple inlining and recursive inlining. (Several failed without this fix.) Also replace panic!("ICE expected function parameter to be a lambda") with a more useful diag output. GitOrigin-RevId: ea19ce1b272e5e2e979057bd58990e76e6c4d03a
… inlined method. (#8867) Includes test case illustrating original bug (aptos-labs/aptos-core#8516) plus a number of tests to check corner cases of multiple inlining and recursive inlining. (Several failed without this fix.) Also replace panic!("ICE expected function parameter to be a lambda") with a more useful diag output. GitOrigin-RevId: ea19ce1b272e5e2e979057bd58990e76e6c4d03a
… inlined method. (#8867) Includes test case illustrating original bug (aptos-labs/aptos-core#8516) plus a number of tests to check corner cases of multiple inlining and recursive inlining. (Several failed without this fix.) Also replace panic!("ICE expected function parameter to be a lambda") with a more useful diag output. GitOrigin-RevId: ea19ce1b272e5e2e979057bd58990e76e6c4d03a
🐛 Bug
To reproduce
Code snippet to reproduce
This test passes
This test throws exception.
error:
Expected Behavior
nested should be fine
System information
The text was updated successfully, but these errors were encountered: