Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Replace rust_macro test to work on nightly #511

Merged
merged 1 commit into from
Jul 2, 2021
Merged

Replace rust_macro test to work on nightly #511

merged 1 commit into from
Jul 2, 2021

Conversation

Kijewski
Copy link
Member

@Kijewski Kijewski commented Jul 2, 2021

The current rust_test uses stringify!(). The documentation gives us
the warning:

Note that the expanded results of the input tokens may change in the
future. You should be careful if you rely on the output.

In the current nightly rust the result was indeed changed, so the test
not fails.

This PR replaces the test with another macro, that does not depend on
stringify!().

Closes issue #504.

@vallentin
Copy link
Collaborator

vallentin commented Jul 2, 2021

I'm sick and likely somewhat unavailable for the foreseeable future. However, I just wanted to chime in, and say thanks once again :)

Sadly, an error message has changed, so now there's still another test failing :(

@djc
Copy link
Collaborator

djc commented Jul 2, 2021

@vallentin hope you get well soon, get some rest!

@Kijewski
Copy link
Member Author

Kijewski commented Jul 2, 2021

Get well soon!

@Kijewski
Copy link
Member Author

Kijewski commented Jul 2, 2021

The next broken test is because of rust-lang/rust#82069. It would be possible to utilize rustversion select the right failure?

The current rust_test uses `stringify!()`. The documentation gives us
the warning:

> Note that the expanded results of the input tokens may change in the
> future. You should be careful if you rely on the output.

In the current nightly rust the result was indeed changed, so the test
not fails.

This PR replaces the test with another macro, that does not depend on
`stringify!()`.

Closes issue #504.
@djc
Copy link
Collaborator

djc commented Jul 2, 2021

Ahhh, green tests. Thanks!

@djc djc merged commit e9badca into askama-rs:main Jul 2, 2021
@Kijewski Kijewski deleted the pr-nightly-tokentree branch July 2, 2021 14:38
@Kijewski
Copy link
Member Author

Kijewski commented Jul 2, 2021

You're welcome! :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants