Skip to content

Allow macros to be imported with use instead of #[macro_use] #330

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 22, 2023

Conversation

SimonSapin
Copy link
Member

No description provided.

@@ -1487,7 +1487,7 @@ fn utf16_columns() {
#[test]
fn servo_define_css_keyword_enum() {
macro_rules! define_css_keyword_enum {
(pub enum $name:ident { $($variant:ident = $css:expr,)+ }) => {
(pub enum $name:ident { $($variant:ident = $css:pat,)+ }) => {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is unrelated but avoids a error: expected literal compilation error (likely from a proc macro) with Rust 1.68.2. Maybe the compiler changed how macro_rules and proc-macros interact?

@SimonSapin
Copy link
Member Author

@bors-servo r=jdm

@bors-servo
Copy link
Contributor

📌 Commit 11f6aaf has been approved by jdm

@bors-servo
Copy link
Contributor

⌛ Testing commit 11f6aaf with merge e88763d...

@bors-servo
Copy link
Contributor

☀️ Test successful - checks-github
Approved by: jdm
Pushing e88763d to master...

@bors-servo bors-servo merged commit e88763d into master Apr 22, 2023
@SimonSapin SimonSapin deleted the macro-import branch April 22, 2023 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants