sway/swayfmt
Daniel Frederico Lins Leite a4da6ee1d3
Some checks are pending
CI / cargo-test-lib-std (push) Waiting to run
Codspeed Benchmarks / benchmarks (push) Waiting to run
CI / build-sway-examples (push) Waiting to run
CI / verifications-complete (push) Blocked by required conditions
CI / check-dependency-version-formats (push) Waiting to run
CI / check-forc-manifest-version (push) Waiting to run
CI / get-fuel-core-version (push) Waiting to run
CI / build-sway-lib-std (push) Waiting to run
CI / build-reference-examples (push) Waiting to run
CI / forc-fmt-check-sway-lib-std (push) Waiting to run
CI / forc-fmt-check-sway-examples (push) Waiting to run
CI / forc-fmt-check-panic (push) Waiting to run
CI / check-sdk-harness-test-suite-compatibility (push) Waiting to run
CI / build-mdbook (push) Waiting to run
CI / build-forc-doc-sway-lib-std (push) Waiting to run
CI / build-forc-test-project (push) Waiting to run
CI / cargo-build-workspace (push) Waiting to run
CI / cargo-clippy (push) Waiting to run
CI / cargo-toml-fmt-check (push) Waiting to run
CI / cargo-fmt-check (push) Waiting to run
CI / cargo-run-e2e-test (push) Blocked by required conditions
CI / cargo-run-e2e-test-release (push) Blocked by required conditions
CI / forc-run-benchmarks (push) Waiting to run
CI / forc-unit-tests (push) Waiting to run
CI / Build and test various forc tools (push) Blocked by required conditions
CI / forc-pkg-fuels-deps-check (push) Waiting to run
CI / cargo-unused-deps-check (push) Waiting to run
CI / notify-slack-on-failure (push) Blocked by required conditions
CI / pre-publish-check (push) Waiting to run
CI / publish (push) Blocked by required conditions
CI / publish-sway-lib-std (push) Blocked by required conditions
CI / Build and upload forc binaries to release (push) Blocked by required conditions
github pages / deploy (push) Waiting to run
Removing todo const generics (#7391)
## Description

Continuation of
https://github.com/FuelLabs/sway/issues/6860?reload=1?reload=1.

The summary of removed `todo!()` are:
1 - Some `todo!()` are actually unreachable. In future PRs I will try to
model the AST better and remove these match arms;
2 - Some are trivial impls like spans;
3 - Some are trivial from traits like `PartialEq` and `PartialOrd`.

Others will be removed in future PRs.


## 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.
- [ ] 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.

---------

Co-authored-by: Joshua Batty <joshpbatty@gmail.com>
2025-10-10 00:07:12 +00:00
..
src Removing todo const generics (#7391) 2025-10-10 00:07:12 +00:00
test_macros Add support for experimental features in the parsing phase (#7124) 2025-04-29 11:36:37 +12:00
tests More Sway compiler optimizations (#7093) 2025-04-21 12:36:15 -07:00
Cargo.toml chore: bumpt rust version to 1.90 (#7427) 2025-10-02 22:28:51 +13:00
CONTRIBUTING.md docs(fmt): update swayfmt docs (#4322) 2023-03-21 21:03:59 +11:00
README.md Update README.md (#6423) 2024-08-16 12:43:28 +01:00

swayfmt

A tool for formatting Sway code according to style guidelines.

Quickstart