diff options
| author | Alex Burka <aburka@seas.upenn.edu> | 2016-03-08 13:24:28 -0500 |
|---|---|---|
| committer | Alex Burka <aburka@seas.upenn.edu> | 2016-03-14 16:59:55 -0400 |
| commit | 8355389e3e9d299d90ea78197c0e5b6c2162a957 (patch) | |
| tree | 6f0853fad3dbb342f9c3801d20882f19145be12e /src/libstd/sys/unix/stack_overflow.rs | |
| parent | fd4fa62885d7b7319a7cf88e834fa1016ac9ae5c (diff) | |
| download | rust-8355389e3e9d299d90ea78197c0e5b6c2162a957.tar.gz rust-8355389e3e9d299d90ea78197c0e5b6c2162a957.zip | |
derive: improve hygiene for type parameters (see #2810)
When deriving Hash, RustcEncodable and RustcDecodable, the syntax extension needs a type parameter to use in the inner method. They used to use __H, __S and __D respectively. If this conflicts with a type parameter already declared for the item, bad times result (see the test). There is no hygiene for type parameters, but this commit introduces a better heuristic by concatenating the names of all extant type parameters (and prepending __H).
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
