Skip to content

Commit b6f6fdb

Browse files
authored
frozen-abi: Remove proc_macro_hygiene featurization (#109)
1 parent 3cf4834 commit b6f6fdb

File tree

6 files changed

+0
-14
lines changed

6 files changed

+0
-14
lines changed

frozen-abi/build.rs

-5
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,6 @@ fn main() {
1717
}
1818
Channel::Dev => {
1919
println!("cargo:rustc-cfg=RUSTC_WITH_SPECIALIZATION");
20-
// See https://github.com/solana-labs/solana/issues/11055
21-
// We may be running the custom `rust-bpf-builder` toolchain,
22-
// which currently needs `#![feature(proc_macro_hygiene)]` to
23-
// be applied.
24-
println!("cargo:rustc-cfg=RUSTC_NEEDS_PROC_MACRO_HYGIENE");
2520
}
2621
}
2722
}

frozen-abi/src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#![allow(incomplete_features)]
22
#![cfg_attr(RUSTC_WITH_SPECIALIZATION, feature(specialization))]
3-
#![cfg_attr(RUSTC_NEEDS_PROC_MACRO_HYGIENE, feature(proc_macro_hygiene))]
43

54
// Allows macro expansion of `use ::solana_frozen_abi::*` to work within this crate
65
extern crate self as solana_frozen_abi;

perf/build.rs

-5
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,6 @@ fn main() {
2727
}
2828
Channel::Dev => {
2929
println!("cargo:rustc-cfg=RUSTC_WITH_SPECIALIZATION");
30-
// See https://github.com/solana-labs/solana/issues/11055
31-
// We may be running the custom `rust-bpf-builder` toolchain,
32-
// which currently needs `#![feature(proc_macro_hygiene)]` to
33-
// be applied.
34-
println!("cargo:rustc-cfg=RUSTC_NEEDS_PROC_MACRO_HYGIENE");
3530
}
3631
}
3732
}

programs/address-lookup-table/src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#![allow(incomplete_features)]
22
#![cfg_attr(RUSTC_WITH_SPECIALIZATION, feature(specialization))]
3-
#![cfg_attr(RUSTC_NEEDS_PROC_MACRO_HYGIENE, feature(proc_macro_hygiene))]
43

54
#[cfg(not(target_os = "solana"))]
65
pub mod processor;

sdk/program/src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,6 @@
465465
466466
#![allow(incomplete_features)]
467467
#![cfg_attr(RUSTC_WITH_SPECIALIZATION, feature(specialization))]
468-
#![cfg_attr(RUSTC_NEEDS_PROC_MACRO_HYGIENE, feature(proc_macro_hygiene))]
469468

470469
// Allows macro expansion of `use ::solana_program::*` to work within this crate
471470
extern crate self as solana_program;

sdk/src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
3232
#![allow(incomplete_features)]
3333
#![cfg_attr(RUSTC_WITH_SPECIALIZATION, feature(specialization))]
34-
#![cfg_attr(RUSTC_NEEDS_PROC_MACRO_HYGIENE, feature(proc_macro_hygiene))]
3534

3635
// Allows macro expansion of `use ::solana_sdk::*` to work within this crate
3736
extern crate self as solana_sdk;

0 commit comments

Comments
 (0)