Move placeholder error handling to before region inference by amandasystems · Pull Request #142623 · rust-lang/rust (original) (raw)

failures:

---- [ui] tests/ui/associated-types/associated-types-eq-hr.rs stdout ----

error: 5 diagnostics expected in test file but not reported in JSON output
tests/ui/associated-types/associated-types-eq-hr.rs:96:5: ERROR: not general enough
  reported with different kind: NOTE
  reported with different kind: NOTE
  reported with different kind: NOTE on different line: tests/ui/associated-types/associated-types-eq-hr.rs:104:5
  reported with different kind: NOTE on different line: tests/ui/associated-types/associated-types-eq-hr.rs:116:5
tests/ui/associated-types/associated-types-eq-hr.rs:96:5: ERROR: not general enough
  reported with different kind: NOTE
  reported with different kind: NOTE
  reported with different kind: NOTE on different line: tests/ui/associated-types/associated-types-eq-hr.rs:104:5
  reported with different kind: NOTE on different line: tests/ui/associated-types/associated-types-eq-hr.rs:116:5
tests/ui/associated-types/associated-types-eq-hr.rs:104:5: ERROR: not general enough
  reported with different kind: NOTE on different line: tests/ui/associated-types/associated-types-eq-hr.rs:96:5
  reported with different kind: NOTE on different line: tests/ui/associated-types/associated-types-eq-hr.rs:96:5
  reported with different kind: NOTE
  reported with different kind: NOTE on different line: tests/ui/associated-types/associated-types-eq-hr.rs:116:5
tests/ui/associated-types/associated-types-eq-hr.rs:104:5: ERROR: mismatched types
  reported with different kind: NOTE with different message: implementation of `TheTrait` is not general enough
  reported with different kind: NOTE with different message: `Tuple` must implement `TheTrait<(&'0 isize, &'1 isize)>`, for any two lifetimes `'0` and `'1`...
  reported with different kind: NOTE with different message: ...but it actually implements `TheTrait<(&'2 isize, &'2 isize)>`, for some specific lifetime `'2`
  reported with different kind: NOTE with different message: one type is more general than the other
  reported with different kind: NOTE with different message: expected reference `&'x _`
  reported with different kind: NOTE with different message:    found reference `&'y _`
tests/ui/associated-types/associated-types-eq-hr.rs:116:5: ERROR: not general enough
  reported with different kind: NOTE on different line: tests/ui/associated-types/associated-types-eq-hr.rs:96:5
  reported with different kind: NOTE on different line: tests/ui/associated-types/associated-types-eq-hr.rs:96:5
  reported with different kind: NOTE on different line: tests/ui/associated-types/associated-types-eq-hr.rs:104:5
  reported with different kind: NOTE

thread '[ui] tests/ui/associated-types/associated-types-eq-hr.rs' panicked at src/tools/compiletest/src/runtest.rs:923:13:
errors differ from expected
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/associated-types/associated-types-eq-hr.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2" "--target=aarch64-unknown-linux-gnu" "--check-cfg" "cfg(test,FALSE)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/associated-types/associated-types-eq-hr" "-A" "unused" "-W" "unused_attributes" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/aarch64-unknown-linux-gnu/native/rust-test-helpers"

stack backtrace:
   5: __rustc::rust_begin_unwind
             at /rustc/3b4dd9bf1410f8da6329baa36ce5e37673cbbd1f/library/std/src/panicking.rs:698:5
   6: core::panicking::panic_fmt
---

thread '[ui] tests/ui/borrowck/opaque-types-patterns-subtyping-ice-104779.rs' panicked at src/tools/compiletest/src/runtest.rs:923:13:
errors differ from expected
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/borrowck/opaque-types-patterns-subtyping-ice-104779.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2" "--target=aarch64-unknown-linux-gnu" "--check-cfg" "cfg(test,FALSE)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/borrowck/opaque-types-patterns-subtyping-ice-104779" "-A" "unused" "-W" "unused_attributes" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/aarch64-unknown-linux-gnu/native/rust-test-helpers"

stack backtrace:
   5: __rustc::rust_begin_unwind
             at /rustc/3b4dd9bf1410f8da6329baa36ce5e37673cbbd1f/library/std/src/panicking.rs:698:5
   6: core::panicking::panic_fmt
