]> git.lizzy.rs Git - rust.git/commitdiff
Fix invalid linker position
authorGuillaume Gomez <guillaume1.gomez@gmail.com>
Mon, 28 Aug 2017 20:40:09 +0000 (22:40 +0200)
committerGuillaume Gomez <guillaume1.gomez@gmail.com>
Mon, 28 Aug 2017 20:40:09 +0000 (22:40 +0200)
src/librustdoc/html/format.rs
src/librustdoc/html/render.rs
src/librustdoc/html/static/rustdoc.css

index 988890ffedcdd92d0e0cbb15d5e8645d558ce371..10a3878073e97534da24dbe9268891d2a3f28d64 100644 (file)
@@ -228,7 +228,7 @@ fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
         }
 
         if end_newline {
-            //add a space so stripping <br> tags and breaking spaces still renders properly
+            // add a space so stripping <br> tags and breaking spaces still renders properly
             if f.alternate() {
                 clause.push(' ');
             } else {
index 5457f69cb6dab02bf9c3d420a83f94533909e4c7..5b8c7503a791d83d15e46c7ed153afe4011c2a76 100644 (file)
@@ -1523,8 +1523,7 @@ fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
                 } else {
                     write!(fmt, "Module ")?;
                 },
-            clean::FunctionItem(..) | clean::ForeignFunctionItem(..) =>
-                write!(fmt, "Function ")?,
+            clean::FunctionItem(..) | clean::ForeignFunctionItem(..) => write!(fmt, "Function ")?,
             clean::TraitItem(..) => write!(fmt, "Trait ")?,
             clean::StructItem(..) => write!(fmt, "Struct ")?,
             clean::UnionItem(..) => write!(fmt, "Union ")?,
@@ -1532,8 +1531,7 @@ fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
             clean::TypedefItem(..) => write!(fmt, "Type Definition ")?,
             clean::MacroItem(..) => write!(fmt, "Macro ")?,
             clean::PrimitiveItem(..) => write!(fmt, "Primitive Type ")?,
-            clean::StaticItem(..) | clean::ForeignStaticItem(..) =>
-                write!(fmt, "Static ")?,
+            clean::StaticItem(..) | clean::ForeignStaticItem(..) => write!(fmt, "Static ")?,
             clean::ConstantItem(..) => write!(fmt, "Constant ")?,
             _ => {
                 // We don't generate pages for any other type.
index 4a3286b421ae9e40f87be7297b217da86639ee2c..312dfce8d39c27215ca9b31cdfddd8fd7ef1d2cf 100644 (file)
@@ -329,6 +329,10 @@ h4 > code, h3 > code, .invisible > code {
        display: inline-block;
 }
 
+.in-band > code {
+       display: inline-block;
+}
+
 #main { position: relative; }
 #main > .since {
        top: inherit;
@@ -447,7 +451,8 @@ a {
 }
 
 .in-band:hover > .anchor {
-       display: initial;
+       display: inline-block;
+       position: absolute;
 }
 .anchor {
        display: none;