diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-10-08 23:31:22 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-10-08 23:31:22 +0200 |
| commit | 9b989ea298dff9ba1091a54a25fcce51c529471d (patch) | |
| tree | ed25ea96d258a9c43fa49c7e7012378c2b33373d /src/libstd/sys/unix/stack_overflow.rs | |
| parent | 3f2ae44ba43a9b591f86c1a5d9e0b8b720cfa20a (diff) | |
| parent | ccbf2b76a6ca8ff3ca94e1ff9858089e67f79c04 (diff) | |
| download | rust-9b989ea298dff9ba1091a54a25fcce51c529471d.tar.gz rust-9b989ea298dff9ba1091a54a25fcce51c529471d.zip | |
Rollup merge of #65133 - davidtwco:issue-65035-static-with-generic-in-foreign-mod, r=petrochenkov
typeck: prohibit foreign statics w/ generics Fixes #65035 and fixes #65025. This PR modifies resolve to disallow foreign statics that have 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).
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
