diff options
| author | David Wood <david@davidtw.co> | 2020-07-16 17:52:23 +0100 |
|---|---|---|
| committer | David Wood <david@davidtw.co> | 2020-07-20 19:35:35 +0100 |
| commit | b1f8bd635696644f86bdb5ea69fb69ec50bc6d9b (patch) | |
| tree | f4c081257834b91b3eb89613bf3507adcf22585f /src/test/ui/polymorphization/too-many-generic-params.rs | |
| parent | 5ce29d3d6f8994a1d9db9b9f8aa076001f7b8d07 (diff) | |
| download | rust-b1f8bd635696644f86bdb5ea69fb69ec50bc6d9b.tar.gz rust-b1f8bd635696644f86bdb5ea69fb69ec50bc6d9b.zip | |
mir: use attribute over `-Z polymorphize-errors`
This commit replaces the `-Z polymorphize-errors` debugging flag with a `#[rustc_polymorphize_error]` attribute for use on functions. Signed-off-by: David Wood <david@davidtw.co>
Diffstat (limited to 'src/test/ui/polymorphization/too-many-generic-params.rs')
| -rw-r--r-- | src/test/ui/polymorphization/too-many-generic-params.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/ui/polymorphization/too-many-generic-params.rs b/src/test/ui/polymorphization/too-many-generic-params.rs index 3bb77a1c1e6..4b296c01908 100644 --- a/src/test/ui/polymorphization/too-many-generic-params.rs +++ b/src/test/ui/polymorphization/too-many-generic-params.rs @@ -1,9 +1,10 @@ // build-pass -// compile-flags: -Zpolymorphize-errors +#![feature(rustc_attrs)] // This test checks that the analysis doesn't panic when there are >64 generic parameters, but // instead considers those parameters used. +#[rustc_polymorphize_error] fn bar<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z, AA, AB, AC, AD, AE, AF, AG, AH, AI, AJ, AK, AL, AM, AN, AO, AP, AQ, AR, AS, AT, AU, AV, AW, AX, AY, AZ, BA, BB, BC, BD, BE, BF, BG, BH, BI, BJ, BK, BL>() |
