rust/src/libsyntax_pos
bors 582a4eaee6 Auto merge of #66279 - cjgillot:hashstable, r=Zoxc
Use proc-macro to derive HashStable everywhere

Hello,

A second proc-macro is added to derive HashStable for crates librustc depends on.
This proc-macro `HashStable_Generic` (to bikeshed) allows to decouple code and strip much of librustc's boilerplate.

Still, two implementations `Span` and `TokenKind` require to be placed in librustc.
The latter only depends on the `bug` macro. Advise welcome on how to sever that link.
A trait `StableHasingContextLike` has been introduced at each crate root,
in order to handle those implementations which require librustc's very `StableHashingContext`.

This overall effort allowed to remove the `impl_stable_hash_for` macro.

Each commit passes the `x.py check`.
I still have to double check there was no change in the implementation.
2019-11-25 09:28:59 +00:00
..
analyze_source_file libsyntax_pos: Unconfigure tests during normal build 2019-08-02 01:59:01 +03:00
source_map Move SourceMap to syntax_pos 2019-11-15 08:38:31 -05:00
symbol Remove gensyms 2019-10-15 21:12:05 +01:00
analyze_source_file.rs libsyntax_pos: Unconfigure tests during normal build 2019-08-02 01:59:01 +03:00
caching_source_map_view.rs Move CachingSourceMapView to libsyntax_pos. 2019-11-23 17:57:17 +01:00
Cargo.toml Move SourceMap to syntax_pos 2019-11-15 08:38:31 -05:00
edition.rs HashStable_Generic for libsyntax_pos. 2019-11-17 22:37:13 +01:00
fatal_error.rs Move FatalError to syntax_pos 2019-11-15 08:21:23 -05:00
hygiene.rs Auto merge of #66279 - cjgillot:hashstable, r=Zoxc 2019-11-25 09:28:59 +00:00
lib.rs Implement HashStable for Span in libsyntax_pos. 2019-11-23 18:09:36 +01:00
source_map.rs Retire impl_stable_hash_for_spanned. 2019-11-22 20:01:47 +01:00
span_encoding.rs Increase Span from 4 bytes to 8 bytes. 2019-04-05 12:26:09 +11:00
symbol.rs Auto merge of #66279 - cjgillot:hashstable, r=Zoxc 2019-11-25 09:28:59 +00:00
tests.rs Fix the start/end byte positions in the compiler JSON output 2019-10-21 19:28:29 +03:00