1
Fork 0

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:
bors 2023-11-22 09:29:49 +00:00
commit 5a9e0e8787
43 changed files with 83 additions and 34 deletions

View file

@ -56,7 +56,6 @@ struct LintLevelSets {
}
rustc_index::newtype_index! {
#[custom_encodable] // we don't need encoding
struct LintStackIndex {
const COMMAND_LINE = 0;
}