Rename rust_2015 => is_rust_2015

This commit is contained in:
Maybe Waffle 2023-02-01 10:42:20 +00:00
parent 131f0c6df6
commit 9fe8ae792e
11 changed files with 21 additions and 18 deletions

View file

@ -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);