FuelLabs
sway
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
Performance History
Latest Results
removing verify-ir from the CLI. Verification will always run now.
xunilrj/removing-cli-verify
14 hours ago
Fix forc-fmt empty if-body + else collapsing onto one line (#7628) ## Description Fixes #7625 `forc-fmt` collapses empty if-body + else onto a single line: ```sway // Before (wrong): if __size_of::<T>() == 0 { } else if __is_reference_type::<T>() { // After (correct): if __size_of::<T>() == 0 { } else if __is_reference_type::<T>() { ``` **Root cause**: In `format_then_block`, when the then-block is empty and has an else clause, `block_unindent()` was called but no newline was written — so the closing `}` from `format_else_opt` ended up on the same line. **Fix**: Write a newline after the empty body when an else clause exists, and skip `block_unindent` since `close_curly_brace` in `format_else_opt` already handles unindentation. Guarded with `LineStyle::Inline` to avoid injecting newlines during width measurement probes. ## Checklist - [x] I have linked to any relevant issues. - [ ] I have commented my code, particularly in hard-to-understand areas. - [ ] I have updated the documentation where relevant (API docs, the reference, and the Sway book). - [ ] If my change requires substantial documentation changes, I have [requested support from the DevRel team](https://github.com/FuelLabs/devrel-requests/issues/new/choose) - [x] I have added tests that prove my fix is effective or that my feature works. - [ ] I have added (or requested a maintainer to add) the necessary `Breaking*` or `New Feature` labels where relevant. - [x] I have done my best to ensure that my PR adheres to [the Fuel Labs Code Review Standards](https://github.com/FuelLabs/rfcs/blob/master/text/code-standards/external-contributors.md). - [ ] I have requested a review from the relevant team or maintainers. --------- Co-authored-by: Igor Rončević <ironcev@hotmail.com>
master
1 day ago
make IR snapshot fail only at the end of all comparisons (#7676) ## Description Fix a problem left behind by https://github.com/FuelLabs/sway/pull/7666. We swallow snapshot panics so we update all snapshots at once. But I forgot to raise the error at the end, which means the test harness was never failing. ## Checklist - [x] I have linked to any relevant issues. - [x] I have commented my code, particularly in hard-to-understand areas. - [ ] I have updated the documentation where relevant (API docs, the reference, and the Sway book). - [ ] If my change requires substantial documentation changes, I have [requested support from the DevRel team](https://github.com/FuelLabs/devrel-requests/issues/new/choose) - [x] I have added tests that prove my fix is effective or that my feature works. - [ ] I have added (or requested a maintainer to add) the necessary `Breaking*` or `New Feature` labels where relevant. - [x] I have done my best to ensure that my PR adheres to [the Fuel Labs Code Review Standards](https://github.com/FuelLabs/rfcs/blob/master/text/code-standards/external-contributors.md). - [x] I have requested a review from the relevant team or maintainers.
master
2 days ago
removing verify-ir from the CLI. Verification will always run now.
xunilrj/removing-cli-verify
5 days ago
remove checl for local var immutability
xunilrj/fix-opt-passes-convergence
6 days ago
remove checl for local var immutability
xunilrj/fix-opt-passes-convergence
6 days ago
PR adjustments
xunilrj/fix-opt-passes-convergence
6 days ago
Fix `gix-validate` advisory (GHSA-p3hw-mv63-rf9w) (#7671) ## Description This PR fixes `gix-validate` advisory [GHSA-p3hw-mv63-rf9w](https://github.com/advisories/GHSA-p3hw-mv63-rf9w) by bumping `gix-url` to v0.36 which is the first version compatible with the `gix-validate` v0.11.1 which brings the actual fix. The final resolved dependency for `gix-validate` is v0.11.2. There was no changes in the code needed. A failed automatic attempt to fix `GHSA-p3hw-mv63-rf9w` was done in #7668. ## Checklist - [x] I have linked to any relevant issues. - [ ] I have commented my code, particularly in hard-to-understand areas. - [ ] I have updated the documentation where relevant (API docs, the reference, and the Sway book). - [ ] If my change requires substantial documentation changes, I have [requested support from the DevRel team](https://github.com/FuelLabs/devrel-requests/issues/new/choose) - [ ] I have added tests that prove my fix is effective or that my feature works. - [ ] I have added (or requested a maintainer to add) the necessary `Breaking*` or `New Feature` labels where relevant. - [x] I have done my best to ensure that my PR adheres to [the Fuel Labs Code Review Standards](https://github.com/FuelLabs/rfcs/blob/master/text/code-standards/external-contributors.md). - [x] I have requested a review from the relevant team or maintainers.
master
7 days ago
Latest Branches
CodSpeed Performance Gauge
0%
Removing verify-ir from the CLI
#7672
6 days ago
7e7ce5e
xunilrj/removing-cli-verify
CodSpeed Performance Gauge
0%
fix modified in optimisation passes so they converge
#7666
6 days ago
5946264
xunilrj/fix-opt-passes-convergence
CodSpeed Performance Gauge
-16%
Refactor and tidy up `std` tests for execution speed and discoverability
#7669
9 days ago
d665a3a
ironcev/refactor-std-tests
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs