提交 8baff541 编写于 作者: S Sebastien Martini

Fix deprecate warning "extern crate ... as ..."

Its arguments were inverted.
上级 1242772c
......@@ -4780,7 +4780,7 @@ fn parse_item_extern_crate(&mut self,
self.span_warn(span,
format!("this extern crate syntax is deprecated. \
Use: extern crate \"{}\" as {};",
the_ident.as_str(), path.ref0().get() ).as_slice()
path.ref0().get(), the_ident.as_str() ).as_slice()
);
Some(path)
} else {None};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册