File tree Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Original file line number Diff line number Diff line change @@ -18,8 +18,6 @@ mod run;
18
18
fn python_impl ( input : TokenStream ) -> Result < TokenStream , TokenStream > {
19
19
let tokens = input. clone ( ) ;
20
20
21
- check_no_attribute ( input. clone ( ) ) ?;
22
-
23
21
let filename = Span :: call_site ( ) . file ( ) ;
24
22
25
23
let mut x = EmbedPython :: new ( ) ;
@@ -90,22 +88,6 @@ fn ct_python_impl(input: TokenStream) -> Result<TokenStream, TokenStream> {
90
88
} )
91
89
}
92
90
93
- fn check_no_attribute ( input : TokenStream ) -> Result < ( ) , TokenStream > {
94
- let mut input = input. into_iter ( ) ;
95
- if let Some ( token) = input. next ( ) {
96
- if token. to_string ( ) == "#"
97
- && input. next ( ) . map_or ( false , |t| t. to_string ( ) == "!" )
98
- && input. next ( ) . map_or ( false , |t| t. to_string ( ) . starts_with ( '[' ) )
99
- {
100
- return Err ( quote ! ( compile_error! {
101
- "Attributes in python!{} are no longer supported. \
102
- Use context.run(python!{..}) to use a context.",
103
- } ) ) ;
104
- }
105
- }
106
- Ok ( ( ) )
107
- }
108
-
109
91
#[ doc( hidden) ]
110
92
#[ proc_macro]
111
93
pub fn python ( input : TokenStream1 ) -> TokenStream1 {
You can’t perform that action at this time.
0 commit comments