Skip to content

chore: point at the aliased-import fix in the Rust generator - #63

Merged
Kinflou merged 1 commit into
mainfrom
chore/rust-alias-fix
Oct 13, 2026
Merged

Kinflou merged 1 commit into
mainfrom
chore/rust-alias-fix

Conversation

@Kinflou

@Kinflou Kinflou commented Oct 13, 2026

Copy link
Copy Markdown
Member

Picks up comline-rust#39.

use shared::Shared as Aliased emitted crate::shared::Aliased, but shared
exports only Shared — well-formed Rust naming nothing:

error[E0425]: cannot find type `Aliased` in module `crate::shared`

Any project with an aliased cross-schema import was getting Rust output that
wouldn't build, in both code and lib mode. This is the first release of
the CLI that doesn't.

Found by making the conformance corpus multi-schema
(generation#47) — a
fixture held one schema until then, so the corpus couldn't express a reference
that crosses schemas at all. It surfaced on the corpus's first run.

No CLI code changes; only the generator rev. comline-codegen and
comline-core are untouched, so no wider cascade.

cargo test --all green (29 + 63), fmt clean.

comline-rust#39: `use shared::Shared as Aliased` emitted
`crate::shared::Aliased`, where `shared` exports only `Shared` - well-formed
Rust that names nothing (`error[E0425]`). Any project using an aliased
cross-schema import got output that wouldn't build.

Found by making the conformance corpus multi-schema (generation#47), which
until then held one schema per fixture and so couldn't express a reference
crossing schemas at all.
@Kinflou
Kinflou merged commit 599e44c into main Oct 13, 2026
2 checks passed
@Kinflou
Kinflou deleted the chore/rust-alias-fix branch October 13, 2026 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant