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_ast_pretty/src | |
| parent | 131f0c6df6777800aa884963bdba0739299cd31f (diff) | |
| download | rust-9fe8ae792e4efd59ea37116a44391b4abdd2d7be.tar.gz rust-9fe8ae792e4efd59ea37116a44391b4abdd2d7be.zip | |
Rename `rust_2015` => `is_rust_2015`
Diffstat (limited to 'compiler/rustc_ast_pretty/src')
| -rw-r--r-- | compiler/rustc_ast_pretty/src/pprust/state.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_ast_pretty/src/pprust/state.rs b/compiler/rustc_ast_pretty/src/pprust/state.rs index fa8567eac60..d7767efa984 100644 --- a/compiler/rustc_ast_pretty/src/pprust/state.rs +++ b/compiler/rustc_ast_pretty/src/pprust/state.rs @@ -131,7 +131,7 @@ pub fn print_crate<'a>( // Currently, in Rust 2018 we don't have `extern crate std;` at the crate // root, so this is not needed, and actually breaks things. - if edition.rust_2015() { + if edition.is_rust_2015() { // `#![no_std]` let fake_attr = attr::mk_attr_word(g, ast::AttrStyle::Inner, sym::no_std, DUMMY_SP); s.print_attribute(&fake_attr); |
