From 1de5fdb5babf74f729b008585a8aaf16110bb1fd Mon Sep 17 00:00:00 2001 From: Camille GILLOT Date: Sun, 10 Nov 2019 17:19:08 +0100 Subject: Add StableHashingContextLike to HashStable_Generic derive. --- src/libsyntax/lib.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/libsyntax/lib.rs') 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 {} -- cgit 1.4.1-3-g733a5