rename ast::ViewItemExternMod to ast::ViewItemExternCrate, and clean::ExternMod to clean::ExternCrate

This commit is contained in:
Liigo Zhuang
2014-03-07 15:57:45 +08:00
parent 28e7631d8b
commit 2271860af1
16 changed files with 29 additions and 29 deletions

View File

@@ -960,8 +960,8 @@ fn item_module(w: &mut Writer, cx: &Context,
match (&i1.inner, &i2.inner) {
(&clean::ViewItemItem(ref a), &clean::ViewItemItem(ref b)) => {
match (&a.inner, &b.inner) {
(&clean::ExternMod(..), _) => Less,
(_, &clean::ExternMod(..)) => Greater,
(&clean::ExternCrate(..), _) => Less,
(_, &clean::ExternCrate(..)) => Greater,
_ => idx1.cmp(&idx2),
}
}
@@ -1056,7 +1056,7 @@ fn item_module(w: &mut Writer, cx: &Context,
clean::ViewItemItem(ref item) => {
match item.inner {
clean::ExternMod(ref name, ref src, _) => {
clean::ExternCrate(ref name, ref src, _) => {
try!(write!(w, "<tr><td><code>extern crate {}",
name.as_slice()));
match *src {