diff options
| author | Maybe Waffle <waffle.lapkin@gmail.com> | 2023-02-01 10:42:20 +0000 |
|---|---|---|
| committer | Maybe Waffle <waffle.lapkin@gmail.com> | 2023-02-02 08:17:13 +0000 |
| commit | 9fe8ae792e4efd59ea37116a44391b4abdd2d7be (patch) | |
| tree | 87560481d759c311965f35b2c9e1cbd6cd70fcf1 /compiler/rustc_parse/src/parser/item.rs | |
| parent | 131f0c6df6777800aa884963bdba0739299cd31f (diff) | |
| download | rust-9fe8ae792e4efd59ea37116a44391b4abdd2d7be.tar.gz rust-9fe8ae792e4efd59ea37116a44391b4abdd2d7be.zip | |
Rename `rust_2015` => `is_rust_2015`
Diffstat (limited to 'compiler/rustc_parse/src/parser/item.rs')
| -rw-r--r-- | compiler/rustc_parse/src/parser/item.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/parser/item.rs b/compiler/rustc_parse/src/parser/item.rs index 81fd084ccb3..628e9d88cf1 100644 --- a/compiler/rustc_parse/src/parser/item.rs +++ b/compiler/rustc_parse/src/parser/item.rs @@ -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() }); } } |
