rust/src/test/compile-fail
bors 99e3fca27d Auto merge of #54906 - qnighy:fix-issue-50452, r=nikomatsakis
Reattach all grandchildren when constructing specialization graph.

Specialization graphs are constructed by incrementally adding impls in the order of declaration. If the impl being added has its specializations in the graph already, they should be reattached under the impl. However, the current implementation only reattaches the one found first. Therefore, in the following specialization graph,

```
  Tr1
   |
   I3
  /  \
 I1  I2
```

If `I1`, `I2`, and `I3` are declared in this order, the compiler mistakenly constructs the following graph:

```
  Tr1
  /  \
 I3  I2
  |
 I1
```

This patch fixes the reattach procedure to include all specializing grandchildren-to-be.

Fixes #50452.
2018-11-15 09:51:53 +00:00
..
auxiliary stabilize #[panic_handler] 2018-09-07 13:27:30 +02:00
specialization Reattach all grandchildren when constructing specialization graph. 2018-10-08 21:39:46 +09:00
asm-src-loc-codegen-units.rs Moved problematic tests on armhf-gnu back to compile-fail. 2018-08-14 11:12:12 +02:00
asm-src-loc.rs Moved problematic tests on armhf-gnu back to compile-fail. 2018-08-14 11:12:12 +02:00
coerce-unsafe-to-closure.rs Moved tests back to compile-test if they don't work on ui. 2018-08-14 11:12:11 +02:00
const-err3.rs Moved problematic tests on x86_64-gnu-nopt back to compile-fail. 2018-08-14 11:12:13 +02:00
const-fn-error.rs Rebase fallout 2018-10-25 17:20:39 +02:00
crateresolve1.rs Moved problematic tests on Windows back to compile-fail. 2018-08-14 11:12:11 +02:00
empty-extern-arg.rs Moved problematic tests on i586-unknown-linux-gnu back to compile-fail. 2018-08-14 11:12:12 +02:00
issue-10755.rs Moved problematic tests on Windows back to compile-fail. 2018-08-14 11:12:11 +02:00
issue-23595-1.rs Normalize tests for i686 Windows. 2018-08-14 11:12:11 +02:00
issue-43733-2.rs Stabilize min_const_fn 2018-10-05 10:36:14 +02:00
issue-46209-private-enum-variant-reexport.rs Moved tests back to compile-test if they don't work on ui. 2018-08-14 11:12:11 +02:00
issue-52443.rs Rebase fallout 2018-10-25 17:20:39 +02:00
meta-expected-error-wrong-rev.rs Moved tests back to compile-test if they don't work on ui. 2018-08-14 11:12:11 +02:00
nolink-with-link-args.rs Moved problematic tests on Windows back to compile-fail. 2018-08-14 11:12:11 +02:00
not-utf8.bin Moved problematic tests on Windows back to compile-fail. 2018-08-14 11:12:11 +02:00
not-utf8.rs Moved problematic tests on Windows back to compile-fail. 2018-08-14 11:12:11 +02:00
panic-handler-missing.rs add #[panic_handler]; deprecate #[panic_implementation] 2018-08-23 20:58:55 +02:00
panic-handler-twice.rs stabilize #[panic_handler] 2018-09-07 13:27:30 +02:00
two-panic-runtimes.rs Moved problematic tests on wasm32-unknown back to compile-fail. 2018-08-14 11:12:12 +02:00
want-abort-got-unwind.rs Moved problematic tests on dist-x86_64-musl back to compile-fail. 2018-08-14 11:12:12 +02:00
want-abort-got-unwind2.rs Moved problematic tests on dist-x86_64-musl back to compile-fail. 2018-08-14 11:12:12 +02:00
weak-lang-item.rs add #[panic_handler]; deprecate #[panic_implementation] 2018-08-23 20:58:55 +02:00