FuelLabs / sway

🌴 Empowering everyone to build reliable and efficient smart contracts.
https://docs.fuel.network/docs/sway/
Apache License 2.0
62.58k stars 5.37k forks source link

Fixes OOB in type_check_analyze of ImplTrait. #6551

Closed esdrubal closed 2 months ago

esdrubal commented 2 months ago

Description

An unused line of code threw an OOB panic because of a parser error. Removing the unused line of code fixes the issue.

Fixes #6331

Checklist

codspeed-hq[bot] commented 2 months ago

CodSpeed Performance Report

Merging #6551 will degrade performances by 10.18%

Comparing esdrubal/oob (22e2e5c) with master (db74865)

Summary

❌ 1 regressions ✅ 21 untouched benchmarks

:warning: Please fix the performance issues or acknowledge them on CodSpeed.

Benchmarks breakdown

Benchmark master esdrubal/oob Change
document_symbol 4.3 ms 4.8 ms -10.18%