Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Explain all the stable hashing shenanigans #203

Open
Labels
A-incr-compArea: incremental compilation C-enhancementCategory: enhancement E-help-wantedCall for participation: extra help is wanted E-mediumDifficulty: might require some prior knowledge or code reading E-needs-writeupCall for participation: discussion can be written up without much research required T-compilerRelevant to compiler team
@RalfJung

Description

So rustc is full of these impl_stable_hash_for. What are these for? I originally thought that would be for FxHashMap, but that seems to be wrong (I still need to derive(Hash) to use FxHashMap). So now I am just confused. It would be great if the guide could explain that.

@eddyb said "incremental" but that on its own does not explain much of anything -- why is Hash not good enough? Why do I need a tcx to compute a "stable hash"?

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-incr-compArea: incremental compilation C-enhancementCategory: enhancement E-help-wantedCall for participation: extra help is wanted E-mediumDifficulty: might require some prior knowledge or code reading E-needs-writeupCall for participation: discussion can be written up without much research required T-compilerRelevant to compiler team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /