Skip to content

Commit 1152a2c

Browse files
committed
split up context.rs
1 parent 484884a commit 1152a2c

File tree

9 files changed

+367
-337
lines changed

9 files changed

+367
-337
lines changed

compiler/rustc_attr_parsing/src/attributes/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
//! Specifically, you might not care about managing the state of your [`AttributeParser`]
88
//! state machine yourself. In this case you can choose to implement:
99
//!
10-
//! - [`SingleAttributeParser`]: makes it easy to implement an attribute which should error if it
10+
//! - [`SingleAttributeParser`](crate::attributes::SingleAttributeParser): makes it easy to implement an attribute which should error if it
1111
//! appears more than once in a list of attributes
12-
//! - [`CombineAttributeParser`]: makes it easy to implement an attribute which should combine the
12+
//! - [`CombineAttributeParser`](crate::attributes::CombineAttributeParser): makes it easy to implement an attribute which should combine the
1313
//! contents of attributes, if an attribute appear multiple times in a list
1414
//!
1515
//! Attributes should be added to `crate::context::ATTRIBUTE_PARSERS` to be parsed.
@@ -286,7 +286,7 @@ impl<T: NoArgsAttributeParser<S>, S: Stage> SingleAttributeParser<S> for Without
286286
}
287287
}
288288

289-
pub(super) type ConvertFn<E> = fn(ThinVec<E>, Span) -> AttributeKind;
289+
type ConvertFn<E> = fn(ThinVec<E>, Span) -> AttributeKind;
290290

291291
/// Alternative to [`AttributeParser`] that automatically handles state management.
292292
/// If multiple attributes appear on an element, combines the values of each into a

compiler/rustc_attr_parsing/src/attributes/must_use.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
use super::prelude::*;
1+
use rustc_errors::DiagArgValue;
22

3+
use super::prelude::*;
34
use crate::session_diagnostics::IllFormedAttributeInputLint;
4-
use rustc_errors::DiagArgValue;
55

66
pub(crate) struct MustUseParser;
77

0 commit comments

Comments
 (0)