]> git.lizzy.rs Git - rust.git/commitdiff
Fix comments of toogeneris test
authorNgo Iok Ui <wusyong9104@gmail.com>
Sat, 21 Nov 2020 05:47:09 +0000 (13:47 +0800)
committerNgo Iok Ui <wusyong9104@gmail.com>
Sat, 21 Nov 2020 05:47:09 +0000 (13:47 +0800)
src/test/ui/consts/issue-79137-toogeneric.rs
src/test/ui/consts/issue-79137-toogeneric.stderr

index b2c62099de5623a0dbf71ce5f5cf6636a0ac3a1f..456035458cfc562945722ec16509d346a650bd65 100644 (file)
@@ -1,6 +1,4 @@
-// The instrinsic call for variant count should exhaustively match on `tp_ty` and forbid
-// `ty::Projection`, `ty::Opaque`, `ty::Param`, `ty::Bound`, `ty::Placeholder` and `ty::Infer`
-// variant. This test checks that it will fail if it's too generic.
+// Test that `variant_count` only gets evaluated once the type is concrete enough.
 
 #![feature(variant_count)]
 
index 945bfa452c70c14d3148fd3765fe364c4e11bc2b..579e6aa09bdbd34a250b7a5a8eee3c9c07b36a5a 100644 (file)
@@ -1,11 +1,11 @@
 error: constant pattern depends on a generic parameter
-  --> $DIR/issue-79137-toogeneric.rs:14:43
+  --> $DIR/issue-79137-toogeneric.rs:12:43
    |
 LL |     matches!(GetVariantCount::<T>::VALUE, GetVariantCount::<T>::VALUE)
    |                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
 error: constant pattern depends on a generic parameter
-  --> $DIR/issue-79137-toogeneric.rs:14:43
+  --> $DIR/issue-79137-toogeneric.rs:12:43
    |
 LL |     matches!(GetVariantCount::<T>::VALUE, GetVariantCount::<T>::VALUE)
    |                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^