]> git.lizzy.rs Git - rust.git/commitdiff
Fix htmldocck naming
authorChristian Duerr <contact@christianduerr.com>
Thu, 30 Nov 2017 20:43:21 +0000 (21:43 +0100)
committerChristian Duerr <contact@christianduerr.com>
Thu, 30 Nov 2017 20:43:21 +0000 (21:43 +0100)
After renaming the structs and enums the htmldocck strings still
contained the old names. This lead to test failure.

These htmldocck tests have been updated to use the proper names of the
rust structs and traits.

src/test/rustdoc/issue-46380-2.rs

index 93a1ee72013c34af1d8eeafb70f69dd44c621c83..22408d3522a4b4cffc42a893ee0c2e1d1a205c59 100644 (file)
 
 pub trait PublicTrait<T> {}
 
-// @has issue_46380_2/struct.Public.html
+// @has issue_46380_2/struct.PublicStruct.html
 pub struct PublicStruct;
 
-// @!has - '//*[@class="impl"]' 'impl Add<Private> for Public'
+// @!has - '//*[@class="impl"]' 'impl PublicTrait<PrivateStruct> for PublicStruct'
 impl PublicTrait<PrivateStruct> for PublicStruct {}
 
 struct PrivateStruct;