diff options
| author | David Wood <david@davidtw.co> | 2019-10-05 16:55:58 +0100 |
|---|---|---|
| committer | David Wood <david@davidtw.co> | 2019-10-08 18:46:24 +0100 |
| commit | ccbf2b76a6ca8ff3ca94e1ff9858089e67f79c04 (patch) | |
| tree | 478bf47fa985e251e40447d86479ab0930d3ddd7 /src/test/incremental/thinlto | |
| parent | 7870050796e5904a0fc85ecbe6fa6dde1cfe0c91 (diff) | |
| download | rust-ccbf2b76a6ca8ff3ca94e1ff9858089e67f79c04.tar.gz rust-ccbf2b76a6ca8ff3ca94e1ff9858089e67f79c04.zip | |
resolve: prohibit foreign statics w/ generics
This commit modifies resolve to disallow foreign statics that use parent generics. `improper_ctypes` is not written to support type parameters, as these are normally disallowed before the lint is run. Thus, type parameters in foreign statics must be prohibited before the lint. The only other case where this *could* have occured is in functions, but typeck prohibits this with a "foreign items may not have type parameters" error - a similar error did not exist for statics, because statics cannot have type parameters, but they can use any type parameters that are in scope (which isn't the case for functions). Signed-off-by: David Wood <david@davidtw.co>
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions
