@@ -370,7 +370,16 @@ impl Foo {
370
370
#[ rustc_metadata_clean( cfg="cfail2" ) ]
371
371
#[ rustc_metadata_clean( cfg="cfail3" ) ]
372
372
impl Foo {
373
- #[ rustc_clean( cfg="cfail2" , except="Hir,HirBody,TypeckTables" ) ]
373
+ // Warning: Note that `TypeckTables` are coming up clean here.
374
+ // The addition or removal of lifetime parameters that don't
375
+ // appear in the arguments or fn body in any way does not, in
376
+ // fact, affect the `TypeckTables` in any semantic way (at least
377
+ // as of this writing). **However,** altering the order of
378
+ // lowering **can** cause it appear to affect the `TypeckTables`:
379
+ // if we lower generics before the body, then the `HirId` for
380
+ // things in the body will be affected. So if you start to see
381
+ // `TypeckTables` appear dirty, that might be the cause. -nmatsakis
382
+ #[ rustc_clean( cfg="cfail2" , except="Hir,HirBody" ) ]
374
383
#[ rustc_clean( cfg="cfail3" ) ]
375
384
#[ rustc_metadata_clean( cfg="cfail2" ) ]
376
385
#[ rustc_metadata_clean( cfg="cfail3" ) ]
@@ -391,9 +400,18 @@ impl Foo {
391
400
#[ rustc_metadata_clean( cfg="cfail2" ) ]
392
401
#[ rustc_metadata_clean( cfg="cfail3" ) ]
393
402
impl Foo {
403
+ // Warning: Note that `TypeckTables` are coming up clean here.
404
+ // The addition or removal of type parameters that don't appear in
405
+ // the arguments or fn body in any way does not, in fact, affect
406
+ // the `TypeckTables` in any semantic way (at least as of this
407
+ // writing). **However,** altering the order of lowering **can**
408
+ // cause it appear to affect the `TypeckTables`: if we lower
409
+ // generics before the body, then the `HirId` for things in the
410
+ // body will be affected. So if you start to see `TypeckTables`
411
+ // appear dirty, that might be the cause. -nmatsakis
394
412
#[ rustc_clean(
395
413
cfg="cfail2" ,
396
- except="Hir,HirBody,GenericsOfItem,PredicatesOfItem,TypeOfItem,TypeckTables " ,
414
+ except="Hir,HirBody,GenericsOfItem,PredicatesOfItem,TypeOfItem" ,
397
415
) ]
398
416
#[ rustc_clean( cfg="cfail3" ) ]
399
417
#[ rustc_metadata_dirty( cfg="cfail2" ) ]
@@ -439,8 +457,17 @@ impl Foo {
439
457
#[ rustc_metadata_clean( cfg="cfail2" ) ]
440
458
#[ rustc_metadata_clean( cfg="cfail3" ) ]
441
459
impl Foo {
460
+ // Warning: Note that `TypeckTables` are coming up clean here.
461
+ // The addition or removal of bounds that don't appear in the
462
+ // arguments or fn body in any way does not, in fact, affect the
463
+ // `TypeckTables` in any semantic way (at least as of this
464
+ // writing). **However,** altering the order of lowering **can**
465
+ // cause it appear to affect the `TypeckTables`: if we lower
466
+ // generics before the body, then the `HirId` for things in the
467
+ // body will be affected. So if you start to see `TypeckTables`
468
+ // appear dirty, that might be the cause. -nmatsakis
442
469
#[ rustc_clean( cfg="cfail2" , except="Hir,HirBody,GenericsOfItem,PredicatesOfItem,\
443
- TypeOfItem,TypeckTables ") ]
470
+ TypeOfItem") ]
444
471
#[ rustc_clean( cfg="cfail3" ) ]
445
472
#[ rustc_metadata_dirty( cfg="cfail2" ) ]
446
473
#[ rustc_metadata_clean( cfg="cfail3" ) ]
@@ -461,7 +488,16 @@ impl Foo {
461
488
#[ rustc_metadata_clean( cfg="cfail2" ) ]
462
489
#[ rustc_metadata_clean( cfg="cfail3" ) ]
463
490
impl Foo {
464
- #[ rustc_clean( cfg="cfail2" , except="Hir,HirBody,PredicatesOfItem,TypeckTables" ) ]
491
+ // Warning: Note that `TypeckTables` are coming up clean here.
492
+ // The addition or removal of bounds that don't appear in the
493
+ // arguments or fn body in any way does not, in fact, affect the
494
+ // `TypeckTables` in any semantic way (at least as of this
495
+ // writing). **However,** altering the order of lowering **can**
496
+ // cause it appear to affect the `TypeckTables`: if we lower
497
+ // generics before the body, then the `HirId` for things in the
498
+ // body will be affected. So if you start to see `TypeckTables`
499
+ // appear dirty, that might be the cause. -nmatsakis
500
+ #[ rustc_clean( cfg="cfail2" , except="Hir,HirBody,PredicatesOfItem" ) ]
465
501
#[ rustc_clean( cfg="cfail3" ) ]
466
502
#[ rustc_metadata_dirty( cfg="cfail2" ) ]
467
503
#[ rustc_metadata_clean( cfg="cfail3" ) ]
0 commit comments