---
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
---- [ui] tests/ui/borrowck/opaque-types-patterns-subtyping-ice-104779.rs stdout end ----
---- [ui] tests/ui/higher-ranked/higher-ranked-lifetime-equality.rs stdout ----

error: 1 diagnostics expected in test file but not reported in JSON output
tests/ui/higher-ranked/higher-ranked-lifetime-equality.rs:34:5: ERROR: mismatched types [E0308]
  reported with different kind: NOTE with different message: one type is more general than the other
  reported with different kind: NOTE with different message: expected struct `my_api::Foo<for<'a, 'b> fn(&'a (), &'b ())>`
  reported with different kind: NOTE with different message:    found struct `my_api::Foo<for<'a> fn(&'a (), &'a ())>`

thread '[ui] tests/ui/higher-ranked/higher-ranked-lifetime-equality.rs' panicked at src/tools/compiletest/src/runtest.rs:923:13:
errors differ from expected
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/higher-ranked/higher-ranked-lifetime-equality.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2" "--target=aarch64-unknown-linux-gnu" "--check-cfg" "cfg(test,FALSE)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/higher-ranked/higher-ranked-lifetime-equality" "-A" "unused" "-W" "unused_attributes" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/aarch64-unknown-linux-gnu/native/rust-test-helpers"

stack backtrace:
   5: __rustc::rust_begin_unwind
             at /rustc/3b4dd9bf1410f8da6329baa36ce5e37673cbbd1f/library/std/src/panicking.rs:698:5
   6: core::panicking::panic_fmt
---
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
---- [ui] tests/ui/higher-ranked/higher-ranked-lifetime-equality.rs stdout end ----
---- [ui] tests/ui/higher-ranked/subtype/hr-subtype.rs#bound_inv_a_b_vs_bound_inv_a stdout ----

error in revision `bound_inv_a_b_vs_bound_inv_a`: 1 diagnostics expected in test file but not reported in JSON output
tests/ui/higher-ranked/subtype/hr-subtype.rs:54:13: ERROR: 
  reported with different kind: NOTE on different line: tests/ui/higher-ranked/subtype/hr-subtype.rs:106:1
  reported with different kind: NOTE
  reported with different kind: NOTE
  reported with different kind: NOTE
  reported with different kind: NOTE on different line: tests/ui/higher-ranked/subtype/hr-subtype.rs:106:1
  reported on different line: tests/ui/higher-ranked/subtype/hr-subtype.rs:?
  reported with different kind: NOTE on different line: tests/ui/higher-ranked/subtype/hr-subtype.rs:?

thread '[ui] tests/ui/higher-ranked/subtype/hr-subtype.rs#bound_inv_a_b_vs_bound_inv_a' panicked at src/tools/compiletest/src/runtest.rs:923:13:
errors differ from expected
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/higher-ranked/subtype/hr-subtype.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2" "--target=aarch64-unknown-linux-gnu" "--cfg" "bound_inv_a_b_vs_bound_inv_a" "--check-cfg" "cfg(test,FALSE,bound_a_vs_bound_a,bound_a_vs_bound_b,bound_inv_a_vs_bound_inv_b,bound_co_a_vs_bound_co_b,bound_a_vs_free_x,free_x_vs_free_x,free_x_vs_free_y,free_inv_x_vs_free_inv_y,bound_a_b_vs_bound_a,bound_co_a_b_vs_bound_co_a,bound_contra_a_contra_b_ret_co_a,bound_co_a_co_b_ret_contra_a,bound_inv_a_b_vs_bound_inv_a,bound_a_b_ret_a_vs_bound_a_ret_a)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/higher-ranked/subtype/hr-subtype.bound_inv_a_b_vs_bound_inv_a" "-A" "unused" "-W" "unused_attributes" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/aarch64-unknown-linux-gnu/native/rust-test-helpers"

stack backtrace:
   5: __rustc::rust_begin_unwind
             at /rustc/3b4dd9bf1410f8da6329baa36ce5e37673cbbd1f/library/std/src/panicking.rs:698:5
   6: core::panicking::panic_fmt
---

