about summary refs log tree commit diff
path: root/src/test/rustdoc
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2016-07-13 16:27:30 -0700
committerGitHub <noreply@github.com>2016-07-13 16:27:30 -0700
commit3dbbe2f716a09246939ad371125617c5526fd3fd (patch)
treebd9ab3524a8a84dd7252b1a8df3480ef92f242dc /src/test/rustdoc
parentdb71987ee1198be60fef3e361ad1ce59a70cd7f7 (diff)
parent9d33ce58b104f1f0e29a69b30c6b4353f1e28c52 (diff)
downloadrust-3dbbe2f716a09246939ad371125617c5526fd3fd.tar.gz
rust-3dbbe2f716a09246939ad371125617c5526fd3fd.zip
Auto merge of #34684 - oli-obk:eval_rustdoc_array_len, r=alexcrichton
evaluate the array length of fixed size array types in rustdoc

mitgates #34579

to fix it we'd need an expression simplifier.

r? @steveklabnik

cc @Osspial
Diffstat (limited to 'src/test/rustdoc')
-rw-r--r--src/test/rustdoc/issue-33302.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/rustdoc/issue-33302.rs b/src/test/rustdoc/issue-33302.rs
index b9188e8a4e9..c6da6b0575b 100644
--- a/src/test/rustdoc/issue-33302.rs
+++ b/src/test/rustdoc/issue-33302.rs
@@ -34,8 +34,8 @@ macro_rules! make {
         }
 
         // @has issue_33302/struct.S.html \
-        //        '//h3[@class="impl"]' 'impl T<[i32; 4 * 4]> for S'
-        // @has - '//*[@id="associatedconstant.C"]' 'const C: [i32; 4 * 4] = [0; 4 * 4]'
+        //        '//h3[@class="impl"]' 'impl T<[i32; 16]> for S'
+        // @has - '//*[@id="associatedconstant.C"]' 'const C: [i32; 16] = [0; 4 * 4]'
         // @has - '//*[@id="associatedconstant.D"]' 'const D: i32 = 4 * 4'
         impl T<[i32; ($n * $n)]> for S {
             const C: [i32; ($n * $n)] = [0; ($n * $n)];