diff options
| author | Daniel Henry-Mantilla <daniel.henry.mantilla@gmail.com> | 2022-08-26 14:59:12 +0200 |
|---|---|---|
| committer | Daniel Henry-Mantilla <daniel.henry.mantilla@gmail.com> | 2022-09-05 13:49:37 +0200 |
| commit | cb86c38cdbf29a400dd48ec8450ce71b81c8dd45 (patch) | |
| tree | c7d7a2cff7271c238eff729934fc2c72a3cf769c /compiler/rustc_builtin_macros/src/deriving/decodable.rs | |
| parent | 5b4bd154de6e41d4739914f446349f8201ec3ef9 (diff) | |
| download | rust-cb86c38cdbf29a400dd48ec8450ce71b81c8dd45.tar.gz rust-cb86c38cdbf29a400dd48ec8450ce71b81c8dd45.zip | |
Fix `#[derive(Default)]` on a generic `#[default]` enum adding unnecessary `Default` bounds
Diffstat (limited to 'compiler/rustc_builtin_macros/src/deriving/decodable.rs')
| -rw-r--r-- | compiler/rustc_builtin_macros/src/deriving/decodable.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_builtin_macros/src/deriving/decodable.rs b/compiler/rustc_builtin_macros/src/deriving/decodable.rs index 7174dbbe7ea..d669f616802 100644 --- a/compiler/rustc_builtin_macros/src/deriving/decodable.rs +++ b/compiler/rustc_builtin_macros/src/deriving/decodable.rs @@ -23,6 +23,7 @@ pub fn expand_deriving_rustc_decodable( let trait_def = TraitDef { span, path: Path::new_(vec![krate, sym::Decodable], vec![], PathKind::Global), + skip_path_as_bound: false, additional_bounds: Vec::new(), generics: Bounds::empty(), supports_unions: false, |
