Rename rust_2015
=> is_rust_2015
This commit is contained in:
parent
131f0c6df6
commit
9fe8ae792e
11 changed files with 21 additions and 18 deletions
|
@ -2247,7 +2247,7 @@ impl<'a> Parser<'a> {
|
|||
let ext = self.parse_extern(case);
|
||||
|
||||
if let Async::Yes { span, .. } = asyncness {
|
||||
if span.rust_2015() {
|
||||
if span.is_rust_2015() {
|
||||
self.sess.emit_err(AsyncFnIn2015 { span, help: HelpUseLatestEdition::new() });
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue