Skip to content

Commit c97f625

Browse files
committed
follow rustc_ naming convention
1 parent f17e81d commit c97f625

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

compiler/rustc_builtin_macros/src/autodiff.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ pub fn expand(
9595
generics: Generics::default(),
9696
body: Some(d_body),
9797
}));
98-
let mut tmp = P(ast::NormalAttr::from_ident(Ident::with_dummy_span(sym::autodiff_into)));
98+
let mut tmp = P(ast::NormalAttr::from_ident(Ident::with_dummy_span(sym::rustc_autodiff)));
9999
let mut attr: ast::Attribute = ast::Attribute {
100100
kind: ast::AttrKind::Normal(tmp.clone()),
101101
id: ast::AttrId::from_u32(0),

compiler/rustc_codegen_ssa/src/codegen_attrs.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -693,11 +693,11 @@ fn check_link_name_xor_ordinal(
693693
}
694694

695695
fn autodiff_attrs(tcx: TyCtxt<'_>, id: DefId) -> AutoDiffAttrs {
696-
let attrs = tcx.get_attrs(id, sym::autodiff_into);
696+
let attrs = tcx.get_attrs(id, sym::rustc_autodiff);
697697

698698
let attrs = attrs
699699
.into_iter()
700-
.filter(|attr| attr.name_or_empty() == sym::autodiff_into)
700+
.filter(|attr| attr.name_or_empty() == sym::rustc_autodiff)
701701
.collect::<Vec<_>>();
702702

703703
if !attrs.is_empty() {

compiler/rustc_feature/src/builtin_attrs.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -588,8 +588,7 @@ pub const BUILTIN_ATTRIBUTES: &[BuiltinAttribute] = &[
588588
IMPL_DETAIL,
589589
),
590590
rustc_attr!(rustc_proc_macro_decls, Normal, template!(Word), WarnFollowing, INTERNAL_UNSTABLE),
591-
// Autodiff
592-
rustc_attr!(autodiff_into, Normal, template!(Word, List: r#""...""#), DuplicatesOk, INTERNAL_UNSTABLE),
591+
rustc_attr!(rustc_autodiff, Normal, template!(Word, List: r#""...""#), DuplicatesOk, INTERNAL_UNSTABLE),
593592

594593
rustc_attr!(
595594
rustc_macro_transparency, Normal,

compiler/rustc_span/src/symbol.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,6 @@ symbols! {
440440
augmented_assignments,
441441
auto_traits,
442442
autodiff,
443-
autodiff_into,
444443
automatically_derived,
445444
avx,
446445
avx512_target_feature,
@@ -1375,6 +1374,7 @@ symbols! {
13751374
rustc_allow_incoherent_impl,
13761375
rustc_allowed_through_unstable_modules,
13771376
rustc_attrs,
1377+
rustc_autodiff,
13781378
rustc_box,
13791379
rustc_builtin_macro,
13801380
rustc_capture_analysis,

0 commit comments

Comments
 (0)