thread '[ui] tests/ui/higher-ranked/trait-bounds/hrtb-conflate-regions.rs' panicked at src/tools/compiletest/src/runtest.rs:923:13:
errors differ from expected
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/higher-ranked/trait-bounds/hrtb-conflate-regions.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2" "--target=aarch64-unknown-linux-gnu" "--check-cfg" "cfg(test,FALSE)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/higher-ranked/trait-bounds/hrtb-conflate-regions" "-A" "unused" "-W" "unused_attributes" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/aarch64-unknown-linux-gnu/native/rust-test-helpers"

stack backtrace:
   5: __rustc::rust_begin_unwind
             at /rustc/3b4dd9bf1410f8da6329baa36ce5e37673cbbd1f/library/std/src/panicking.rs:698:5
   6: core::panicking::panic_fmt
---

thread '[ui] tests/ui/impl-trait/nested-rpit-hrtb.rs' panicked at src/tools/compiletest/src/runtest.rs:923:13:
errors differ from expected
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/impl-trait/nested-rpit-hrtb.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2" "--target=aarch64-unknown-linux-gnu" "--check-cfg" "cfg(test,FALSE)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/impl-trait/nested-rpit-hrtb" "-A" "unused" "-W" "unused_attributes" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/aarch64-unknown-linux-gnu/native/rust-test-helpers"

stack backtrace:
   5: __rustc::rust_begin_unwind
             at /rustc/3b4dd9bf1410f8da6329baa36ce5e37673cbbd1f/library/std/src/panicking.rs:698:5
   6: core::panicking::panic_fmt
---
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
---- [ui] tests/ui/impl-trait/nested-rpit-hrtb.rs stdout end ----
---- [ui] tests/ui/lub-glb/old-lub-glb-object.rs stdout ----

error: 1 diagnostics expected in test file but not reported in JSON output
tests/ui/lub-glb/old-lub-glb-object.rs:9:9: ERROR: mismatched types
  reported with different kind: NOTE with different message: one type is more general than the other
  reported with different kind: NOTE with different message: expected trait object `dyn for<'a, 'b> Foo<&'a u8, &'b u8>`
  reported with different kind: NOTE with different message:    found trait object `dyn for<'a> Foo<&'a u8, &'a u8>`

thread '[ui] tests/ui/lub-glb/old-lub-glb-object.rs' panicked at src/tools/compiletest/src/runtest.rs:923:13:
errors differ from expected
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/lub-glb/old-lub-glb-object.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2" "--target=aarch64-unknown-linux-gnu" "--check-cfg" "cfg(test,FALSE)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/lub-glb/old-lub-glb-object" "-A" "unused" "-W" "unused_attributes" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/aarch64-unknown-linux-gnu/native/rust-test-helpers"

stack backtrace:
   5: __rustc::rust_begin_unwind
             at /rustc/3b4dd9bf1410f8da6329baa36ce5e37673cbbd1f/library/std/src/panicking.rs:698:5
   6: core::panicking::panic_fmt
---
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
---- [ui] tests/ui/lub-glb/old-lub-glb-object.rs stdout end ----
---- [ui] tests/ui/nll/relate_tys/hr-fn-aau-eq-abu.rs stdout ----

error: 1 diagnostics expected in test file but not reported in JSON output
tests/ui/nll/relate_tys/hr-fn-aau-eq-abu.rs🔞5: ERROR: mismatched types [E0308]
  reported with different kind: NOTE with different message: one type is more general than the other
  reported with different kind: NOTE with different message: expected struct `Cell<for<'a, 'b> fn(&'a _, &'b _)>`
  reported with different kind: NOTE with different message:    found struct `Cell<for<'a> fn(&'a _, &'a _)>`

thread '[ui] tests/ui/nll/relate_tys/hr-fn-aau-eq-abu.rs' panicked at src/tools/compiletest/src/runtest.rs:923:13:
errors differ from expected
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/nll/relate_tys/hr-fn-aau-eq-abu.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2" "--target=aarch64-unknown-linux-gnu" "--check-cfg" "cfg(test,FALSE)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/nll/relate_tys/hr-fn-aau-eq-abu" "-A" "unused" "-W" "unused_attributes" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/aarch64-unknown-linux-gnu/native/rust-test-helpers" "-Zno-leak-check"

stack backtrace:
   5: __rustc::rust_begin_unwind
             at /rustc/3b4dd9bf1410f8da6329baa36ce5e37673cbbd1f/library/std/src/panicking.rs:698:5
   6: core::panicking::panic_fmt