rust-lang / rust-lang/rust

rustdoc-json-types: Use different repr for Constant in Item and Type position

Open
#125,974 3 comments 0 reactions 1 assignee View on GitHub

@aDotInTheVoid is already working on this.

Since Jun 4, 2024.

A-rustdoc-json T-rustdoc
Dominant language
Rust
Stars
119k
Forks
16.1k
PR merge metrics
PR metrics pending

Description

This is fine for now, but once this lands, I'd like to look into using seperate type for Item::Constant and Term::Constant/GenericArgKind::Constant, so this can be flattened again. But this shoudn't block this PR.

Originally posted by @aDotInTheVoid in https://github.com/rust-lang/rust/pull/125958#discussion_r1625934878

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.