Skip to content
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

Use std matches macro #440

Merged
merged 2 commits into from Mar 27, 2022
Merged

Conversation

MichaelMcDonnell
Copy link
Contributor

The custom matches macro was added before the standard library version was
added. The standard library matches macro was added in Rust 1.42 [1]. The
implementations are slightly different but the documentation is very similar.
Additionally, some of the _tt_as_expr_hack uses were no longer used with this
change.

[1] https://doc.rust-lang.org/std/macro.matches.html

The custom `matches` macro was added before the standard library version was
added. The standard library `matches` macro was added in Rust 1.42 [1]. The
implementations are slightly different but the documentation is very similar.
Additionally, some of the `_tt_as_expr_hack` were no longer used with this
change.

[1] https://doc.rust-lang.org/std/macro.matches.html
@MichaelMcDonnell
Copy link
Contributor Author

MichaelMcDonnell commented Apr 20, 2021

The build failed because it was building with Rust 1.36.0. Is there a reason that Rust 1.36.0 is required? It is from July 4th 2019.

UPDATE1: I've asked in the Zullip chat too https://servo.zulipchat.com/#narrow/stream/263398-general/topic/Rust.201.2E36.2E0.20requirement

@JohnTitor JohnTitor mentioned this pull request Jul 2, 2021
@bors-servo
Copy link
Contributor

☔ The latest upstream changes (presumably #466) made this pull request unmergeable. Please resolve the merge conflicts.

@jdm
Copy link
Member

jdm commented Mar 27, 2022

We're moving to 1.49.0 in #469, so this can merge after that one.

@jdm
Copy link
Member

jdm commented Mar 27, 2022

@bors-servo r+

@bors-servo
Copy link
Contributor

📌 Commit 0510f52 has been approved by jdm

@bors-servo
Copy link
Contributor

⌛ Testing commit 0510f52 with merge 429f239...

@bors-servo
Copy link
Contributor

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

@bors-servo bors-servo merged commit 429f239 into servo:master Mar 27, 2022
@MichaelMcDonnell MichaelMcDonnell deleted the use_std_matches branch March 30, 2022 12:12
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.

None yet

3 participants