@@ -1876,9 +1876,10 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
1876
1876
let _ = self . infcx ( ) . commit_if_ok ( |_: & infer:: CombinedSnapshot | {
1877
1877
for & ( ref ty, ref default) in & has_user_default {
1878
1878
let default = default. clone ( ) ;
1879
+ let normalized_default = self . inh . normalize_associated_types_in ( codemap:: DUMMY_SP , 0 , & default. ty ) ;
1879
1880
match infer:: mk_eqty ( self . infcx ( ) , false ,
1880
1881
infer:: Misc ( codemap:: DUMMY_SP ) , // default.origin_span),
1881
- ty, default . ty ) {
1882
+ ty, normalized_default ) {
1882
1883
Ok ( ( ) ) => { }
1883
1884
Err ( _) => {
1884
1885
conflicts. push ( ( * ty, default) ) ;
@@ -1975,9 +1976,10 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
1975
1976
// reporting for more then one conflict.
1976
1977
for & ( ref ty, ref default) in tys_with_defaults {
1977
1978
let default = default. clone ( ) ;
1979
+ let normalized_default = self . inh . normalize_associated_types_in ( codemap:: DUMMY_SP , 0 , & default. ty ) ;
1978
1980
match infer:: mk_eqty ( self . infcx ( ) , false ,
1979
1981
infer:: Misc ( codemap:: DUMMY_SP ) , // default.origin_span),
1980
- ty, default . ty ) {
1982
+ ty, normalized_default ) {
1981
1983
Ok ( ( ) ) => { }
1982
1984
Err ( _) => {
1983
1985
result = Some ( default) ;
0 commit comments