Auto merge of #118125 - nnethercote:custom_encodable, r=compiler-errors
Make some `newtype_index!` derived impls opt-in instead of opt-out Opt-in is the standard Rust way of doing things, and avoids some unnecessary dependencies on the `rustc_serialize` crate. r? `@lcnr`
This commit is contained in:
commit
5a9e0e8787
43 changed files with 83 additions and 34 deletions
|
@ -56,7 +56,6 @@ struct LintLevelSets {
|
|||
}
|
||||
|
||||
rustc_index::newtype_index! {
|
||||
#[custom_encodable] // we don't need encoding
|
||||
struct LintStackIndex {
|
||||
const COMMAND_LINE = 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue