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
djc merged 1 commit into
askama-rs:mainfrom
Kijewski:pr-nightly-tokentree
Jul 2, 2021
Merged

djc merged 1 commit into
askama-rs:mainfrom
Kijewski:pr-nightly-tokentree

Conversation

@Kijewski

@Kijewski Kijewski commented Jul 2, 2021

Copy link
Copy Markdown
Member

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

vallentin commented Jul 2, 2021 •

Copy link
Copy Markdown
Collaborator

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

djc commented Jul 2, 2021

Copy link
Copy Markdown
Collaborator

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

@Kijewski

Kijewski commented Jul 2, 2021

Copy link
Copy Markdown
Member Author

Get well soon!

@Kijewski

Kijewski commented Jul 2, 2021

Copy link
Copy Markdown
Member Author

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

djc commented Jul 2, 2021

Copy link
Copy Markdown
Collaborator

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

Kijewski commented Jul 2, 2021

Copy link
Copy Markdown
Member Author

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