Skip to content

Use underscore consts on Rust 1.37+#1827

Merged
dtolnay merged 1 commit intoserde-rs:masterfrom
taiki-e:underscore_consts
Jun 19, 2020
Merged

Use underscore consts on Rust 1.37+#1827
dtolnay merged 1 commit intoserde-rs:masterfrom
taiki-e:underscore_consts

Conversation

@taiki-e
Copy link
Copy Markdown
Contributor

@taiki-e taiki-e commented Jun 7, 2020

Fixes #1683

The error message for the code mentioned in rust-lang/rust#46991 is now as follows:

error[E0277]: the trait bound `S: _::_serde::Serialize` is not satisfied
  --> src/main.rs:14:5
     |
14   |     serde_json::to_string(&S);
     |                           ^^ the trait `_::_serde::Serialize` is not implemented for `S`
     | 

@taiki-e taiki-e force-pushed the underscore_consts branch from 5f9fcff to b193b2d Compare June 7, 2020 05:41
@taiki-e taiki-e force-pushed the underscore_consts branch from b193b2d to a50e1c2 Compare June 19, 2020 06:56
Copy link
Copy Markdown
Member

@dtolnay dtolnay left a comment

Choose a reason for hiding this comment

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

Thanks!

@dtolnay dtolnay merged commit b3ff7e4 into serde-rs:master Jun 19, 2020
@taiki-e taiki-e deleted the underscore_consts branch June 19, 2020 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Use underscore consts on rustc 1.37+

2 participants