]> git.lizzy.rs Git - rust.git/blobdiff - src/test/rustdoc/doc-spotlight.rs
Auto merge of #67290 - jonas-schievink:leak-audit, r=KodrAus
[rust.git] / src / test / rustdoc / doc-spotlight.rs
index eb05b261fcc863e034e42fbcc1ff96512b42156d..ddd46c3c2155f8b74a55aa30144381499c3498d3 100644 (file)
@@ -1,13 +1,3 @@
-// Copyright 2017 The Rust Project Developers. See the COPYRIGHT
-// file at the top-level directory of this distribution and at
-// http://rust-lang.org/COPYRIGHT.
-//
-// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
-// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
-// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
-// option. This file may not be copied, modified, or distributed
-// except according to those terms.
-
 #![feature(doc_spotlight)]
 
 pub struct Wrapper<T> {
@@ -19,7 +9,7 @@ impl<T: SomeTrait> SomeTrait for Wrapper<T> {}
 #[doc(spotlight)]
 pub trait SomeTrait {
     // @has doc_spotlight/trait.SomeTrait.html
-    // @has - '//code[@class="spotlight"]' 'impl<T: SomeTrait> SomeTrait for Wrapper<T>'
+    // @has - '//code[@class="content"]' 'impl<T: SomeTrait> SomeTrait for Wrapper<T>'
     fn wrap_me(self) -> Wrapper<Self> where Self: Sized {
         Wrapper {
             inner: self,
@@ -32,15 +22,15 @@ impl SomeTrait for SomeStruct {}
 
 impl SomeStruct {
     // @has doc_spotlight/struct.SomeStruct.html
-    // @has - '//code[@class="spotlight"]' 'impl SomeTrait for SomeStruct'
-    // @has - '//code[@class="spotlight"]' 'impl<T: SomeTrait> SomeTrait for Wrapper<T>'
+    // @has - '//code[@class="content"]' 'impl SomeTrait for SomeStruct'
+    // @has - '//code[@class="content"]' 'impl<T: SomeTrait> SomeTrait for Wrapper<T>'
     pub fn new() -> SomeStruct {
         SomeStruct
     }
 }
 
 // @has doc_spotlight/fn.bare_fn.html
-// @has - '//code[@class="spotlight"]' 'impl SomeTrait for SomeStruct'
+// @has - '//code[@class="content"]' 'impl SomeTrait for SomeStruct'
 pub fn bare_fn() -> SomeStruct {
     SomeStruct
 }