Skip to content

Commit 67ba23e

Browse files
committed
Auto merge of #134381 - jdonszelmann:move-attribute-types, r=oli-obk
Split up attribute parsing code and move data types to `rustc_attr_data_structures` This change renames `rustc_attr` to `rustc_attr_parsing`, and splits up the parsing code. At the same time, all the data types used move to `rustc_attr_data_structures`. This is in preparation of also having a third crate: `rustc_attr_validation` I initially envisioned this as two separate PRs, but I think doing it in one go reduces the number of ways others would have to rebase their changes on this. However, I can still split them. r? `@oli-obk` (we already discussed how this is a first step in a larger plan) For a more detailed plan on how attributes are going to change, see rust-lang/rust#131229 Edit: this looks like a giant PR, but the changes are actually rather trivial. Each commit is reviewable on its own, and mostly moves code around. No new logic is added.
2 parents 805d627 + 7001479 commit 67ba23e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ extern crate tracing;
5858
extern crate rustc_abi;
5959
extern crate rustc_apfloat;
6060
extern crate rustc_ast;
61-
extern crate rustc_attr;
61+
extern crate rustc_attr_parsing;
6262
extern crate rustc_const_eval;
6363
extern crate rustc_data_structures;
6464
extern crate rustc_errors;

src/machine.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use std::{fmt, process};
1111
use rand::rngs::StdRng;
1212
use rand::{Rng, SeedableRng};
1313
use rustc_abi::{Align, ExternAbi, Size};
14-
use rustc_attr::InlineAttr;
14+
use rustc_attr_parsing::InlineAttr;
1515
use rustc_data_structures::fx::{FxHashMap, FxHashSet};
1616
#[allow(unused)]
1717
use rustc_data_structures::static_assert_size;

0 commit comments

Comments
 (0)