Skip to content

Resolve format arguments in derive Display#75

Merged
RAprogramm merged 1 commit intonew_versionfrom
codex/-formatarg
Sep 20, 2025
Merged

Resolve format arguments in derive Display#75
RAprogramm merged 1 commit intonew_versionfrom
codex/-formatarg

Conversation

@RAprogramm
Copy link
Owner

Summary

  • add a FormatArgumentsEnv to masterror-derive to cache format arguments, emit prelude bindings, and resolve placeholders before falling back to fields
  • extend placeholder helpers to honor the environment for structs and variants, keeping implicit indices in order and preserving previous error diagnostics when no argument matches
  • normalize positional indices while parsing format args and add regression tests for implicit, explicit, and mixed placeholder usage

Testing

  • cargo +nightly fmt --
  • cargo +1.90.0 clippy -- -D warnings
  • cargo +1.90.0 build --all-targets
  • cargo +1.90.0 test --all
  • cargo +1.90.0 doc --no-deps
  • cargo audit
  • cargo deny check

https://chatgpt.com/codex/tasks/task_e_68cde7465378832bb1a1ac5099816cd7

@RAprogramm RAprogramm merged commit a5ed401 into new_version Sep 20, 2025
1 of 2 checks passed
@RAprogramm RAprogramm deleted the codex/-formatarg branch September 20, 2025 00:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant