diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2019-11-10 17:19:08 +0100 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2019-11-22 19:56:20 +0100 |
| commit | 1de5fdb5babf74f729b008585a8aaf16110bb1fd (patch) | |
| tree | 8e1f1b6f69cf4e20a435c1b53dab59803dee8406 /src/libsyntax | |
| parent | 3e969e070fcb0d8fab5d2c812edad12490fe8c1d (diff) | |
| download | rust-1de5fdb5babf74f729b008585a8aaf16110bb1fd.tar.gz rust-1de5fdb5babf74f729b008585a8aaf16110bb1fd.zip | |
Add StableHashingContextLike to HashStable_Generic derive.
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/lib.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libsyntax/lib.rs b/src/libsyntax/lib.rs index e3eca75dfe7..8f091c06b4b 100644 --- a/src/libsyntax/lib.rs +++ b/src/libsyntax/lib.rs @@ -110,3 +110,8 @@ pub mod print { } pub mod early_buffered_lints; + +/// Requirements for a `StableHashingContext` to be used in this crate. +/// This is a hack to allow using the `HashStable_Generic` derive macro +/// instead of implementing everything in librustc. +pub trait StableHashingContextLike {} |
