Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

errors: generate typed identifiers in each crate #103042

Merged
merged 3 commits into from
Feb 22, 2023

Commits on Feb 22, 2023

  1. errors: generate typed identifiers in each crate

    Instead of loading the Fluent resources for every crate in
    `rustc_error_messages`, each crate generates typed identifiers for its
    own diagnostics and creates a static which are pulled together in the
    `rustc_driver` crate and provided to the diagnostic emitter.
    
    Signed-off-by: David Wood <david.wood@huawei.com>
    davidtwco committed Feb 22, 2023
    Configuration menu
    Copy the full SHA
    d1fcf61 View commit details
    Browse the repository at this point in the history
  2. errors: fix translation's run-make test

    `run-make/translation` had some targets that weren't listed in `all` and
    thus weren't being tested - the behaviour that should have been being
    tested was basically correct fortunately.
    
    Signed-off-by: David Wood <david.wood@huawei.com>
    davidtwco committed Feb 22, 2023
    Configuration menu
    Copy the full SHA
    a8e3750 View commit details
    Browse the repository at this point in the history
  3. various: translation resources from cg backend

    Extend `CodegenBackend` trait with a function returning the translation
    resources from the codegen backend, which can be added to the complete
    list of resources provided to the emitter.
    
    Signed-off-by: David Wood <david.wood@huawei.com>
    davidtwco committed Feb 22, 2023
    Configuration menu
    Copy the full SHA
    2625518 View commit details
    Browse the repository at this point in the history