X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=compiler%2Frustc_builtin_macros%2Fsrc%2Fderiving%2Fdebug.rs;fp=compiler%2Frustc_builtin_macros%2Fsrc%2Fderiving%2Fdebug.rs;h=e8a353b1c8fcc61474ad64cb001971ede5a5b67a;hb=7a4505900db08696071655018e72bad896fb9cb0;hp=74e2597830e7ed27a1fd0fae301052628d9ffb9e;hpb=56bf28d4f4236f19f962868f181b15b174d041c4;p=rust.git diff --git a/compiler/rustc_builtin_macros/src/deriving/debug.rs b/compiler/rustc_builtin_macros/src/deriving/debug.rs index 74e2597830e..e8a353b1c8f 100644 --- a/compiler/rustc_builtin_macros/src/deriving/debug.rs +++ b/compiler/rustc_builtin_macros/src/deriving/debug.rs @@ -153,7 +153,10 @@ fn expr_for_field( let path_debug = cx.path_global(span, cx.std_path(&[sym::fmt, sym::Debug])); let ty_dyn_debug = cx.ty( span, - ast::TyKind::TraitObject(vec![cx.trait_bound(path_debug)], ast::TraitObjectSyntax::Dyn), + ast::TyKind::TraitObject( + vec![cx.trait_bound(path_debug, false)], + ast::TraitObjectSyntax::Dyn, + ), ); let ty_slice = cx.ty( span,