about summary refs log tree commit diff
path: root/src/librustdoc/html
diff options
context:
space:
mode:
authorDavid Wood <david@davidtw.co>2018-07-05 22:44:58 +0100
committerDavid Wood <david@davidtw.co>2018-07-05 22:44:58 +0100
commit5ccafa106fe1972158ce5c4dcd36e92df7c2be74 (patch)
treeadd9c1f11a59bdd9223f1408a64d572214379691 /src/librustdoc/html
parent3e59aef385ef6a418f77560458012adc179ee64a (diff)
downloadrust-5ccafa106fe1972158ce5c4dcd36e92df7c2be74.tar.gz
rust-5ccafa106fe1972158ce5c4dcd36e92df7c2be74.zip
Simplified checking for non_exhaustive attribute.
Diffstat (limited to 'src/librustdoc/html')
-rw-r--r--src/librustdoc/html/render.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/html/render.rs b/src/librustdoc/html/render.rs
index a79dad0f820..a13055c25e9 100644
--- a/src/librustdoc/html/render.rs
+++ b/src/librustdoc/html/render.rs
@@ -2264,7 +2264,7 @@ fn document_stability(w: &mut fmt::Formatter, cx: &Context, item: &clean::Item)
 }
 
 fn document_non_exhaustive(w: &mut fmt::Formatter, item: &clean::Item) -> fmt::Result {
-    if item.non_exhaustive {
+    if item.is_non_exhaustive() {
         write!(w, "<div class='non-exhaustive'><div class='stab non-exhaustive'>")?;
         write!(w, "<details><summary><span class=microscope>🔬</span>")?;