Skip to content

Instantly share code, notes, and snippets.

@Centril
Created February 12, 2019 20:18
Show Gist options
  • Save Centril/70b383fd22cb4e233a3cbcd6f750f600 to your computer and use it in GitHub Desktop.
Save Centril/70b383fd22cb4e233a3cbcd6f750f600 to your computer and use it in GitHub Desktop.
ICE in libpanic_unwind => 2018 #58110 (RUST_BACKTRACE=1 ./x.py test)
This file has been truncated, but you can view the full file.
Updating only changed submodules
Submodules updated in 0.01 seconds
Building stage0 tool tidy (x86_64-unknown-linux-gnu)
tidy check
* 565 error codes
* highest error code: E0722
* 250 features
Building stage0 std artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
Copying stage0 std from stage0 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
Building stage0 test artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
Copying stage0 test from stage0 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
Building stage0 compiler artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
Copying stage0 rustc from stage0 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
Building stage0 codegen artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu, llvm)
Assembling stage1 compiler (x86_64-unknown-linux-gnu)
Building stage1 std artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
Copying stage1 std from stage1 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
Building stage1 test artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
Copying stage1 test from stage1 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
Building stage1 compiler artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
Copying stage1 rustc from stage1 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
Building stage1 codegen artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu, llvm)
Assembling stage2 compiler (x86_64-unknown-linux-gnu)
Uplifting stage1 std (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
Copying stage2 std from stage1 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
Uplifting stage1 test (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
Copying stage2 test from stage1 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
Building stage0 tool compiletest (x86_64-unknown-linux-gnu)
Check compiletest suite=ui mode=ui (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
running 5381 tests
iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii 100/5381
iiiiiiiiiiiiiiiiiiiiiiiiiiiFFFiFiiiiiiFiiiiiiiFiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiFFiiiFFFFFFFiiiiiiii 200/5381
iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii 300/5381
iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii 400/5381
iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiFiiiiiiFiiiiiiiiiiiiiiiiiiiiiiiiFiiiiiFiiiiiiFiiiiiii 500/5381
iiiFiiiiiiiiFiiiiiiiiiFiiiiiiiiiFiiiFiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii 600/5381
iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiFFFFiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiFFFFFiiiiiiFi 700/5381
iiiiiiiiiiiiiiiiiiiiiFiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii 800/5381
FiiiiiiiiiiiiiFFiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiFFiFiiiiiiiiiiiiiiiiiiiiiiiiii 900/5381
iiiiiiiiiiiiiiiiiiiFiiFiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiFiiiiiiiFFiiiiiiiiiFiiFFFiiiiiiiiii 1000/5381
FiiiiiiiiiiiiiiFFiiiFiiiiiiiiiiiiiiiiiiiFFFFiFFiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiFiiii 1100/5381
iiiFiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiFiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii 1200/5381
iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiFiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii 1300/5381
iiiiiiiiiiiiiiiiiiiiFiiiiiiiiiFFiiFiiiiiFiiiiiiiiiFFFiFiiiiiiiiiiiiiiiiiiiiiiFiiiFiFiiiiiiiiFiiiiiii 1400/5381
iiiiiiiiiiiiFiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii 1500/5381
iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiFiiiFiiFFiiiiiiiiiFiiii 1600/5381
iiiiiiiiiiiiiiiiiiiiiiiiFiiFiiiiiiiiFiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiFiFii 1700/5381
FiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiFiiiFFiiiiiiiiFiiiiFiiFiiiiiiiiiFiFiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii 1800/5381
iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiFiiiiiiiiFiiiiiiiiiiiFiiiiiiiiiiiFiiiiiiiiiiiiFiiiiiiiFiiiiFi 1900/5381
iiiiFiiiiiiiFiiiiiiiiiiiiiiiiiiiiiiiiiiiiFiiiiiiiiiFFiiiiiiiiiiiiFiiFiiiiiiiiiiiiiFiiiiiiiiiiiiiiiFi 2000/5381
iiiiiiFiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii 2100/5381
iFiiiiiiiiiiiiiiiiiiiiiiiFFiiiiiiFiiiiiiFiiiiiiiiiiiiiFiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiFiiiiiiFi 2200/5381
iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiFiiiiiiiiiiiFFiiiiiiiiiiiFiFFiiiiiiiiiiiiiiiiiFiiiiiiFiiiFFiiiiiFi 2300/5381
iiiiiFFiiFiiiiiiiiiiiiiiiiiiiiiiiiiiiiiFiFiiiiiiiiiiiiiiiiiiiiiiiiiiiiiFiiFiiiiiiiiiiFiiiiiiiiFiiiii 2400/5381
iiFFiiFiiiFiiiiiiiiiiiiiiFiiiiiiiiiiiiiiiiiiFiiiiiiiFiiFiiiiiiiiiiiiiiiiiiiiiFiiiiiiiiiiiiiiiiiiiiii 2500/5381
iiiiiiiiiiiiiiiiiiiiiFiiiiiiFiiiiiiiFiFiiiiiiiiiiiiiiiiiiiiiiiFiiiiiiiiiiFiFiiiiiiiiiiiiiiiiiiiiiFFi 2600/5381
iFFiiiiiFiiFiiiiiiiiiiiiiiiiiiiiFiiiiiiiiiiiiiFiFiFiiiiFiiiiiiiFiiiiiiFiiiiiiFiiiiiiiiiiiiiiiiiiiiii 2700/5381
iiiiiiiiFiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiFiiiiiiiiiiiiiiiiiFiiiiiiiiiiiiiiiiiiiiiiiiFiiiiFiiiiiiii 2800/5381
iiiiFFFFiiiiiiiFFiiiiFiiiiiiiiiFiiiiiiiFiiiiiFiiiiiiFiiiiiiiiiiiiFiiFiiiiFiiiiiiiiiiiiiiiiiiiiiiiiii 2900/5381
FiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiFiiiiiiiiiFiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii 3000/5381
iiiiiiiiiiiiFiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii 3100/5381
iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiFii 3200/5381
iiiiiiiiiiiiiiiiiiiFiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii 3300/5381
iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiFiiiiiiiFii.iiFiiiiiiiFiiiiFiFiiiiiiFFFiFiFFiFiFiiiiiiiiiiiiiiiiiiii 3400/5381
iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiFiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii 3500/5381
iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii 3600/5381
iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiFiiiiiiiiFiiFiiiiiiiiFi 3700/5381
iiiiiiiiiiiiiiiiiiiiiFiiiiiiiiiiiiiiFFFiiiiiiiiiiiiiiiFiiiiiiiiiiiiiiiiiiiiiFFFiiiiiiiiiiiiiiiiiiiii 3800/5381
iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiFiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiFiiiiiiiiiiiiiiiiiiiiiiiiiiii 3900/5381
iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiFiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiFiiiiiiiiiiiiiiiiii 4000/5381
iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiFiiiFFFiiiiiiiiiiiiiiiFiiiiiiiiiiiiiiiiiiiiiiiiiiiFiiiiiiiiFF 4100/5381
iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiFiiiiiiiiiiiiiiFFFFiiFiiiiiiiiFiFiiiiiFFiiiiiiiiiiiiiiiiiiiiiiiFiiF 4200/5381
iiiiiFiiiiiiiFiiiiiiiiiiiFFiiiiFiiiiiiiiiiiiiiiiiiiiiFiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii 4300/5381
iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii 4400/5381
iiiiiiiiiiiiiiiiiiiiiiiiiiFiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiFiiiiiiiiiiiiiiiiiiiiiiiFiiiiiiiFiiFii 4500/5381
iiiiiiiiiiiiiiiiiiiiiiFiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii 4600/5381
iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiFiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiFiiiiFiiiiiiiiiiiiiiiiiiiiiiiiiiiii 4700/5381
iFiiiiiiiiiiiiiiiiiFiiiiiiiiiiiiiiiiiiiiiiiiFFiiiiiiiiiFiiiiiiiiiFiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiFiii 4800/5381
FFiiiiiiiiiiiiiiiiiiiiiiFFiiiiiFiiiiiiiiiiiiiiiiiiFiiiiiiiiFiiFiiFiiiiFFFiFiiiiiiiFFiiFiiiiiiiiiiiii 4900/5381
iiiiiiiiiiiiiiFiiiiiiFFiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiFiiiFiiiiiFiFiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii 5000/5381
iiiiiiiiiiiiiFiiiiiiiiiiiiiiFiFFiiiiiiiiiiiiiiiiiiiiiiiiiiiiiFFFiiFFiFiiFiiFiiiiiiiiiiiiiiiiiiFiFiii 5100/5381
iiiFiiiiiiiiiiiiiiiiiiiiiiiiiiiiFiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiFiiiiiiiiiiFiiiFFiiiiiiiiiiiiiii 5200/5381
iiiiiiiiiiiiiiFiiiiFiiFiiiiiiiiiiiiiiiiiFiiiiiiiiiiiFiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii 5300/5381
iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiFFiiFFFFFFF
failures:
---- [ui] ui/arg-type-mismatch.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/arg-type-mismatch.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/arg-type-mismatch/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/arg-type-mismatch/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc::infer::InferCtxt::probe
27: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_return_type
28: rustc_typeck::check::FnCtxt::suggest_ref_or_into
29: rustc_typeck::check::demand::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::demand_coerce_diag
30: rustc_typeck::check::demand::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::demand_coerce
31: rustc_typeck::check::FnCtxt::check_argument_types
32: rustc_typeck::check::callee::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::confirm_builtin_call
33: rustc_typeck::check::callee::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::check_call
34: rustc_typeck::check::FnCtxt::check_expr_kind
35: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
36: rustc_typeck::check::FnCtxt::check_expr_kind
37: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
38: rustc_typeck::check::FnCtxt::check_stmt
39: rustc_typeck::check::FnCtxt::check_block_with_expected
40: rustc_typeck::check::FnCtxt::check_expr_kind
41: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
42: rustc_typeck::check::FnCtxt::check_return_expr
43: rustc_typeck::check::check_fn
44: rustc::ty::context::GlobalCtxt::enter_local
45: rustc_typeck::check::typeck_tables_of
46: rustc::ty::query::__query_compute::typeck_tables_of
47: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
48: rustc::dep_graph::graph::DepGraph::with_task_impl
49: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
50: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners
51: rustc_typeck::check::typeck_item_bodies
52: rustc::ty::query::__query_compute::typeck_item_bodies
53: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_item_bodies<'tcx>>::compute
54: rustc::dep_graph::graph::DepGraph::with_task_impl
55: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
56: rustc::util::common::time
57: rustc_typeck::check_crate
58: <std::thread::local::LocalKey<T>>::with
59: rustc::ty::context::TyCtxt::create_and_enter
60: rustc_driver::driver::compile_input
61: rustc_driver::run_compiler_with_pool
62: <scoped_tls::ScopedKey<T>>::set
63: rustc_driver::run_compiler
64: rustc_driver::monitor::{{closure}}
65: __rust_maybe_catch_panic
66: <F as alloc::boxed::FnBox<A>>::call_box
67: std::sys_common::thread::start_thread
68: std::sys::unix::thread::Thread::new::thread_start
69: start_thread
70: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/arg-type-mismatch.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// error-pattern: mismatched types","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `main`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/arg-type-mismatch.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// error-pattern: mismatched types","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `main`\n"}
{"message":"#2 [typeck_item_bodies] type-checking all item bodies","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/arg-type-mismatch.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// error-pattern: mismatched types","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [typeck_item_bodies] type-checking all item bodies\n"}
end of query stack
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/arg-type-mismatch.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/associated-const/associated-const-no-item.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/associated-const/associated-const-no-item.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/associated-const/associated-const-no-item/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/associated-const/associated-const-no-item/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc_typeck::check::method::probe::ProbeContext::pick
27: rustc::infer::InferCtxt::probe
28: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_name
29: rustc_typeck::check::method::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::resolve_ufcs
30: rustc_typeck::check::FnCtxt::resolve_ty_and_def_ufcs
31: rustc_typeck::check::FnCtxt::check_expr_kind
32: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
33: rustc::ty::context::GlobalCtxt::enter_local
34: rustc_typeck::check::typeck_tables_of
35: rustc::ty::query::__query_compute::typeck_tables_of
36: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
37: rustc::dep_graph::graph::DepGraph::with_task_impl
38: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
39: rustc_typeck::check::check_item_type
40: rustc::hir::map::Map::visit_item_likes_in_module
41: rustc_typeck::check::check_mod_item_types
42: rustc::ty::query::__query_compute::check_mod_item_types
43: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::check_mod_item_types<'tcx>>::compute
44: rustc::dep_graph::graph::DepGraph::with_task_impl
45: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
46: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::ensure_query
47: rustc::session::Session::track_errors
48: rustc::util::common::time
49: rustc_typeck::check_crate
50: <std::thread::local::LocalKey<T>>::with
51: rustc::ty::context::TyCtxt::create_and_enter
52: rustc_driver::driver::compile_input
53: rustc_driver::run_compiler_with_pool
54: <scoped_tls::ScopedKey<T>>::set
55: rustc_driver::run_compiler
56: rustc_driver::monitor::{{closure}}
57: __rust_maybe_catch_panic
58: <F as alloc::boxed::FnBox<A>>::call_box
59: std::sys_common::thread::start_thread
60: std::sys::unix::thread::Thread::new::thread_start
61: start_thread
62: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/associated-const/associated-const-no-item.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"trait Foo {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `X`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/associated-const/associated-const-no-item.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"trait Foo {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `X`\n"}
{"message":"#2 [check_mod_item_types] checking item types in top-level module","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/associated-const/associated-const-no-item.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"trait Foo {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [check_mod_item_types] checking item types in top-level module\n"}
end of query stack
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/associated-const/associated-const-no-item.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/associated-types/associated-types-eq-3.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/associated-types/associated-types-eq-3.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/associated-types/associated-types-eq-3/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/associated-types/associated-types-eq-3/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc::infer::InferCtxt::probe
27: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_return_type
28: rustc_typeck::check::FnCtxt::suggest_ref_or_into
29: rustc_typeck::check::demand::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::demand_coerce_diag
30: rustc_typeck::check::demand::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::demand_coerce
31: rustc_typeck::check::FnCtxt::check_decl_local
32: rustc_typeck::check::FnCtxt::check_stmt
33: rustc_typeck::check::FnCtxt::check_block_with_expected
34: rustc_typeck::check::FnCtxt::check_expr_kind
35: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
36: rustc_typeck::check::FnCtxt::check_return_expr
37: rustc_typeck::check::check_fn
38: rustc::ty::context::GlobalCtxt::enter_local
39: rustc_typeck::check::typeck_tables_of
40: rustc::ty::query::__query_compute::typeck_tables_of
41: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
42: rustc::dep_graph::graph::DepGraph::with_task_impl
43: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
44: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners
45: rustc_typeck::check::typeck_item_bodies
46: rustc::ty::query::__query_compute::typeck_item_bodies
47: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_item_bodies<'tcx>>::compute
48: rustc::dep_graph::graph::DepGraph::with_task_impl
49: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
50: rustc::util::common::time
51: rustc_typeck::check_crate
52: <std::thread::local::LocalKey<T>>::with
53: rustc::ty::context::TyCtxt::create_and_enter
54: rustc_driver::driver::compile_input
55: rustc_driver::run_compiler_with_pool
56: <scoped_tls::ScopedKey<T>>::set
57: rustc_driver::run_compiler
58: rustc_driver::monitor::{{closure}}
59: __rust_maybe_catch_panic
60: <F as alloc::boxed::FnBox<A>>::call_box
61: std::sys_common::thread::start_thread
62: std::sys::unix::thread::Thread::new::thread_start
63: start_thread
64: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/associated-types/associated-types-eq-3.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// Test equality constraints on associated types. Check we get type errors","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `foo2`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/associated-types/associated-types-eq-3.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// Test equality constraints on associated types. Check we get type errors","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `foo2`\n"}
{"message":"#2 [typeck_item_bodies] type-checking all item bodies","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/associated-types/associated-types-eq-3.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// Test equality constraints on associated types. Check we get type errors","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [typeck_item_bodies] type-checking all item bodies\n"}
end of query stack
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/associated-types/associated-types-eq-3.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/attempted-access-non-fatal.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/attempted-access-non-fatal.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/attempted-access-non-fatal/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/attempted-access-non-fatal/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc_typeck::check::method::probe::ProbeContext::pick
27: rustc::infer::InferCtxt::probe
28: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_name
29: rustc_typeck::check::method::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::method_exists
30: rustc_typeck::check::FnCtxt::check_expr_kind
31: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
32: rustc_typeck::check::FnCtxt::check_decl_initializer
33: rustc_typeck::check::FnCtxt::check_decl_local
34: rustc_typeck::check::FnCtxt::check_stmt
35: rustc_typeck::check::FnCtxt::check_block_with_expected
36: rustc_typeck::check::FnCtxt::check_expr_kind
37: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
38: rustc_typeck::check::FnCtxt::check_return_expr
39: rustc_typeck::check::check_fn
40: rustc::ty::context::GlobalCtxt::enter_local
41: rustc_typeck::check::typeck_tables_of
42: rustc::ty::query::__query_compute::typeck_tables_of
43: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
44: rustc::dep_graph::graph::DepGraph::with_task_impl
45: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
46: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners
47: rustc_typeck::check::typeck_item_bodies
48: rustc::ty::query::__query_compute::typeck_item_bodies
49: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_item_bodies<'tcx>>::compute
50: rustc::dep_graph::graph::DepGraph::with_task_impl
51: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
52: rustc::util::common::time
53: rustc_typeck::check_crate
54: <std::thread::local::LocalKey<T>>::with
55: rustc::ty::context::TyCtxt::create_and_enter
56: rustc_driver::driver::compile_input
57: rustc_driver::run_compiler_with_pool
58: <scoped_tls::ScopedKey<T>>::set
59: rustc_driver::run_compiler
60: rustc_driver::monitor::{{closure}}
61: __rust_maybe_catch_panic
62: <F as alloc::boxed::FnBox<A>>::call_box
63: std::sys_common::thread::start_thread
64: std::sys::unix::thread::Thread::new::thread_start
65: start_thread
66: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/attempted-access-non-fatal.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// Check that bogus field access is non-fatal","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `main`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/attempted-access-non-fatal.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// Check that bogus field access is non-fatal","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `main`\n"}
{"message":"#2 [typeck_item_bodies] type-checking all item bodies","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/attempted-access-non-fatal.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// Check that bogus field access is non-fatal","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [typeck_item_bodies] type-checking all item bodies\n"}
end of query stack
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/attempted-access-non-fatal.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/associated-const/associated-const-private-impl.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/associated-const/associated-const-private-impl.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/associated-const/associated-const-private-impl/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/associated-const/associated-const-private-impl/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc_typeck::check::method::probe::ProbeContext::pick
27: rustc::infer::InferCtxt::probe
28: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_name
29: rustc_typeck::check::method::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::resolve_ufcs
30: rustc_typeck::check::FnCtxt::resolve_ty_and_def_ufcs
31: rustc_typeck::check::FnCtxt::check_expr_kind
32: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
33: rustc_typeck::check::FnCtxt::check_expr_kind
34: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
35: <smallvec::SmallVec<A> as core::iter::traits::collect::FromIterator<<A as smallvec::Array>::Item>>::from_iter
36: <T as rustc::ty::context::InternIteratorElement<T, R>>::intern_with
37: rustc_typeck::check::FnCtxt::check_expr_kind
38: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
39: rustc_typeck::check::FnCtxt::check_expr_meets_expectation_or_error
40: rustc_typeck::check::_match::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::check_match
41: rustc_typeck::check::FnCtxt::check_expr_kind
42: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
43: rustc_typeck::check::FnCtxt::check_block_with_expected
44: rustc_typeck::check::FnCtxt::check_expr_kind
45: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
46: rustc_typeck::check::FnCtxt::check_stmt
47: rustc_typeck::check::FnCtxt::check_block_with_expected
48: rustc_typeck::check::FnCtxt::check_expr_kind
49: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
50: rustc_typeck::check::FnCtxt::check_return_expr
51: rustc_typeck::check::check_fn
52: rustc::ty::context::GlobalCtxt::enter_local
53: rustc_typeck::check::typeck_tables_of
54: rustc::ty::query::__query_compute::typeck_tables_of
55: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
56: rustc::dep_graph::graph::DepGraph::with_task_impl
57: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
58: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners
59: rustc_typeck::check::typeck_item_bodies
60: rustc::ty::query::__query_compute::typeck_item_bodies
61: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_item_bodies<'tcx>>::compute
62: rustc::dep_graph::graph::DepGraph::with_task_impl
63: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
64: rustc::util::common::time
65: rustc_typeck::check_crate
66: <std::thread::local::LocalKey<T>>::with
67: rustc::ty::context::TyCtxt::create_and_enter
68: rustc_driver::driver::compile_input
69: rustc_driver::run_compiler_with_pool
70: <scoped_tls::ScopedKey<T>>::set
71: rustc_driver::run_compiler
72: rustc_driver::monitor::{{closure}}
73: __rust_maybe_catch_panic
74: <F as alloc::boxed::FnBox<A>>::call_box
75: std::sys_common::thread::start_thread
76: std::sys::unix::thread::Thread::new::thread_start
77: start_thread
78: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/associated-const/associated-const-private-impl.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"mod bar1 {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `main`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/associated-const/associated-const-private-impl.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"mod bar1 {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `main`\n"}
{"message":"#2 [typeck_item_bodies] type-checking all item bodies","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/associated-const/associated-const-private-impl.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"mod bar1 {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [typeck_item_bodies] type-checking all item bodies\n"}
end of query stack
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/associated-const/associated-const-private-impl.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/associated-path-shl.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/associated-path-shl.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/associated-path-shl/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/associated-path-shl/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"cannot find type `A` in this scope","code":{"code":"E0412","explanation":"\nThe type name used is not in scope.\n\nErroneous code examples:\n\n```compile_fail,E0412\nimpl Something {} // error: type name `Something` is not in scope\n\n// or:\n\ntrait Foo {\n fn bar(N); // error: type name `N` is not in scope\n}\n\n// or:\n\nfn foo(x: T) {} // type name `T` is not in scope\n```\n\nTo fix this error, please verify you didn't misspell the type name, you did\ndeclare it or imported it into the scope. Examples:\n\n```\nstruct Something;\n\nimpl Something {} // ok!\n\n// or:\n\ntrait Foo {\n type N;\n\n fn bar(_: Self::N); // ok!\n}\n\n// or:\n\nfn foo<T>(x: T) {} // ok!\n```\n\nAnother case that causes this error is when a type is imported into a parent\nmodule. To fix this, you can follow the suggestion and use File directly or\n`use super::File;` which will import the types from the parent namespace. An\nexample that causes this error is below:\n\n```compile_fail,E0412\nuse std::fs::File;\n\nmod foo {\n fn some_function(f: File) {}\n}\n```\n\n```\nuse std::fs::File;\n\nmod foo {\n // either\n use super::File;\n // or\n // use std::fs::File;\n fn foo(f: File) {}\n}\n# fn main() {} // don't insert it for us; that'll break imports\n```\n"},"level":"error","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/associated-path-shl.rs","byte_start":101,"byte_end":102,"line_start":4,"line_end":4,"column_start":14,"column_end":15,"is_primary":true,"text":[{"text":" let _: <<A>::B>::C; //~ ERROR cannot find type `A` in this scope","highlight_start":14,"highlight_end":15}],"label":"not found in this scope","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error[E0412]: cannot find type `A` in this scope\n --> /home/centril/programming/rust/src/test/ui/associated-path-shl.rs:4:14\n |\nLL | let _: <<A>::B>::C; //~ ERROR cannot find type `A` in this scope\n | ^ not found in this scope\n\n"}
{"message":"cannot find type `A` in this scope","code":{"code":"E0412","explanation":"\nThe type name used is not in scope.\n\nErroneous code examples:\n\n```compile_fail,E0412\nimpl Something {} // error: type name `Something` is not in scope\n\n// or:\n\ntrait Foo {\n fn bar(N); // error: type name `N` is not in scope\n}\n\n// or:\n\nfn foo(x: T) {} // type name `T` is not in scope\n```\n\nTo fix this error, please verify you didn't misspell the type name, you did\ndeclare it or imported it into the scope. Examples:\n\n```\nstruct Something;\n\nimpl Something {} // ok!\n\n// or:\n\ntrait Foo {\n type N;\n\n fn bar(_: Self::N); // ok!\n}\n\n// or:\n\nfn foo<T>(x: T) {} // ok!\n```\n\nAnother case that causes this error is when a type is imported into a parent\nmodule. To fix this, you can follow the suggestion and use File directly or\n`use super::File;` which will import the types from the parent namespace. An\nexample that causes this error is below:\n\n```compile_fail,E0412\nuse std::fs::File;\n\nmod foo {\n fn some_function(f: File) {}\n}\n```\n\n```\nuse std::fs::File;\n\nmod foo {\n // either\n use super::File;\n // or\n // use std::fs::File;\n fn foo(f: File) {}\n}\n# fn main() {} // don't insert it for us; that'll break imports\n```\n"},"level":"error","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/associated-path-shl.rs","byte_start":171,"byte_end":172,"line_start":5,"line_end":5,"column_start":15,"column_end":16,"is_primary":true,"text":[{"text":" let _ = <<A>::B>::C; //~ ERROR cannot find type `A` in this scope","highlight_start":15,"highlight_end":16}],"label":"not found in this scope","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error[E0412]: cannot find type `A` in this scope\n --> /home/centril/programming/rust/src/test/ui/associated-path-shl.rs:5:15\n |\nLL | let _ = <<A>::B>::C; //~ ERROR cannot find type `A` in this scope\n | ^ not found in this scope\n\n"}
{"message":"cannot find type `A` in this scope","code":{"code":"E0412","explanation":"\nThe type name used is not in scope.\n\nErroneous code examples:\n\n```compile_fail,E0412\nimpl Something {} // error: type name `Something` is not in scope\n\n// or:\n\ntrait Foo {\n fn bar(N); // error: type name `N` is not in scope\n}\n\n// or:\n\nfn foo(x: T) {} // type name `T` is not in scope\n```\n\nTo fix this error, please verify you didn't misspell the type name, you did\ndeclare it or imported it into the scope. Examples:\n\n```\nstruct Something;\n\nimpl Something {} // ok!\n\n// or:\n\ntrait Foo {\n type N;\n\n fn bar(_: Self::N); // ok!\n}\n\n// or:\n\nfn foo<T>(x: T) {} // ok!\n```\n\nAnother case that causes this error is when a type is imported into a parent\nmodule. To fix this, you can follow the suggestion and use File directly or\n`use super::File;` which will import the types from the parent namespace. An\nexample that causes this error is below:\n\n```compile_fail,E0412\nuse std::fs::File;\n\nmod foo {\n fn some_function(f: File) {}\n}\n```\n\n```\nuse std::fs::File;\n\nmod foo {\n // either\n use super::File;\n // or\n // use std::fs::File;\n fn foo(f: File) {}\n}\n# fn main() {} // don't insert it for us; that'll break imports\n```\n"},"level":"error","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/associated-path-shl.rs","byte_start":237,"byte_end":238,"line_start":6,"line_end":6,"column_start":11,"column_end":12,"is_primary":true,"text":[{"text":" let <<A>::B>::C; //~ ERROR cannot find type `A` in this scope","highlight_start":11,"highlight_end":12}],"label":"not found in this scope","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error[E0412]: cannot find type `A` in this scope\n --> /home/centril/programming/rust/src/test/ui/associated-path-shl.rs:6:11\n |\nLL | let <<A>::B>::C; //~ ERROR cannot find type `A` in this scope\n | ^ not found in this scope\n\n"}
{"message":"cannot find type `A` in this scope","code":{"code":"E0412","explanation":"\nThe type name used is not in scope.\n\nErroneous code examples:\n\n```compile_fail,E0412\nimpl Something {} // error: type name `Something` is not in scope\n\n// or:\n\ntrait Foo {\n fn bar(N); // error: type name `N` is not in scope\n}\n\n// or:\n\nfn foo(x: T) {} // type name `T` is not in scope\n```\n\nTo fix this error, please verify you didn't misspell the type name, you did\ndeclare it or imported it into the scope. Examples:\n\n```\nstruct Something;\n\nimpl Something {} // ok!\n\n// or:\n\ntrait Foo {\n type N;\n\n fn bar(_: Self::N); // ok!\n}\n\n// or:\n\nfn foo<T>(x: T) {} // ok!\n```\n\nAnother case that causes this error is when a type is imported into a parent\nmodule. To fix this, you can follow the suggestion and use File directly or\n`use super::File;` which will import the types from the parent namespace. An\nexample that causes this error is below:\n\n```compile_fail,E0412\nuse std::fs::File;\n\nmod foo {\n fn some_function(f: File) {}\n}\n```\n\n```\nuse std::fs::File;\n\nmod foo {\n // either\n use super::File;\n // or\n // use std::fs::File;\n fn foo(f: File) {}\n}\n# fn main() {} // don't insert it for us; that'll break imports\n```\n"},"level":"error","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/associated-path-shl.rs","byte_start":309,"byte_end":310,"line_start":7,"line_end":7,"column_start":17,"column_end":18,"is_primary":true,"text":[{"text":" let 0 ..= <<A>::B>::C; //~ ERROR cannot find type `A` in this scope","highlight_start":17,"highlight_end":18}],"label":"not found in this scope","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error[E0412]: cannot find type `A` in this scope\n --> /home/centril/programming/rust/src/test/ui/associated-path-shl.rs:7:17\n |\nLL | let 0 ..= <<A>::B>::C; //~ ERROR cannot find type `A` in this scope\n | ^ not found in this scope\n\n"}
{"message":"cannot find type `A` in this scope","code":{"code":"E0412","explanation":"\nThe type name used is not in scope.\n\nErroneous code examples:\n\n```compile_fail,E0412\nimpl Something {} // error: type name `Something` is not in scope\n\n// or:\n\ntrait Foo {\n fn bar(N); // error: type name `N` is not in scope\n}\n\n// or:\n\nfn foo(x: T) {} // type name `T` is not in scope\n```\n\nTo fix this error, please verify you didn't misspell the type name, you did\ndeclare it or imported it into the scope. Examples:\n\n```\nstruct Something;\n\nimpl Something {} // ok!\n\n// or:\n\ntrait Foo {\n type N;\n\n fn bar(_: Self::N); // ok!\n}\n\n// or:\n\nfn foo<T>(x: T) {} // ok!\n```\n\nAnother case that causes this error is when a type is imported into a parent\nmodule. To fix this, you can follow the suggestion and use File directly or\n`use super::File;` which will import the types from the parent namespace. An\nexample that causes this error is below:\n\n```compile_fail,E0412\nuse std::fs::File;\n\nmod foo {\n fn some_function(f: File) {}\n}\n```\n\n```\nuse std::fs::File;\n\nmod foo {\n // either\n use super::File;\n // or\n // use std::fs::File;\n fn foo(f: File) {}\n}\n# fn main() {} // don't insert it for us; that'll break imports\n```\n"},"level":"error","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/associated-path-shl.rs","byte_start":467,"byte_end":468,"line_start":9,"line_end":9,"column_start":7,"column_end":8,"is_primary":true,"text":[{"text":" <<A>::B>::C; //~ ERROR cannot find type `A` in this scope","highlight_start":7,"highlight_end":8}],"label":"not found in this scope","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error[E0412]: cannot find type `A` in this scope\n --> /home/centril/programming/rust/src/test/ui/associated-path-shl.rs:9:7\n |\nLL | <<A>::B>::C; //~ ERROR cannot find type `A` in this scope\n | ^ not found in this scope\n\n"}
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc_typeck::check::method::probe::ProbeContext::pick
27: rustc::infer::InferCtxt::probe
28: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_name
29: rustc_typeck::check::method::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::resolve_ufcs
30: rustc_typeck::check::FnCtxt::resolve_ty_and_def_ufcs
31: rustc_typeck::check::FnCtxt::check_expr_kind
32: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
33: rustc_typeck::check::FnCtxt::check_decl_initializer
34: rustc_typeck::check::FnCtxt::check_decl_local
35: rustc_typeck::check::FnCtxt::check_stmt
36: rustc_typeck::check::FnCtxt::check_block_with_expected
37: rustc_typeck::check::FnCtxt::check_expr_kind
38: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
39: rustc_typeck::check::FnCtxt::check_return_expr
40: rustc_typeck::check::check_fn
41: rustc::ty::context::GlobalCtxt::enter_local
42: rustc_typeck::check::typeck_tables_of
43: rustc::ty::query::__query_compute::typeck_tables_of
44: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
45: rustc::dep_graph::graph::DepGraph::with_task_impl
46: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
47: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners
48: rustc_typeck::check::typeck_item_bodies
49: rustc::ty::query::__query_compute::typeck_item_bodies
50: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_item_bodies<'tcx>>::compute
51: rustc::dep_graph::graph::DepGraph::with_task_impl
52: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
53: rustc::util::common::time
54: rustc_typeck::check_crate
55: <std::thread::local::LocalKey<T>>::with
56: rustc::ty::context::TyCtxt::create_and_enter
57: rustc_driver::driver::compile_input
58: rustc_driver::run_compiler_with_pool
59: <scoped_tls::ScopedKey<T>>::set
60: rustc_driver::run_compiler
61: rustc_driver::monitor::{{closure}}
62: __rust_maybe_catch_panic
63: <F as alloc::boxed::FnBox<A>>::call_box
64: std::sys_common::thread::start_thread
65: std::sys::unix::thread::Thread::new::thread_start
66: start_thread
67: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/associated-path-shl.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// Check that associated paths starting with `<<` are successfully parsed.","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `main`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/associated-path-shl.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// Check that associated paths starting with `<<` are successfully parsed.","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `main`\n"}
{"message":"#2 [typeck_item_bodies] type-checking all item bodies","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/associated-path-shl.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// Check that associated paths starting with `<<` are successfully parsed.","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [typeck_item_bodies] type-checking all item bodies\n"}
end of query stack
{"message":"aborting due to 6 previous errors","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to 6 previous errors\n\n"}
{"message":"For more information about this error, try `rustc --explain E0412`.","code":null,"level":"","spans":[],"children":[],"rendered":"For more information about this error, try `rustc --explain E0412`.\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/associated-path-shl.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/array-not-vector.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/array-not-vector.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/array-not-vector/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/array-not-vector/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc::infer::InferCtxt::probe
27: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_return_type
28: rustc_typeck::check::FnCtxt::suggest_ref_or_into
29: rustc_typeck::check::demand::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::demand_coerce_diag
30: rustc_typeck::check::demand::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::demand_coerce
31: rustc_typeck::check::FnCtxt::check_decl_local
32: rustc_typeck::check::FnCtxt::check_stmt
33: rustc_typeck::check::FnCtxt::check_block_with_expected
34: rustc_typeck::check::FnCtxt::check_expr_kind
35: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
36: rustc_typeck::check::FnCtxt::check_return_expr
37: rustc_typeck::check::check_fn
38: rustc::ty::context::GlobalCtxt::enter_local
39: rustc_typeck::check::typeck_tables_of
40: rustc::ty::query::__query_compute::typeck_tables_of
41: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
42: rustc::dep_graph::graph::DepGraph::with_task_impl
43: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
44: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners
45: rustc_typeck::check::typeck_item_bodies
46: rustc::ty::query::__query_compute::typeck_item_bodies
47: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_item_bodies<'tcx>>::compute
48: rustc::dep_graph::graph::DepGraph::with_task_impl
49: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
50: rustc::util::common::time
51: rustc_typeck::check_crate
52: <std::thread::local::LocalKey<T>>::with
53: rustc::ty::context::TyCtxt::create_and_enter
54: rustc_driver::driver::compile_input
55: rustc_driver::run_compiler_with_pool
56: <scoped_tls::ScopedKey<T>>::set
57: rustc_driver::run_compiler
58: rustc_driver::monitor::{{closure}}
59: __rust_maybe_catch_panic
60: <F as alloc::boxed::FnBox<A>>::call_box
61: std::sys_common::thread::start_thread
62: std::sys::unix::thread::Thread::new::thread_start
63: start_thread
64: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/array-not-vector.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"fn main() {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `main`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/array-not-vector.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"fn main() {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `main`\n"}
{"message":"#2 [typeck_item_bodies] type-checking all item bodies","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/array-not-vector.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"fn main() {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [typeck_item_bodies] type-checking all item bodies\n"}
end of query stack
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/array-not-vector.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/associated-type/associated-type-projection-from-supertrait.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/associated-type/associated-type-projection-from-supertrait.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/associated-type/associated-type-projection-from-supertrait/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/associated-type/associated-type-projection-from-supertrait/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc::infer::InferCtxt::probe
27: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_return_type
28: rustc_typeck::check::FnCtxt::suggest_ref_or_into
29: rustc_typeck::check::demand::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::demand_coerce_diag
30: rustc_typeck::check::demand::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::demand_coerce
31: rustc_typeck::check::FnCtxt::check_argument_types
32: rustc_typeck::check::callee::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::confirm_builtin_call
33: rustc_typeck::check::callee::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::check_call
34: rustc_typeck::check::FnCtxt::check_expr_kind
35: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
36: rustc_typeck::check::FnCtxt::check_stmt
37: rustc_typeck::check::FnCtxt::check_block_with_expected
38: rustc_typeck::check::FnCtxt::check_expr_kind
39: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
40: rustc_typeck::check::FnCtxt::check_return_expr
41: rustc_typeck::check::check_fn
42: rustc::ty::context::GlobalCtxt::enter_local
43: rustc_typeck::check::typeck_tables_of
44: rustc::ty::query::__query_compute::typeck_tables_of
45: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
46: rustc::dep_graph::graph::DepGraph::with_task_impl
47: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
48: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners
49: rustc_typeck::check::typeck_item_bodies
50: rustc::ty::query::__query_compute::typeck_item_bodies
51: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_item_bodies<'tcx>>::compute
52: rustc::dep_graph::graph::DepGraph::with_task_impl
53: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
54: rustc::util::common::time
55: rustc_typeck::check_crate
56: <std::thread::local::LocalKey<T>>::with
57: rustc::ty::context::TyCtxt::create_and_enter
58: rustc_driver::driver::compile_input
59: rustc_driver::run_compiler_with_pool
60: <scoped_tls::ScopedKey<T>>::set
61: rustc_driver::run_compiler
62: rustc_driver::monitor::{{closure}}
63: __rust_maybe_catch_panic
64: <F as alloc::boxed::FnBox<A>>::call_box
65: std::sys_common::thread::start_thread
66: std::sys::unix::thread::Thread::new::thread_start
67: start_thread
68: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/associated-type/associated-type-projection-from-supertrait.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// Test equality constraints in a where clause where the type being","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `b`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/associated-type/associated-type-projection-from-supertrait.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// Test equality constraints in a where clause where the type being","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `b`\n"}
{"message":"#2 [typeck_item_bodies] type-checking all item bodies","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/associated-type/associated-type-projection-from-supertrait.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// Test equality constraints in a where clause where the type being","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [typeck_item_bodies] type-checking all item bodies\n"}
end of query stack
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/associated-type/associated-type-projection-from-supertrait.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/binop/binop-logic-int.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/binop/binop-logic-int.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/binop/binop-logic-int/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/binop/binop-logic-int/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc::infer::InferCtxt::probe
27: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_return_type
28: rustc_typeck::check::FnCtxt::suggest_ref_or_into
29: rustc_typeck::check::demand::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::demand_coerce_diag
30: rustc_typeck::check::demand::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::demand_coerce
31: rustc_typeck::check::op::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::check_binop
32: rustc_typeck::check::FnCtxt::check_expr_kind
33: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
34: rustc_typeck::check::FnCtxt::check_decl_initializer
35: rustc_typeck::check::FnCtxt::check_decl_local
36: rustc_typeck::check::FnCtxt::check_stmt
37: rustc_typeck::check::FnCtxt::check_block_with_expected
38: rustc_typeck::check::FnCtxt::check_expr_kind
39: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
40: rustc_typeck::check::FnCtxt::check_return_expr
41: rustc_typeck::check::check_fn
42: rustc::ty::context::GlobalCtxt::enter_local
43: rustc_typeck::check::typeck_tables_of
44: rustc::ty::query::__query_compute::typeck_tables_of
45: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
46: rustc::dep_graph::graph::DepGraph::with_task_impl
47: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
48: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners
49: rustc_typeck::check::typeck_item_bodies
50: rustc::ty::query::__query_compute::typeck_item_bodies
51: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_item_bodies<'tcx>>::compute
52: rustc::dep_graph::graph::DepGraph::with_task_impl
53: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
54: rustc::util::common::time
55: rustc_typeck::check_crate
56: <std::thread::local::LocalKey<T>>::with
57: rustc::ty::context::TyCtxt::create_and_enter
58: rustc_driver::driver::compile_input
59: rustc_driver::run_compiler_with_pool
60: <scoped_tls::ScopedKey<T>>::set
61: rustc_driver::run_compiler
62: rustc_driver::monitor::{{closure}}
63: __rust_maybe_catch_panic
64: <F as alloc::boxed::FnBox<A>>::call_box
65: std::sys_common::thread::start_thread
66: std::sys::unix::thread::Thread::new::thread_start
67: start_thread
68: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/binop/binop-logic-int.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"fn main() { let x = 1 && 2; }","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `main`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/binop/binop-logic-int.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"fn main() { let x = 1 && 2; }","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `main`\n"}
{"message":"#2 [typeck_item_bodies] type-checking all item bodies","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/binop/binop-logic-int.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"fn main() { let x = 1 && 2; }","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [typeck_item_bodies] type-checking all item bodies\n"}
end of query stack
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/binop/binop-logic-int.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/bad/bad-const-type.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/bad/bad-const-type.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/bad/bad-const-type/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/bad/bad-const-type/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc::infer::InferCtxt::probe
27: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_return_type
28: rustc_typeck::check::FnCtxt::suggest_ref_or_into
29: rustc_typeck::check::demand::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::demand_coerce_diag
30: rustc_typeck::check::demand::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::demand_coerce
31: rustc::ty::context::GlobalCtxt::enter_local
32: rustc_typeck::check::typeck_tables_of
33: rustc::ty::query::__query_compute::typeck_tables_of
34: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
35: rustc::dep_graph::graph::DepGraph::with_task_impl
36: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
37: rustc_typeck::check::check_item_type
38: rustc::hir::map::Map::visit_item_likes_in_module
39: rustc_typeck::check::check_mod_item_types
40: rustc::ty::query::__query_compute::check_mod_item_types
41: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::check_mod_item_types<'tcx>>::compute
42: rustc::dep_graph::graph::DepGraph::with_task_impl
43: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
44: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::ensure_query
45: rustc::session::Session::track_errors
46: rustc::util::common::time
47: rustc_typeck::check_crate
48: <std::thread::local::LocalKey<T>>::with
49: rustc::ty::context::TyCtxt::create_and_enter
50: rustc_driver::driver::compile_input
51: rustc_driver::run_compiler_with_pool
52: <scoped_tls::ScopedKey<T>>::set
53: rustc_driver::run_compiler
54: rustc_driver::monitor::{{closure}}
55: __rust_maybe_catch_panic
56: <F as alloc::boxed::FnBox<A>>::call_box
57: std::sys_common::thread::start_thread
58: std::sys::unix::thread::Thread::new::thread_start
59: start_thread
60: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/bad/bad-const-type.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"static i: String = 10;","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `i`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/bad/bad-const-type.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"static i: String = 10;","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `i`\n"}
{"message":"#2 [check_mod_item_types] checking item types in top-level module","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/bad/bad-const-type.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"static i: String = 10;","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [check_mod_item_types] checking item types in top-level module\n"}
end of query stack
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/bad/bad-const-type.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/auto-ref-slice-plus-ref.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/auto-ref-slice-plus-ref.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/auto-ref-slice-plus-ref/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/auto-ref-slice-plus-ref/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc_typeck::check::method::probe::ProbeContext::pick
27: rustc::infer::InferCtxt::probe
28: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_name
29: rustc_typeck::check::method::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::lookup_method
30: rustc_typeck::check::FnCtxt::check_expr_kind
31: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
32: rustc_typeck::check::FnCtxt::check_stmt
33: rustc_typeck::check::FnCtxt::check_block_with_expected
34: rustc_typeck::check::FnCtxt::check_expr_kind
35: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
36: rustc_typeck::check::FnCtxt::check_return_expr
37: rustc_typeck::check::check_fn
38: rustc::ty::context::GlobalCtxt::enter_local
39: rustc_typeck::check::typeck_tables_of
40: rustc::ty::query::__query_compute::typeck_tables_of
41: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
42: rustc::dep_graph::graph::DepGraph::with_task_impl
43: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
44: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners
45: rustc_typeck::check::typeck_item_bodies
46: rustc::ty::query::__query_compute::typeck_item_bodies
47: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_item_bodies<'tcx>>::compute
48: rustc::dep_graph::graph::DepGraph::with_task_impl
49: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
50: rustc::util::common::time
51: rustc_typeck::check_crate
52: <std::thread::local::LocalKey<T>>::with
53: rustc::ty::context::TyCtxt::create_and_enter
54: rustc_driver::driver::compile_input
55: rustc_driver::run_compiler_with_pool
56: <scoped_tls::ScopedKey<T>>::set
57: rustc_driver::run_compiler
58: rustc_driver::monitor::{{closure}}
59: __rust_maybe_catch_panic
60: <F as alloc::boxed::FnBox<A>>::call_box
61: std::sys_common::thread::start_thread
62: std::sys::unix::thread::Thread::new::thread_start
63: start_thread
64: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/auto-ref-slice-plus-ref.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"fn main() {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `main`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/auto-ref-slice-plus-ref.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"fn main() {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `main`\n"}
{"message":"#2 [typeck_item_bodies] type-checking all item bodies","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/auto-ref-slice-plus-ref.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"fn main() {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [typeck_item_bodies] type-checking all item bodies\n"}
end of query stack
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/auto-ref-slice-plus-ref.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/block-result/block-must-not-have-result-do.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/block-result/block-must-not-have-result-do.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/block-result/block-must-not-have-result-do/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/block-result/block-must-not-have-result-do/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc::infer::InferCtxt::probe
27: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_return_type
28: rustc_typeck::check::FnCtxt::suggest_ref_or_into
29: rustc_typeck::check::FnCtxt::suggest_mismatched_types_on_tail
30: <rustc_typeck::check::coercion::CoerceMany<'gcx, 'tcx, 'exprs, E>>::report_return_mismatched_types
31: <rustc_typeck::check::coercion::CoerceMany<'gcx, 'tcx, 'exprs, E>>::coerce_inner
32: rustc_typeck::check::FnCtxt::check_block_with_expected
33: rustc_typeck::check::FnCtxt::check_expr_kind
34: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
35: rustc_typeck::check::FnCtxt::check_block_with_expected
36: rustc_typeck::check::FnCtxt::check_expr_kind
37: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
38: rustc_typeck::check::FnCtxt::check_return_expr
39: rustc_typeck::check::check_fn
40: rustc::ty::context::GlobalCtxt::enter_local
41: rustc_typeck::check::typeck_tables_of
42: rustc::ty::query::__query_compute::typeck_tables_of
43: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
44: rustc::dep_graph::graph::DepGraph::with_task_impl
45: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
46: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners
47: rustc_typeck::check::typeck_item_bodies
48: rustc::ty::query::__query_compute::typeck_item_bodies
49: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_item_bodies<'tcx>>::compute
50: rustc::dep_graph::graph::DepGraph::with_task_impl
51: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
52: rustc::util::common::time
53: rustc_typeck::check_crate
54: <std::thread::local::LocalKey<T>>::with
55: rustc::ty::context::TyCtxt::create_and_enter
56: rustc_driver::driver::compile_input
57: rustc_driver::run_compiler_with_pool
58: <scoped_tls::ScopedKey<T>>::set
59: rustc_driver::run_compiler
60: rustc_driver::monitor::{{closure}}
61: __rust_maybe_catch_panic
62: <F as alloc::boxed::FnBox<A>>::call_box
63: std::sys_common::thread::start_thread
64: std::sys::unix::thread::Thread::new::thread_start
65: start_thread
66: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/block-result/block-must-not-have-result-do.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"fn main() {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `main`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/block-result/block-must-not-have-result-do.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"fn main() {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `main`\n"}
{"message":"#2 [typeck_item_bodies] type-checking all item bodies","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/block-result/block-must-not-have-result-do.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"fn main() {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [typeck_item_bodies] type-checking all item bodies\n"}
end of query stack
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/block-result/block-must-not-have-result-do.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/block-result/block-must-not-have-result-while.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/block-result/block-must-not-have-result-while.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/block-result/block-must-not-have-result-while/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/block-result/block-must-not-have-result-while/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc::infer::InferCtxt::probe
27: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_return_type
28: rustc_typeck::check::FnCtxt::suggest_ref_or_into
29: rustc_typeck::check::FnCtxt::suggest_mismatched_types_on_tail
30: <rustc_typeck::check::coercion::CoerceMany<'gcx, 'tcx, 'exprs, E>>::report_return_mismatched_types
31: <rustc_typeck::check::coercion::CoerceMany<'gcx, 'tcx, 'exprs, E>>::coerce_inner
32: rustc_typeck::check::FnCtxt::check_block_with_expected
33: rustc_typeck::check::FnCtxt::check_expr_kind
34: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
35: rustc_typeck::check::FnCtxt::check_block_with_expected
36: rustc_typeck::check::FnCtxt::check_expr_kind
37: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
38: rustc_typeck::check::FnCtxt::check_return_expr
39: rustc_typeck::check::check_fn
40: rustc::ty::context::GlobalCtxt::enter_local
41: rustc_typeck::check::typeck_tables_of
42: rustc::ty::query::__query_compute::typeck_tables_of
43: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
44: rustc::dep_graph::graph::DepGraph::with_task_impl
45: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
46: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners
47: rustc_typeck::check::typeck_item_bodies
48: rustc::ty::query::__query_compute::typeck_item_bodies
49: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_item_bodies<'tcx>>::compute
50: rustc::dep_graph::graph::DepGraph::with_task_impl
51: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
52: rustc::util::common::time
53: rustc_typeck::check_crate
54: <std::thread::local::LocalKey<T>>::with
55: rustc::ty::context::TyCtxt::create_and_enter
56: rustc_driver::driver::compile_input
57: rustc_driver::run_compiler_with_pool
58: <scoped_tls::ScopedKey<T>>::set
59: rustc_driver::run_compiler
60: rustc_driver::monitor::{{closure}}
61: __rust_maybe_catch_panic
62: <F as alloc::boxed::FnBox<A>>::call_box
63: std::sys_common::thread::start_thread
64: std::sys::unix::thread::Thread::new::thread_start
65: start_thread
66: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/block-result/block-must-not-have-result-while.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"fn main() {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `main`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/block-result/block-must-not-have-result-while.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"fn main() {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `main`\n"}
{"message":"#2 [typeck_item_bodies] type-checking all item bodies","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/block-result/block-must-not-have-result-while.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"fn main() {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [typeck_item_bodies] type-checking all item bodies\n"}
end of query stack
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/block-result/block-must-not-have-result-while.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/binop/binop-logic-float.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/binop/binop-logic-float.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/binop/binop-logic-float/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/binop/binop-logic-float/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc::infer::InferCtxt::probe
27: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_return_type
28: rustc_typeck::check::FnCtxt::suggest_ref_or_into
29: rustc_typeck::check::demand::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::demand_coerce_diag
30: rustc_typeck::check::demand::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::demand_coerce
31: rustc_typeck::check::op::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::check_binop
32: rustc_typeck::check::FnCtxt::check_expr_kind
33: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
34: rustc_typeck::check::FnCtxt::check_decl_initializer
35: rustc_typeck::check::FnCtxt::check_decl_local
36: rustc_typeck::check::FnCtxt::check_stmt
37: rustc_typeck::check::FnCtxt::check_block_with_expected
38: rustc_typeck::check::FnCtxt::check_expr_kind
39: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
40: rustc_typeck::check::FnCtxt::check_return_expr
41: rustc_typeck::check::check_fn
42: rustc::ty::context::GlobalCtxt::enter_local
43: rustc_typeck::check::typeck_tables_of
44: rustc::ty::query::__query_compute::typeck_tables_of
45: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
46: rustc::dep_graph::graph::DepGraph::with_task_impl
47: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
48: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners
49: rustc_typeck::check::typeck_item_bodies
50: rustc::ty::query::__query_compute::typeck_item_bodies
51: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_item_bodies<'tcx>>::compute
52: rustc::dep_graph::graph::DepGraph::with_task_impl
53: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
54: rustc::util::common::time
55: rustc_typeck::check_crate
56: <std::thread::local::LocalKey<T>>::with
57: rustc::ty::context::TyCtxt::create_and_enter
58: rustc_driver::driver::compile_input
59: rustc_driver::run_compiler_with_pool
60: <scoped_tls::ScopedKey<T>>::set
61: rustc_driver::run_compiler
62: rustc_driver::monitor::{{closure}}
63: __rust_maybe_catch_panic
64: <F as alloc::boxed::FnBox<A>>::call_box
65: std::sys_common::thread::start_thread
66: std::sys::unix::thread::Thread::new::thread_start
67: start_thread
68: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/binop/binop-logic-float.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"fn main() { let x = 1.0_f32 || 2.0_f32; }","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `main`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/binop/binop-logic-float.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"fn main() { let x = 1.0_f32 || 2.0_f32; }","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `main`\n"}
{"message":"#2 [typeck_item_bodies] type-checking all item bodies","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/binop/binop-logic-float.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"fn main() { let x = 1.0_f32 || 2.0_f32; }","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [typeck_item_bodies] type-checking all item bodies\n"}
end of query stack
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/binop/binop-logic-float.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/block-result/block-must-not-have-result-res.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/block-result/block-must-not-have-result-res.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/block-result/block-must-not-have-result-res/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/block-result/block-must-not-have-result-res/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc::infer::InferCtxt::probe
27: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_return_type
28: rustc_typeck::check::FnCtxt::suggest_ref_or_into
29: rustc_typeck::check::FnCtxt::suggest_mismatched_types_on_tail
30: <rustc_typeck::check::coercion::CoerceMany<'gcx, 'tcx, 'exprs, E>>::report_return_mismatched_types
31: <rustc_typeck::check::coercion::CoerceMany<'gcx, 'tcx, 'exprs, E>>::coerce_inner
32: rustc_typeck::check::FnCtxt::check_block_with_expected
33: rustc_typeck::check::FnCtxt::check_expr_kind
34: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
35: rustc_typeck::check::FnCtxt::check_return_expr
36: rustc_typeck::check::check_fn
37: rustc::ty::context::GlobalCtxt::enter_local
38: rustc_typeck::check::typeck_tables_of
39: rustc::ty::query::__query_compute::typeck_tables_of
40: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
41: rustc::dep_graph::graph::DepGraph::with_task_impl
42: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
43: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners
44: rustc_typeck::check::typeck_item_bodies
45: rustc::ty::query::__query_compute::typeck_item_bodies
46: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_item_bodies<'tcx>>::compute
47: rustc::dep_graph::graph::DepGraph::with_task_impl
48: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
49: rustc::util::common::time
50: rustc_typeck::check_crate
51: <std::thread::local::LocalKey<T>>::with
52: rustc::ty::context::TyCtxt::create_and_enter
53: rustc_driver::driver::compile_input
54: rustc_driver::run_compiler_with_pool
55: <scoped_tls::ScopedKey<T>>::set
56: rustc_driver::run_compiler
57: rustc_driver::monitor::{{closure}}
58: __rust_maybe_catch_panic
59: <F as alloc::boxed::FnBox<A>>::call_box
60: std::sys_common::thread::start_thread
61: std::sys::unix::thread::Thread::new::thread_start
62: start_thread
63: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/block-result/block-must-not-have-result-res.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"struct R;","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `<R as std::ops::Drop>::drop`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/block-result/block-must-not-have-result-res.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"struct R;","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `<R as std::ops::Drop>::drop`\n"}
{"message":"#2 [typeck_item_bodies] type-checking all item bodies","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/block-result/block-must-not-have-result-res.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"struct R;","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [typeck_item_bodies] type-checking all item bodies\n"}
end of query stack
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/block-result/block-must-not-have-result-res.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/block-result/issue-13624.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/block-result/issue-13624.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/block-result/issue-13624/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/block-result/issue-13624/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc::infer::InferCtxt::probe
27: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_return_type
28: rustc_typeck::check::FnCtxt::suggest_ref_or_into
29: rustc_typeck::check::FnCtxt::suggest_mismatched_types_on_tail
30: <rustc_typeck::check::coercion::CoerceMany<'gcx, 'tcx, 'exprs, E>>::report_return_mismatched_types
31: <rustc_typeck::check::coercion::CoerceMany<'gcx, 'tcx, 'exprs, E>>::coerce_inner
32: rustc_typeck::check::FnCtxt::check_block_with_expected
33: rustc_typeck::check::FnCtxt::check_expr_kind
34: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
35: rustc_typeck::check::FnCtxt::check_return_expr
36: rustc_typeck::check::check_fn
37: rustc::ty::context::GlobalCtxt::enter_local
38: rustc_typeck::check::typeck_tables_of
39: rustc::ty::query::__query_compute::typeck_tables_of
40: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
41: rustc::dep_graph::graph::DepGraph::with_task_impl
42: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
43: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners
44: rustc_typeck::check::typeck_item_bodies
45: rustc::ty::query::__query_compute::typeck_item_bodies
46: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_item_bodies<'tcx>>::compute
47: rustc::dep_graph::graph::DepGraph::with_task_impl
48: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
49: rustc::util::common::time
50: rustc_typeck::check_crate
51: <std::thread::local::LocalKey<T>>::with
52: rustc::ty::context::TyCtxt::create_and_enter
53: rustc_driver::driver::compile_input
54: rustc_driver::run_compiler_with_pool
55: <scoped_tls::ScopedKey<T>>::set
56: rustc_driver::run_compiler
57: rustc_driver::monitor::{{closure}}
58: __rust_maybe_catch_panic
59: <F as alloc::boxed::FnBox<A>>::call_box
60: std::sys_common::thread::start_thread
61: std::sys::unix::thread::Thread::new::thread_start
62: start_thread
63: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/block-result/issue-13624.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"mod a {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `a::get_enum_struct_variant`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/block-result/issue-13624.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"mod a {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `a::get_enum_struct_variant`\n"}
{"message":"#2 [typeck_item_bodies] type-checking all item bodies","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/block-result/issue-13624.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"mod a {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [typeck_item_bodies] type-checking all item bodies\n"}
end of query stack
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/block-result/issue-13624.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/block-result/issue-20862.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/block-result/issue-20862.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/block-result/issue-20862/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/block-result/issue-20862/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc::infer::InferCtxt::probe
27: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_return_type
28: rustc_typeck::check::FnCtxt::suggest_ref_or_into
29: rustc_typeck::check::FnCtxt::suggest_mismatched_types_on_tail
30: <rustc_typeck::check::coercion::CoerceMany<'gcx, 'tcx, 'exprs, E>>::report_return_mismatched_types
31: <rustc_typeck::check::coercion::CoerceMany<'gcx, 'tcx, 'exprs, E>>::coerce_inner
32: rustc_typeck::check::FnCtxt::check_block_with_expected
33: rustc_typeck::check::FnCtxt::check_expr_kind
34: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
35: rustc_typeck::check::FnCtxt::check_return_expr
36: rustc_typeck::check::check_fn
37: rustc::ty::context::GlobalCtxt::enter_local
38: rustc_typeck::check::typeck_tables_of
39: rustc::ty::query::__query_compute::typeck_tables_of
40: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
41: rustc::dep_graph::graph::DepGraph::with_task_impl
42: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
43: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners
44: rustc_typeck::check::typeck_item_bodies
45: rustc::ty::query::__query_compute::typeck_item_bodies
46: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_item_bodies<'tcx>>::compute
47: rustc::dep_graph::graph::DepGraph::with_task_impl
48: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
49: rustc::util::common::time
50: rustc_typeck::check_crate
51: <std::thread::local::LocalKey<T>>::with
52: rustc::ty::context::TyCtxt::create_and_enter
53: rustc_driver::driver::compile_input
54: rustc_driver::run_compiler_with_pool
55: <scoped_tls::ScopedKey<T>>::set
56: rustc_driver::run_compiler
57: rustc_driver::monitor::{{closure}}
58: __rust_maybe_catch_panic
59: <F as alloc::boxed::FnBox<A>>::call_box
60: std::sys_common::thread::start_thread
61: std::sys::unix::thread::Thread::new::thread_start
62: start_thread
63: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/block-result/issue-20862.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"fn foo(x: i32) {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `foo`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/block-result/issue-20862.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"fn foo(x: i32) {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `foo`\n"}
{"message":"#2 [typeck_item_bodies] type-checking all item bodies","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/block-result/issue-20862.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"fn foo(x: i32) {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [typeck_item_bodies] type-checking all item bodies\n"}
end of query stack
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/block-result/issue-20862.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/block-result/issue-3563.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/block-result/issue-3563.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/block-result/issue-3563/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/block-result/issue-3563/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc_typeck::check::method::probe::ProbeContext::pick
27: rustc::infer::InferCtxt::probe
28: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_name
29: rustc_typeck::check::method::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::lookup_method
30: rustc_typeck::check::FnCtxt::check_expr_kind
31: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
32: rustc_typeck::check::FnCtxt::check_return_expr
33: rustc_typeck::check::check_fn
34: rustc_typeck::check::closure::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::check_expr_closure
35: rustc_typeck::check::FnCtxt::check_expr_kind
36: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
37: rustc_typeck::check::FnCtxt::check_block_with_expected
38: rustc_typeck::check::FnCtxt::check_expr_kind
39: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
40: rustc_typeck::check::FnCtxt::check_return_expr
41: rustc_typeck::check::check_fn
42: rustc::ty::context::GlobalCtxt::enter_local
43: rustc_typeck::check::typeck_tables_of
44: rustc::ty::query::__query_compute::typeck_tables_of
45: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
46: rustc::dep_graph::graph::DepGraph::with_task_impl
47: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
48: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners
49: rustc_typeck::check::typeck_item_bodies
50: rustc::ty::query::__query_compute::typeck_item_bodies
51: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_item_bodies<'tcx>>::compute
52: rustc::dep_graph::graph::DepGraph::with_task_impl
53: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
54: rustc::util::common::time
55: rustc_typeck::check_crate
56: <std::thread::local::LocalKey<T>>::with
57: rustc::ty::context::TyCtxt::create_and_enter
58: rustc_driver::driver::compile_input
59: rustc_driver::run_compiler_with_pool
60: <scoped_tls::ScopedKey<T>>::set
61: rustc_driver::run_compiler
62: rustc_driver::monitor::{{closure}}
63: __rust_maybe_catch_panic
64: <F as alloc::boxed::FnBox<A>>::call_box
65: std::sys_common::thread::start_thread
66: std::sys::unix::thread::Thread::new::thread_start
67: start_thread
68: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/block-result/issue-3563.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"trait A {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `A::a`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/block-result/issue-3563.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"trait A {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `A::a`\n"}
{"message":"#2 [typeck_item_bodies] type-checking all item bodies","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/block-result/issue-3563.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"trait A {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [typeck_item_bodies] type-checking all item bodies\n"}
end of query stack
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/block-result/issue-3563.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/block-result/unexpected-return-on-unit.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/block-result/unexpected-return-on-unit.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/block-result/unexpected-return-on-unit/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/block-result/unexpected-return-on-unit/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc::infer::InferCtxt::probe
27: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_return_type
28: rustc_typeck::check::FnCtxt::suggest_ref_or_into
29: rustc_typeck::check::FnCtxt::suggest_mismatched_types_on_tail
30: <rustc_typeck::check::coercion::CoerceMany<'gcx, 'tcx, 'exprs, E>>::report_return_mismatched_types
31: <rustc_typeck::check::coercion::CoerceMany<'gcx, 'tcx, 'exprs, E>>::coerce_inner
32: rustc_typeck::check::FnCtxt::check_block_with_expected
33: rustc_typeck::check::FnCtxt::check_expr_kind
34: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
35: rustc_typeck::check::FnCtxt::check_return_expr
36: rustc_typeck::check::check_fn
37: rustc::ty::context::GlobalCtxt::enter_local
38: rustc_typeck::check::typeck_tables_of
39: rustc::ty::query::__query_compute::typeck_tables_of
40: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
41: rustc::dep_graph::graph::DepGraph::with_task_impl
42: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
43: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners
44: rustc_typeck::check::typeck_item_bodies
45: rustc::ty::query::__query_compute::typeck_item_bodies
46: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_item_bodies<'tcx>>::compute
47: rustc::dep_graph::graph::DepGraph::with_task_impl
48: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
49: rustc::util::common::time
50: rustc_typeck::check_crate
51: <std::thread::local::LocalKey<T>>::with
52: rustc::ty::context::TyCtxt::create_and_enter
53: rustc_driver::driver::compile_input
54: rustc_driver::run_compiler_with_pool
55: <scoped_tls::ScopedKey<T>>::set
56: rustc_driver::run_compiler
57: rustc_driver::monitor::{{closure}}
58: __rust_maybe_catch_panic
59: <F as alloc::boxed::FnBox<A>>::call_box
60: std::sys_common::thread::start_thread
61: std::sys::unix::thread::Thread::new::thread_start
62: start_thread
63: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/block-result/unexpected-return-on-unit.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// Test that we do some basic error correction in the tokeniser (and don't spew","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `bar`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/block-result/unexpected-return-on-unit.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// Test that we do some basic error correction in the tokeniser (and don't spew","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `bar`\n"}
{"message":"#2 [typeck_item_bodies] type-checking all item bodies","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/block-result/unexpected-return-on-unit.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// Test that we do some basic error correction in the tokeniser (and don't spew","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [typeck_item_bodies] type-checking all item bodies\n"}
end of query stack
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/block-result/unexpected-return-on-unit.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/block-result/issue-22645.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/block-result/issue-22645.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/block-result/issue-22645/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/block-result/issue-22645/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"the trait bound `{integer}: Scalar` is not satisfied","code":{"code":"E0277","explanation":"\nYou tried to use a type which doesn't implement some trait in a place which\nexpected that trait. Erroneous code example:\n\n```compile_fail,E0277\n// here we declare the Foo trait with a bar method\ntrait Foo {\n fn bar(&self);\n}\n\n// we now declare a function which takes an object implementing the Foo trait\nfn some_func<T: Foo>(foo: T) {\n foo.bar();\n}\n\nfn main() {\n // we now call the method with the i32 type, which doesn't implement\n // the Foo trait\n some_func(5i32); // error: the trait bound `i32 : Foo` is not satisfied\n}\n```\n\nIn order to fix this error, verify that the type you're using does implement\nthe trait. Example:\n\n```\ntrait Foo {\n fn bar(&self);\n}\n\nfn some_func<T: Foo>(foo: T) {\n foo.bar(); // we can now use this method since i32 implements the\n // Foo trait\n}\n\n// we implement the trait on the i32 type\nimpl Foo for i32 {\n fn bar(&self) {}\n}\n\nfn main() {\n some_func(5i32); // ok!\n}\n```\n\nOr in a generic context, an erroneous code example would look like:\n\n```compile_fail,E0277\nfn some_func<T>(foo: T) {\n println!(\"{:?}\", foo); // error: the trait `core::fmt::Debug` is not\n // implemented for the type `T`\n}\n\nfn main() {\n // We now call the method with the i32 type,\n // which *does* implement the Debug trait.\n some_func(5i32);\n}\n```\n\nNote that the error here is in the definition of the generic function: Although\nwe only call it with a parameter that does implement `Debug`, the compiler\nstill rejects the function: It must work with all possible input types. In\norder to make this example compile, we need to restrict the generic type we're\naccepting:\n\n```\nuse std::fmt;\n\n// Restrict the input type to types that implement Debug.\nfn some_func<T: fmt::Debug>(foo: T) {\n println!(\"{:?}\", foo);\n}\n\nfn main() {\n // Calling the method is still fine, as i32 implements Debug.\n some_func(5i32);\n\n // This would fail to compile now:\n // struct WithoutDebug;\n // some_func(WithoutDebug);\n}\n```\n\nRust only looks at the signature of the called function, as such it must\nalready specify all requirements that will be used for every type parameter.\n"},"level":"error","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/block-result/issue-22645.rs","byte_start":213,"byte_end":214,"line_start":15,"line_end":15,"column_start":5,"column_end":6,"is_primary":true,"text":[{"text":" b + 3 //~ ERROR E0277","highlight_start":5,"highlight_end":6}],"label":"the trait `Scalar` is not implemented for `{integer}`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"the following implementations were found:\n <f64 as Scalar>","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"required because of the requirements on the impl of `std::ops::Add<{integer}>` for `Bob`","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error[E0277]: the trait bound `{integer}: Scalar` is not satisfied\n --> /home/centril/programming/rust/src/test/ui/block-result/issue-22645.rs:15:5\n |\nLL | b + 3 //~ ERROR E0277\n | ^ the trait `Scalar` is not implemented for `{integer}`\n |\n = help: the following implementations were found:\n <f64 as Scalar>\n = note: required because of the requirements on the impl of `std::ops::Add<{integer}>` for `Bob`\n\n"}
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc::infer::InferCtxt::probe
27: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_return_type
28: rustc_typeck::check::FnCtxt::suggest_ref_or_into
29: rustc_typeck::check::FnCtxt::suggest_mismatched_types_on_tail
30: <rustc_typeck::check::coercion::CoerceMany<'gcx, 'tcx, 'exprs, E>>::report_return_mismatched_types
31: <rustc_typeck::check::coercion::CoerceMany<'gcx, 'tcx, 'exprs, E>>::coerce_inner
32: rustc_typeck::check::FnCtxt::check_block_with_expected
33: rustc_typeck::check::FnCtxt::check_expr_kind
34: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
35: rustc_typeck::check::FnCtxt::check_return_expr
36: rustc_typeck::check::check_fn
37: rustc::ty::context::GlobalCtxt::enter_local
38: rustc_typeck::check::typeck_tables_of
39: rustc::ty::query::__query_compute::typeck_tables_of
40: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
41: rustc::dep_graph::graph::DepGraph::with_task_impl
42: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
43: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners
44: rustc_typeck::check::typeck_item_bodies
45: rustc::ty::query::__query_compute::typeck_item_bodies
46: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_item_bodies<'tcx>>::compute
47: rustc::dep_graph::graph::DepGraph::with_task_impl
48: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
49: rustc::util::common::time
50: rustc_typeck::check_crate
51: <std::thread::local::LocalKey<T>>::with
52: rustc::ty::context::TyCtxt::create_and_enter
53: rustc_driver::driver::compile_input
54: rustc_driver::run_compiler_with_pool
55: <scoped_tls::ScopedKey<T>>::set
56: rustc_driver::run_compiler
57: rustc_driver::monitor::{{closure}}
58: __rust_maybe_catch_panic
59: <F as alloc::boxed::FnBox<A>>::call_box
60: std::sys_common::thread::start_thread
61: std::sys::unix::thread::Thread::new::thread_start
62: start_thread
63: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/block-result/issue-22645.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"use std::ops::Add;","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `main`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/block-result/issue-22645.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"use std::ops::Add;","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `main`\n"}
{"message":"#2 [typeck_item_bodies] type-checking all item bodies","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/block-result/issue-22645.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"use std::ops::Add;","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [typeck_item_bodies] type-checking all item bodies\n"}
end of query stack
{"message":"aborting due to 2 previous errors","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to 2 previous errors\n\n"}
{"message":"For more information about this error, try `rustc --explain E0277`.","code":null,"level":"","spans":[],"children":[],"rendered":"For more information about this error, try `rustc --explain E0277`.\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/block-result/issue-22645.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/bogus-tag.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/bogus-tag.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/bogus-tag/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/bogus-tag/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc_typeck::check::method::probe::ProbeContext::pick
27: rustc::infer::InferCtxt::probe
28: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_name
29: rustc_typeck::check::method::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::resolve_ufcs
30: rustc_typeck::check::FnCtxt::resolve_ty_and_def_ufcs
31: rustc_typeck::check::_match::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::check_pat_tuple_struct
32: rustc_typeck::check::_match::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::check_pat_walk
33: <core::iter::adapters::Map<I, F> as core::iter::traits::iterator::Iterator>::fold
34: <alloc::vec::Vec<T> as alloc::vec::SpecExtend<T, I>>::from_iter
35: rustc_typeck::check::_match::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::check_match
36: rustc_typeck::check::FnCtxt::check_expr_kind
37: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
38: rustc_typeck::check::FnCtxt::check_block_with_expected
39: rustc_typeck::check::FnCtxt::check_expr_kind
40: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
41: rustc_typeck::check::FnCtxt::check_return_expr
42: rustc_typeck::check::check_fn
43: rustc::ty::context::GlobalCtxt::enter_local
44: rustc_typeck::check::typeck_tables_of
45: rustc::ty::query::__query_compute::typeck_tables_of
46: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
47: rustc::dep_graph::graph::DepGraph::with_task_impl
48: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
49: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners
50: rustc_typeck::check::typeck_item_bodies
51: rustc::ty::query::__query_compute::typeck_item_bodies
52: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_item_bodies<'tcx>>::compute
53: rustc::dep_graph::graph::DepGraph::with_task_impl
54: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
55: rustc::util::common::time
56: rustc_typeck::check_crate
57: <std::thread::local::LocalKey<T>>::with
58: rustc::ty::context::TyCtxt::create_and_enter
59: rustc_driver::driver::compile_input
60: rustc_driver::run_compiler_with_pool
61: <scoped_tls::ScopedKey<T>>::set
62: rustc_driver::run_compiler
63: rustc_driver::monitor::{{closure}}
64: __rust_maybe_catch_panic
65: <F as alloc::boxed::FnBox<A>>::call_box
66: std::sys_common::thread::start_thread
67: std::sys::unix::thread::Thread::new::thread_start
68: start_thread
69: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/bogus-tag.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"enum Color { Rgb(isize, isize, isize), Rgba(isize, isize, isize, isize), }","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `main`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/bogus-tag.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"enum Color { Rgb(isize, isize, isize), Rgba(isize, isize, isize, isize), }","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `main`\n"}
{"message":"#2 [typeck_item_bodies] type-checking all item bodies","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/bogus-tag.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"enum Color { Rgb(isize, isize, isize), Rgba(isize, isize, isize, isize), }","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [typeck_item_bodies] type-checking all item bodies\n"}
end of query stack
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/bogus-tag.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/block-result/issue-5500.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/block-result/issue-5500.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/block-result/issue-5500/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/block-result/issue-5500/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc::infer::InferCtxt::probe
27: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_return_type
28: rustc_typeck::check::FnCtxt::suggest_ref_or_into
29: rustc_typeck::check::FnCtxt::suggest_mismatched_types_on_tail
30: <rustc_typeck::check::coercion::CoerceMany<'gcx, 'tcx, 'exprs, E>>::report_return_mismatched_types
31: <rustc_typeck::check::coercion::CoerceMany<'gcx, 'tcx, 'exprs, E>>::coerce_inner
32: rustc_typeck::check::FnCtxt::check_block_with_expected
33: rustc_typeck::check::FnCtxt::check_expr_kind
34: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
35: rustc_typeck::check::FnCtxt::check_return_expr
36: rustc_typeck::check::check_fn
37: rustc::ty::context::GlobalCtxt::enter_local
38: rustc_typeck::check::typeck_tables_of
39: rustc::ty::query::__query_compute::typeck_tables_of
40: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
41: rustc::dep_graph::graph::DepGraph::with_task_impl
42: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
43: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners
44: rustc_typeck::check::typeck_item_bodies
45: rustc::ty::query::__query_compute::typeck_item_bodies
46: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_item_bodies<'tcx>>::compute
47: rustc::dep_graph::graph::DepGraph::with_task_impl
48: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
49: rustc::util::common::time
50: rustc_typeck::check_crate
51: <std::thread::local::LocalKey<T>>::with
52: rustc::ty::context::TyCtxt::create_and_enter
53: rustc_driver::driver::compile_input
54: rustc_driver::run_compiler_with_pool
55: <scoped_tls::ScopedKey<T>>::set
56: rustc_driver::run_compiler
57: rustc_driver::monitor::{{closure}}
58: __rust_maybe_catch_panic
59: <F as alloc::boxed::FnBox<A>>::call_box
60: std::sys_common::thread::start_thread
61: std::sys::unix::thread::Thread::new::thread_start
62: start_thread
63: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/block-result/issue-5500.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"fn main() {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `main`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/block-result/issue-5500.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"fn main() {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `main`\n"}
{"message":"#2 [typeck_item_bodies] type-checking all item bodies","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/block-result/issue-5500.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"fn main() {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [typeck_item_bodies] type-checking all item bodies\n"}
end of query stack
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/block-result/issue-5500.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/break-while-condition.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/break-while-condition.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/break-while-condition/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/break-while-condition/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"mismatched types","code":{"code":"E0308","explanation":"\nThis error occurs when the compiler was unable to infer the concrete type of a\nvariable. It can occur for several cases, the most common of which is a\nmismatch in the expected type that the compiler inferred for a variable's\ninitializing expression, and the actual type explicitly assigned to the\nvariable.\n\nFor example:\n\n```compile_fail,E0308\nlet x: i32 = \"I am not a number!\";\n// ~~~ ~~~~~~~~~~~~~~~~~~~~\n// | |\n// | initializing expression;\n// | compiler infers type `&str`\n// |\n// type `i32` assigned to variable `x`\n```\n"},"level":"error","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/break-while-condition.rs","byte_start":229,"byte_end":302,"line_start":9,"line_end":11,"column_start":20,"column_end":10,"is_primary":true,"text":[{"text":" let _: ! = { //~ ERROR mismatched types","highlight_start":20,"highlight_end":48},{"text":" 'a: while break 'a {};","highlight_start":1,"highlight_end":35},{"text":" };","highlight_start":1,"highlight_end":10}],"label":"expected !, found ()","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"expected type `!`\n found type `()`","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error[E0308]: mismatched types\n --> /home/centril/programming/rust/src/test/ui/break-while-condition.rs:9:20\n |\nLL | let _: ! = { //~ ERROR mismatched types\n | ____________________^\nLL | | 'a: while break 'a {};\nLL | | };\n | |_________^ expected !, found ()\n |\n = note: expected type `!`\n found type `()`\n\n"}
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc::infer::InferCtxt::probe
27: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_return_type
28: rustc_typeck::check::FnCtxt::suggest_ref_or_into
29: rustc_typeck::check::FnCtxt::suggest_mismatched_types_on_tail
30: <rustc_typeck::check::coercion::CoerceMany<'gcx, 'tcx, 'exprs, E>>::report_return_mismatched_types
31: <rustc_typeck::check::coercion::CoerceMany<'gcx, 'tcx, 'exprs, E>>::coerce_inner
32: rustc_typeck::check::FnCtxt::check_block_with_expected
33: rustc_typeck::check::FnCtxt::check_expr_kind
34: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
35: rustc_typeck::check::FnCtxt::check_decl_initializer
36: rustc_typeck::check::FnCtxt::check_decl_local
37: rustc_typeck::check::FnCtxt::check_stmt
38: rustc_typeck::check::FnCtxt::check_block_with_expected
39: rustc_typeck::check::FnCtxt::check_expr_kind
40: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
41: rustc_typeck::check::FnCtxt::check_expr_kind
42: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
43: rustc_typeck::check::FnCtxt::check_expr_meets_expectation_or_error
44: rustc_typeck::check::FnCtxt::check_stmt
45: rustc_typeck::check::FnCtxt::check_block_with_expected
46: rustc_typeck::check::FnCtxt::check_expr_kind
47: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
48: rustc_typeck::check::FnCtxt::check_return_expr
49: rustc_typeck::check::check_fn
50: rustc::ty::context::GlobalCtxt::enter_local
51: rustc_typeck::check::typeck_tables_of
52: rustc::ty::query::__query_compute::typeck_tables_of
53: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
54: rustc::dep_graph::graph::DepGraph::with_task_impl
55: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
56: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners
57: rustc_typeck::check::typeck_item_bodies
58: rustc::ty::query::__query_compute::typeck_item_bodies
59: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_item_bodies<'tcx>>::compute
60: rustc::dep_graph::graph::DepGraph::with_task_impl
61: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
62: rustc::util::common::time
63: rustc_typeck::check_crate
64: <std::thread::local::LocalKey<T>>::with
65: rustc::ty::context::TyCtxt::create_and_enter
66: rustc_driver::driver::compile_input
67: rustc_driver::run_compiler_with_pool
68: <scoped_tls::ScopedKey<T>>::set
69: rustc_driver::run_compiler
70: rustc_driver::monitor::{{closure}}
71: __rust_maybe_catch_panic
72: <F as alloc::boxed::FnBox<A>>::call_box
73: std::sys_common::thread::start_thread
74: std::sys::unix::thread::Thread::new::thread_start
75: start_thread
76: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/break-while-condition.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"#![feature(never_type)]","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `main`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/break-while-condition.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"#![feature(never_type)]","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `main`\n"}
{"message":"#2 [typeck_item_bodies] type-checking all item bodies","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/break-while-condition.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"#![feature(never_type)]","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [typeck_item_bodies] type-checking all item bodies\n"}
end of query stack
{"message":"aborting due to 2 previous errors","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to 2 previous errors\n\n"}
{"message":"For more information about this error, try `rustc --explain E0308`.","code":null,"level":"","spans":[],"children":[],"rendered":"For more information about this error, try `rustc --explain E0308`.\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/break-while-condition.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/call-fn-never-arg-wrong-type.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/call-fn-never-arg-wrong-type.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/call-fn-never-arg-wrong-type/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/call-fn-never-arg-wrong-type/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc::infer::InferCtxt::probe
27: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_return_type
28: rustc_typeck::check::FnCtxt::suggest_ref_or_into
29: rustc_typeck::check::demand::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::demand_coerce_diag
30: rustc_typeck::check::demand::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::demand_coerce
31: rustc_typeck::check::FnCtxt::check_argument_types
32: rustc_typeck::check::callee::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::confirm_builtin_call
33: rustc_typeck::check::callee::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::check_call
34: rustc_typeck::check::FnCtxt::check_expr_kind
35: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
36: rustc_typeck::check::FnCtxt::check_stmt
37: rustc_typeck::check::FnCtxt::check_block_with_expected
38: rustc_typeck::check::FnCtxt::check_expr_kind
39: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
40: rustc_typeck::check::FnCtxt::check_return_expr
41: rustc_typeck::check::check_fn
42: rustc::ty::context::GlobalCtxt::enter_local
43: rustc_typeck::check::typeck_tables_of
44: rustc::ty::query::__query_compute::typeck_tables_of
45: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
46: rustc::dep_graph::graph::DepGraph::with_task_impl
47: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
48: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners
49: rustc_typeck::check::typeck_item_bodies
50: rustc::ty::query::__query_compute::typeck_item_bodies
51: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_item_bodies<'tcx>>::compute
52: rustc::dep_graph::graph::DepGraph::with_task_impl
53: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
54: rustc::util::common::time
55: rustc_typeck::check_crate
56: <std::thread::local::LocalKey<T>>::with
57: rustc::ty::context::TyCtxt::create_and_enter
58: rustc_driver::driver::compile_input
59: rustc_driver::run_compiler_with_pool
60: <scoped_tls::ScopedKey<T>>::set
61: rustc_driver::run_compiler
62: rustc_driver::monitor::{{closure}}
63: __rust_maybe_catch_panic
64: <F as alloc::boxed::FnBox<A>>::call_box
65: std::sys_common::thread::start_thread
66: std::sys::unix::thread::Thread::new::thread_start
67: start_thread
68: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/call-fn-never-arg-wrong-type.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// Test that we can't pass other types for !","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `main`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/call-fn-never-arg-wrong-type.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// Test that we can't pass other types for !","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `main`\n"}
{"message":"#2 [typeck_item_bodies] type-checking all item bodies","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/call-fn-never-arg-wrong-type.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// Test that we can't pass other types for !","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [typeck_item_bodies] type-checking all item bodies\n"}
end of query stack
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/call-fn-never-arg-wrong-type.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/chalkify/type_inference.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/chalkify/type_inference.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/chalkify/type_inference/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-Z" "chalk" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/chalkify/type_inference/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc::infer::InferCtxt::probe
27: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_return_type
28: rustc_typeck::check::FnCtxt::suggest_ref_or_into
29: rustc_typeck::check::demand::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::demand_coerce_diag
30: rustc_typeck::check::demand::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::demand_coerce
31: rustc_typeck::check::FnCtxt::check_argument_types
32: rustc_typeck::check::callee::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::confirm_builtin_call
33: rustc_typeck::check::callee::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::check_call
34: rustc_typeck::check::FnCtxt::check_expr_kind
35: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
36: rustc_typeck::check::FnCtxt::check_stmt
37: rustc_typeck::check::FnCtxt::check_block_with_expected
38: rustc_typeck::check::FnCtxt::check_expr_kind
39: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
40: rustc_typeck::check::FnCtxt::check_return_expr
41: rustc_typeck::check::check_fn
42: rustc::ty::context::GlobalCtxt::enter_local
43: rustc_typeck::check::typeck_tables_of
44: rustc::ty::query::__query_compute::typeck_tables_of
45: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
46: rustc::dep_graph::graph::DepGraph::with_task_impl
47: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
48: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners
49: rustc_typeck::check::typeck_item_bodies
50: rustc::ty::query::__query_compute::typeck_item_bodies
51: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_item_bodies<'tcx>>::compute
52: rustc::dep_graph::graph::DepGraph::with_task_impl
53: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
54: rustc::util::common::time
55: rustc_typeck::check_crate
56: <std::thread::local::LocalKey<T>>::with
57: rustc::ty::context::TyCtxt::create_and_enter
58: rustc_driver::driver::compile_input
59: rustc_driver::run_compiler_with_pool
60: <scoped_tls::ScopedKey<T>>::set
61: rustc_driver::run_compiler
62: rustc_driver::monitor::{{closure}}
63: __rust_maybe_catch_panic
64: <F as alloc::boxed::FnBox<A>>::call_box
65: std::sys_common::thread::start_thread
66: std::sys::unix::thread::Thread::new::thread_start
67: start_thread
68: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/chalkify/type_inference.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// compile-flags: -Z chalk","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `main`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/chalkify/type_inference.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// compile-flags: -Z chalk","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `main`\n"}
{"message":"#2 [typeck_item_bodies] type-checking all item bodies","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/chalkify/type_inference.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// compile-flags: -Z chalk","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [typeck_item_bodies] type-checking all item bodies\n"}
end of query stack
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -Z chalk -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/chalkify/type_inference.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/closures/closure-no-fn-1.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/closures/closure-no-fn-1.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/closures/closure-no-fn-1/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/closures/closure-no-fn-1/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc::infer::InferCtxt::probe
27: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_return_type
28: rustc_typeck::check::FnCtxt::suggest_ref_or_into
29: rustc_typeck::check::demand::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::demand_coerce_diag
30: rustc_typeck::check::demand::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::demand_coerce
31: rustc_typeck::check::FnCtxt::check_decl_local
32: rustc_typeck::check::FnCtxt::check_stmt
33: rustc_typeck::check::FnCtxt::check_block_with_expected
34: rustc_typeck::check::FnCtxt::check_expr_kind
35: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
36: rustc_typeck::check::FnCtxt::check_return_expr
37: rustc_typeck::check::check_fn
38: rustc::ty::context::GlobalCtxt::enter_local
39: rustc_typeck::check::typeck_tables_of
40: rustc::ty::query::__query_compute::typeck_tables_of
41: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
42: rustc::dep_graph::graph::DepGraph::with_task_impl
43: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
44: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners
45: rustc_typeck::check::typeck_item_bodies
46: rustc::ty::query::__query_compute::typeck_item_bodies
47: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_item_bodies<'tcx>>::compute
48: rustc::dep_graph::graph::DepGraph::with_task_impl
49: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
50: rustc::util::common::time
51: rustc_typeck::check_crate
52: <std::thread::local::LocalKey<T>>::with
53: rustc::ty::context::TyCtxt::create_and_enter
54: rustc_driver::driver::compile_input
55: rustc_driver::run_compiler_with_pool
56: <scoped_tls::ScopedKey<T>>::set
57: rustc_driver::run_compiler
58: rustc_driver::monitor::{{closure}}
59: __rust_maybe_catch_panic
60: <F as alloc::boxed::FnBox<A>>::call_box
61: std::sys_common::thread::start_thread
62: std::sys::unix::thread::Thread::new::thread_start
63: start_thread
64: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/closures/closure-no-fn-1.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// Ensure that capturing closures are never coerced to fns","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `main`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/closures/closure-no-fn-1.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// Ensure that capturing closures are never coerced to fns","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `main`\n"}
{"message":"#2 [typeck_item_bodies] type-checking all item bodies","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/closures/closure-no-fn-1.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// Ensure that capturing closures are never coerced to fns","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [typeck_item_bodies] type-checking all item bodies\n"}
end of query stack
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/closures/closure-no-fn-1.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/closures/closure-no-fn-2.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/closures/closure-no-fn-2.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/closures/closure-no-fn-2/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/closures/closure-no-fn-2/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc::infer::InferCtxt::probe
27: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_return_type
28: rustc_typeck::check::FnCtxt::suggest_ref_or_into
29: rustc_typeck::check::demand::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::demand_coerce_diag
30: rustc_typeck::check::demand::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::demand_coerce
31: rustc_typeck::check::FnCtxt::check_decl_local
32: rustc_typeck::check::FnCtxt::check_stmt
33: rustc_typeck::check::FnCtxt::check_block_with_expected
34: rustc_typeck::check::FnCtxt::check_expr_kind
35: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
36: rustc_typeck::check::FnCtxt::check_return_expr
37: rustc_typeck::check::check_fn
38: rustc::ty::context::GlobalCtxt::enter_local
39: rustc_typeck::check::typeck_tables_of
40: rustc::ty::query::__query_compute::typeck_tables_of
41: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
42: rustc::dep_graph::graph::DepGraph::with_task_impl
43: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
44: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners
45: rustc_typeck::check::typeck_item_bodies
46: rustc::ty::query::__query_compute::typeck_item_bodies
47: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_item_bodies<'tcx>>::compute
48: rustc::dep_graph::graph::DepGraph::with_task_impl
49: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
50: rustc::util::common::time
51: rustc_typeck::check_crate
52: <std::thread::local::LocalKey<T>>::with
53: rustc::ty::context::TyCtxt::create_and_enter
54: rustc_driver::driver::compile_input
55: rustc_driver::run_compiler_with_pool
56: <scoped_tls::ScopedKey<T>>::set
57: rustc_driver::run_compiler
58: rustc_driver::monitor::{{closure}}
59: __rust_maybe_catch_panic
60: <F as alloc::boxed::FnBox<A>>::call_box
61: std::sys_common::thread::start_thread
62: std::sys::unix::thread::Thread::new::thread_start
63: start_thread
64: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/closures/closure-no-fn-2.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// Ensure that capturing closures are never coerced to fns","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `main`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/closures/closure-no-fn-2.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// Ensure that capturing closures are never coerced to fns","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `main`\n"}
{"message":"#2 [typeck_item_bodies] type-checking all item bodies","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/closures/closure-no-fn-2.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// Ensure that capturing closures are never coerced to fns","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [typeck_item_bodies] type-checking all item bodies\n"}
end of query stack
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/closures/closure-no-fn-2.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/closures/closure-reform-bad.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/closures/closure-reform-bad.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/closures/closure-reform-bad/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/closures/closure-reform-bad/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc::infer::InferCtxt::probe
27: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_return_type
28: rustc_typeck::check::FnCtxt::suggest_ref_or_into
29: rustc_typeck::check::demand::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::demand_coerce_diag
30: rustc_typeck::check::demand::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::demand_coerce
31: rustc_typeck::check::FnCtxt::check_argument_types
32: rustc_typeck::check::callee::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::confirm_builtin_call
33: rustc_typeck::check::callee::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::check_call
34: rustc_typeck::check::FnCtxt::check_expr_kind
35: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
36: rustc_typeck::check::FnCtxt::check_block_with_expected
37: rustc_typeck::check::FnCtxt::check_expr_kind
38: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
39: rustc_typeck::check::FnCtxt::check_return_expr
40: rustc_typeck::check::check_fn
41: rustc::ty::context::GlobalCtxt::enter_local
42: rustc_typeck::check::typeck_tables_of
43: rustc::ty::query::__query_compute::typeck_tables_of
44: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
45: rustc::dep_graph::graph::DepGraph::with_task_impl
46: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
47: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners
48: rustc_typeck::check::typeck_item_bodies
49: rustc::ty::query::__query_compute::typeck_item_bodies
50: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_item_bodies<'tcx>>::compute
51: rustc::dep_graph::graph::DepGraph::with_task_impl
52: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
53: rustc::util::common::time
54: rustc_typeck::check_crate
55: <std::thread::local::LocalKey<T>>::with
56: rustc::ty::context::TyCtxt::create_and_enter
57: rustc_driver::driver::compile_input
58: rustc_driver::run_compiler_with_pool
59: <scoped_tls::ScopedKey<T>>::set
60: rustc_driver::run_compiler
61: rustc_driver::monitor::{{closure}}
62: __rust_maybe_catch_panic
63: <F as alloc::boxed::FnBox<A>>::call_box
64: std::sys_common::thread::start_thread
65: std::sys::unix::thread::Thread::new::thread_start
66: start_thread
67: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/closures/closure-reform-bad.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"/* Any copyright is dedicated to the Public Domain.","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `main`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/closures/closure-reform-bad.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"/* Any copyright is dedicated to the Public Domain.","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `main`\n"}
{"message":"#2 [typeck_item_bodies] type-checking all item bodies","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/closures/closure-reform-bad.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"/* Any copyright is dedicated to the Public Domain.","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [typeck_item_bodies] type-checking all item bodies\n"}
end of query stack
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/closures/closure-reform-bad.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/class-cast-to-trait.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/class-cast-to-trait.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/class-cast-to-trait/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/class-cast-to-trait/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc_typeck::check::method::probe::ProbeContext::pick
27: rustc::infer::InferCtxt::probe
28: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_name
29: rustc_typeck::check::method::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::lookup_method
30: rustc_typeck::check::FnCtxt::check_expr_kind
31: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
32: rustc_typeck::check::FnCtxt::check_stmt
33: rustc_typeck::check::FnCtxt::check_block_with_expected
34: rustc_typeck::check::FnCtxt::check_expr_kind
35: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
36: rustc_typeck::check::FnCtxt::check_return_expr
37: rustc_typeck::check::check_fn
38: rustc::ty::context::GlobalCtxt::enter_local
39: rustc_typeck::check::typeck_tables_of
40: rustc::ty::query::__query_compute::typeck_tables_of
41: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
42: rustc::dep_graph::graph::DepGraph::with_task_impl
43: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
44: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners
45: rustc_typeck::check::typeck_item_bodies
46: rustc::ty::query::__query_compute::typeck_item_bodies
47: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_item_bodies<'tcx>>::compute
48: rustc::dep_graph::graph::DepGraph::with_task_impl
49: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
50: rustc::util::common::time
51: rustc_typeck::check_crate
52: <std::thread::local::LocalKey<T>>::with
53: rustc::ty::context::TyCtxt::create_and_enter
54: rustc_driver::driver::compile_input
55: rustc_driver::run_compiler_with_pool
56: <scoped_tls::ScopedKey<T>>::set
57: rustc_driver::run_compiler
58: rustc_driver::monitor::{{closure}}
59: __rust_maybe_catch_panic
60: <F as alloc::boxed::FnBox<A>>::call_box
61: std::sys_common::thread::start_thread
62: std::sys::unix::thread::Thread::new::thread_start
63: start_thread
64: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/class-cast-to-trait.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"#![feature(box_syntax)]","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `main`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/class-cast-to-trait.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"#![feature(box_syntax)]","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `main`\n"}
{"message":"#2 [typeck_item_bodies] type-checking all item bodies","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/class-cast-to-trait.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"#![feature(box_syntax)]","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [typeck_item_bodies] type-checking all item bodies\n"}
end of query stack
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/class-cast-to-trait.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/coercion/coerce-mut.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/coercion/coerce-mut.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/coercion/coerce-mut/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/coercion/coerce-mut/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc::infer::InferCtxt::probe
27: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_return_type
28: rustc_typeck::check::FnCtxt::suggest_ref_or_into
29: rustc_typeck::check::demand::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::demand_coerce_diag
30: rustc_typeck::check::demand::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::demand_coerce
31: rustc_typeck::check::FnCtxt::check_argument_types
32: rustc_typeck::check::callee::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::confirm_builtin_call
33: rustc_typeck::check::callee::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::check_call
34: rustc_typeck::check::FnCtxt::check_expr_kind
35: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
36: rustc_typeck::check::FnCtxt::check_stmt
37: rustc_typeck::check::FnCtxt::check_block_with_expected
38: rustc_typeck::check::FnCtxt::check_expr_kind
39: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
40: rustc_typeck::check::FnCtxt::check_return_expr
41: rustc_typeck::check::check_fn
42: rustc::ty::context::GlobalCtxt::enter_local
43: rustc_typeck::check::typeck_tables_of
44: rustc::ty::query::__query_compute::typeck_tables_of
45: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
46: rustc::dep_graph::graph::DepGraph::with_task_impl
47: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
48: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners
49: rustc_typeck::check::typeck_item_bodies
50: rustc::ty::query::__query_compute::typeck_item_bodies
51: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_item_bodies<'tcx>>::compute
52: rustc::dep_graph::graph::DepGraph::with_task_impl
53: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
54: rustc::util::common::time
55: rustc_typeck::check_crate
56: <std::thread::local::LocalKey<T>>::with
57: rustc::ty::context::TyCtxt::create_and_enter
58: rustc_driver::driver::compile_input
59: rustc_driver::run_compiler_with_pool
60: <scoped_tls::ScopedKey<T>>::set
61: rustc_driver::run_compiler
62: rustc_driver::monitor::{{closure}}
63: __rust_maybe_catch_panic
64: <F as alloc::boxed::FnBox<A>>::call_box
65: std::sys_common::thread::start_thread
66: std::sys::unix::thread::Thread::new::thread_start
67: start_thread
68: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/coercion/coerce-mut.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"fn f(x: &mut i32) {}","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `main`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/coercion/coerce-mut.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"fn f(x: &mut i32) {}","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `main`\n"}
{"message":"#2 [typeck_item_bodies] type-checking all item bodies","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/coercion/coerce-mut.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"fn f(x: &mut i32) {}","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [typeck_item_bodies] type-checking all item bodies\n"}
end of query stack
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/coercion/coerce-mut.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/codemap_tests/tab.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/codemap_tests/tab.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/codemap_tests/tab/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/codemap_tests/tab/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"cannot find value `bar` in this scope","code":{"code":"E0425","explanation":"\nAn unresolved name was used.\n\nErroneous code examples:\n\n```compile_fail,E0425\nsomething_that_doesnt_exist::foo;\n// error: unresolved name `something_that_doesnt_exist::foo`\n\n// or:\n\ntrait Foo {\n fn bar() {\n Self; // error: unresolved name `Self`\n }\n}\n\n// or:\n\nlet x = unknown_variable; // error: unresolved name `unknown_variable`\n```\n\nPlease verify that the name wasn't misspelled and ensure that the\nidentifier being referred to is valid for the given situation. Example:\n\n```\nenum something_that_does_exist {\n Foo,\n}\n```\n\nOr:\n\n```\nmod something_that_does_exist {\n pub static foo : i32 = 0i32;\n}\n\nsomething_that_does_exist::foo; // ok!\n```\n\nOr:\n\n```\nlet unknown_variable = 12u32;\nlet x = unknown_variable; // ok!\n```\n\nIf the item is not defined in the current module, it must be imported using a\n`use` statement, like so:\n\n```\n# mod foo { pub fn bar() {} }\n# fn main() {\nuse foo::bar;\nbar();\n# }\n```\n\nIf the item you are importing is not defined in some super-module of the\ncurrent module, then it must also be declared as public (e.g., `pub fn`).\n"},"level":"error","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/codemap_tests/tab.rs","byte_start":33,"byte_end":36,"line_start":4,"line_end":4,"column_start":2,"column_end":5,"is_primary":true,"text":[{"text":"\tbar; //~ ERROR cannot find value `bar`","highlight_start":2,"highlight_end":5}],"label":"not found in this scope","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error[E0425]: cannot find value `bar` in this scope\n --> /home/centril/programming/rust/src/test/ui/codemap_tests/tab.rs:4:2\n |\nLL | bar; //~ ERROR cannot find value `bar`\n | ^^^ not found in this scope\n\n"}
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc::infer::InferCtxt::probe
27: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_return_type
28: rustc_typeck::check::FnCtxt::suggest_ref_or_into
29: rustc_typeck::check::FnCtxt::suggest_mismatched_types_on_tail
30: <rustc_typeck::check::coercion::CoerceMany<'gcx, 'tcx, 'exprs, E>>::report_return_mismatched_types
31: <rustc_typeck::check::coercion::CoerceMany<'gcx, 'tcx, 'exprs, E>>::coerce_inner
32: rustc_typeck::check::FnCtxt::check_block_with_expected
33: rustc_typeck::check::FnCtxt::check_expr_kind
34: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
35: rustc_typeck::check::FnCtxt::check_return_expr
36: rustc_typeck::check::check_fn
37: rustc::ty::context::GlobalCtxt::enter_local
38: rustc_typeck::check::typeck_tables_of
39: rustc::ty::query::__query_compute::typeck_tables_of
40: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
41: rustc::dep_graph::graph::DepGraph::with_task_impl
42: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
43: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners
44: rustc_typeck::check::typeck_item_bodies
45: rustc::ty::query::__query_compute::typeck_item_bodies
46: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_item_bodies<'tcx>>::compute
47: rustc::dep_graph::graph::DepGraph::with_task_impl
48: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
49: rustc::util::common::time
50: rustc_typeck::check_crate
51: <std::thread::local::LocalKey<T>>::with
52: rustc::ty::context::TyCtxt::create_and_enter
53: rustc_driver::driver::compile_input
54: rustc_driver::run_compiler_with_pool
55: <scoped_tls::ScopedKey<T>>::set
56: rustc_driver::run_compiler
57: rustc_driver::monitor::{{closure}}
58: __rust_maybe_catch_panic
59: <F as alloc::boxed::FnBox<A>>::call_box
60: std::sys_common::thread::start_thread
61: std::sys::unix::thread::Thread::new::thread_start
62: start_thread
63: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/codemap_tests/tab.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// ignore-tidy-tab","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `foo`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/codemap_tests/tab.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// ignore-tidy-tab","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `foo`\n"}
{"message":"#2 [typeck_item_bodies] type-checking all item bodies","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/codemap_tests/tab.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// ignore-tidy-tab","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [typeck_item_bodies] type-checking all item bodies\n"}
end of query stack
{"message":"aborting due to 2 previous errors","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to 2 previous errors\n\n"}
{"message":"For more information about this error, try `rustc --explain E0425`.","code":null,"level":"","spans":[],"children":[],"rendered":"For more information about this error, try `rustc --explain E0425`.\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/codemap_tests/tab.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/coercion/coerce-to-bang.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/coercion/coerce-to-bang.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/coercion/coerce-to-bang/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/coercion/coerce-to-bang/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc::infer::InferCtxt::probe
27: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_return_type
28: rustc_typeck::check::FnCtxt::suggest_ref_or_into
29: rustc_typeck::check::demand::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::demand_coerce_diag
30: rustc_typeck::check::demand::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::demand_coerce
31: rustc_typeck::check::FnCtxt::check_argument_types
32: rustc_typeck::check::callee::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::confirm_builtin_call
33: rustc_typeck::check::callee::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::check_call
34: rustc_typeck::check::FnCtxt::check_expr_kind
35: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
36: rustc_typeck::check::FnCtxt::check_stmt
37: rustc_typeck::check::FnCtxt::check_block_with_expected
38: rustc_typeck::check::FnCtxt::check_expr_kind
39: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
40: rustc_typeck::check::FnCtxt::check_return_expr
41: rustc_typeck::check::check_fn
42: rustc::ty::context::GlobalCtxt::enter_local
43: rustc_typeck::check::typeck_tables_of
44: rustc::ty::query::__query_compute::typeck_tables_of
45: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
46: rustc::dep_graph::graph::DepGraph::with_task_impl
47: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
48: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners
49: rustc_typeck::check::typeck_item_bodies
50: rustc::ty::query::__query_compute::typeck_item_bodies
51: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_item_bodies<'tcx>>::compute
52: rustc::dep_graph::graph::DepGraph::with_task_impl
53: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
54: rustc::util::common::time
55: rustc_typeck::check_crate
56: <std::thread::local::LocalKey<T>>::with
57: rustc::ty::context::TyCtxt::create_and_enter
58: rustc_driver::driver::compile_input
59: rustc_driver::run_compiler_with_pool
60: <scoped_tls::ScopedKey<T>>::set
61: rustc_driver::run_compiler
62: rustc_driver::monitor::{{closure}}
63: __rust_maybe_catch_panic
64: <F as alloc::boxed::FnBox<A>>::call_box
65: std::sys_common::thread::start_thread
66: std::sys::unix::thread::Thread::new::thread_start
67: start_thread
68: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/coercion/coerce-to-bang.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"#![feature(never_type)]","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `call_foo_a`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/coercion/coerce-to-bang.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"#![feature(never_type)]","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `call_foo_a`\n"}
{"message":"#2 [typeck_item_bodies] type-checking all item bodies","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/coercion/coerce-to-bang.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"#![feature(never_type)]","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [typeck_item_bodies] type-checking all item bodies\n"}
end of query stack
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/coercion/coerce-to-bang.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/coherence/coherence_inherent.rs#old stdout ----
error in revision `old`: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/coherence/coherence_inherent.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--cfg" "old" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/coherence/coherence_inherent.old/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/coherence/coherence_inherent.old/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc_typeck::check::method::probe::ProbeContext::pick
27: rustc::infer::InferCtxt::probe
28: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_name
29: rustc_typeck::check::method::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::lookup_method
30: rustc_typeck::check::FnCtxt::check_expr_kind
31: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
32: rustc_typeck::check::FnCtxt::check_stmt
33: rustc_typeck::check::FnCtxt::check_block_with_expected
34: rustc_typeck::check::FnCtxt::check_expr_kind
35: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
36: rustc_typeck::check::FnCtxt::check_return_expr
37: rustc_typeck::check::check_fn
38: rustc::ty::context::GlobalCtxt::enter_local
39: rustc_typeck::check::typeck_tables_of
40: rustc::ty::query::__query_compute::typeck_tables_of
41: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
42: rustc::dep_graph::graph::DepGraph::with_task_impl
43: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
44: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners
45: rustc_typeck::check::typeck_item_bodies
46: rustc::ty::query::__query_compute::typeck_item_bodies
47: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_item_bodies<'tcx>>::compute
48: rustc::dep_graph::graph::DepGraph::with_task_impl
49: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
50: rustc::util::common::time
51: rustc_typeck::check_crate
52: <std::thread::local::LocalKey<T>>::with
53: rustc::ty::context::TyCtxt::create_and_enter
54: rustc_driver::driver::compile_input
55: rustc_driver::run_compiler_with_pool
56: <scoped_tls::ScopedKey<T>>::set
57: rustc_driver::run_compiler
58: rustc_driver::monitor::{{closure}}
59: __rust_maybe_catch_panic
60: <F as alloc::boxed::FnBox<A>>::call_box
61: std::sys_common::thread::start_thread
62: std::sys::unix::thread::Thread::new::thread_start
63: start_thread
64: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/coherence/coherence_inherent.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// Tests that methods that implement a trait cannot be invoked","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `NoImport::call_the_fn`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/coherence/coherence_inherent.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// Tests that methods that implement a trait cannot be invoked","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `NoImport::call_the_fn`\n"}
{"message":"#2 [typeck_item_bodies] type-checking all item bodies","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/coherence/coherence_inherent.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// Tests that methods that implement a trait cannot be invoked","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [typeck_item_bodies] type-checking all item bodies\n"}
end of query stack
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/coherence/coherence_inherent.rs#old' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/coherence/coherence_inherent.rs#re stdout ----
error in revision `re`: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/coherence/coherence_inherent.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--cfg" "re" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/coherence/coherence_inherent.re/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/coherence/coherence_inherent.re/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc_typeck::check::method::probe::ProbeContext::pick
27: rustc::infer::InferCtxt::probe
28: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_name
29: rustc_typeck::check::method::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::lookup_method
30: rustc_typeck::check::FnCtxt::check_expr_kind
31: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
32: rustc_typeck::check::FnCtxt::check_stmt
33: rustc_typeck::check::FnCtxt::check_block_with_expected
34: rustc_typeck::check::FnCtxt::check_expr_kind
35: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
36: rustc_typeck::check::FnCtxt::check_return_expr
37: rustc_typeck::check::check_fn
38: rustc::ty::context::GlobalCtxt::enter_local
39: rustc_typeck::check::typeck_tables_of
40: rustc::ty::query::__query_compute::typeck_tables_of
41: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
42: rustc::dep_graph::graph::DepGraph::with_task_impl
43: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
44: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners
45: rustc_typeck::check::typeck_item_bodies
46: rustc::ty::query::__query_compute::typeck_item_bodies
47: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_item_bodies<'tcx>>::compute
48: rustc::dep_graph::graph::DepGraph::with_task_impl
49: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
50: rustc::util::common::time
51: rustc_typeck::check_crate
52: <std::thread::local::LocalKey<T>>::with
53: rustc::ty::context::TyCtxt::create_and_enter
54: rustc_driver::driver::compile_input
55: rustc_driver::run_compiler_with_pool
56: <scoped_tls::ScopedKey<T>>::set
57: rustc_driver::run_compiler
58: rustc_driver::monitor::{{closure}}
59: __rust_maybe_catch_panic
60: <F as alloc::boxed::FnBox<A>>::call_box
61: std::sys_common::thread::start_thread
62: std::sys::unix::thread::Thread::new::thread_start
63: start_thread
64: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/coherence/coherence_inherent.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// Tests that methods that implement a trait cannot be invoked","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `NoImport::call_the_fn`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/coherence/coherence_inherent.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// Tests that methods that implement a trait cannot be invoked","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `NoImport::call_the_fn`\n"}
{"message":"#2 [typeck_item_bodies] type-checking all item bodies","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/coherence/coherence_inherent.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// Tests that methods that implement a trait cannot be invoked","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [typeck_item_bodies] type-checking all item bodies\n"}
end of query stack
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/coherence/coherence_inherent.rs#re' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/confuse-field-and-method/issue-18343.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/confuse-field-and-method/issue-18343.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/confuse-field-and-method/issue-18343/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/confuse-field-and-method/issue-18343/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc_typeck::check::method::probe::ProbeContext::pick
27: rustc::infer::InferCtxt::probe
28: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_name
29: rustc_typeck::check::method::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::lookup_method
30: rustc_typeck::check::FnCtxt::check_expr_kind
31: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
32: rustc_typeck::check::FnCtxt::check_stmt
33: rustc_typeck::check::FnCtxt::check_block_with_expected
34: rustc_typeck::check::FnCtxt::check_expr_kind
35: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
36: rustc_typeck::check::FnCtxt::check_return_expr
37: rustc_typeck::check::check_fn
38: rustc::ty::context::GlobalCtxt::enter_local
39: rustc_typeck::check::typeck_tables_of
40: rustc::ty::query::__query_compute::typeck_tables_of
41: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
42: rustc::dep_graph::graph::DepGraph::with_task_impl
43: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
44: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners
45: rustc_typeck::check::typeck_item_bodies
46: rustc::ty::query::__query_compute::typeck_item_bodies
47: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_item_bodies<'tcx>>::compute
48: rustc::dep_graph::graph::DepGraph::with_task_impl
49: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
50: rustc::util::common::time
51: rustc_typeck::check_crate
52: <std::thread::local::LocalKey<T>>::with
53: rustc::ty::context::TyCtxt::create_and_enter
54: rustc_driver::driver::compile_input
55: rustc_driver::run_compiler_with_pool
56: <scoped_tls::ScopedKey<T>>::set
57: rustc_driver::run_compiler
58: rustc_driver::monitor::{{closure}}
59: __rust_maybe_catch_panic
60: <F as alloc::boxed::FnBox<A>>::call_box
61: std::sys_common::thread::start_thread
62: std::sys::unix::thread::Thread::new::thread_start
63: start_thread
64: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/confuse-field-and-method/issue-18343.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"struct Obj<F> where F: FnMut() -> u32 {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `main`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/confuse-field-and-method/issue-18343.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"struct Obj<F> where F: FnMut() -> u32 {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `main`\n"}
{"message":"#2 [typeck_item_bodies] type-checking all item bodies","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/confuse-field-and-method/issue-18343.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"struct Obj<F> where F: FnMut() -> u32 {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [typeck_item_bodies] type-checking all item bodies\n"}
end of query stack
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/confuse-field-and-method/issue-18343.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/confuse-field-and-method/issue-32128.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/confuse-field-and-method/issue-32128.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/confuse-field-and-method/issue-32128/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/confuse-field-and-method/issue-32128/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc_typeck::check::method::probe::ProbeContext::pick
27: rustc::infer::InferCtxt::probe
28: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_name
29: rustc_typeck::check::method::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::lookup_method
30: rustc_typeck::check::FnCtxt::check_expr_kind
31: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
32: rustc_typeck::check::FnCtxt::check_stmt
33: rustc_typeck::check::FnCtxt::check_block_with_expected
34: rustc_typeck::check::FnCtxt::check_expr_kind
35: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
36: rustc_typeck::check::FnCtxt::check_return_expr
37: rustc_typeck::check::check_fn
38: rustc::ty::context::GlobalCtxt::enter_local
39: rustc_typeck::check::typeck_tables_of
40: rustc::ty::query::__query_compute::typeck_tables_of
41: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
42: rustc::dep_graph::graph::DepGraph::with_task_impl
43: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
44: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners
45: rustc_typeck::check::typeck_item_bodies
46: rustc::ty::query::__query_compute::typeck_item_bodies
47: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_item_bodies<'tcx>>::compute
48: rustc::dep_graph::graph::DepGraph::with_task_impl
49: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
50: rustc::util::common::time
51: rustc_typeck::check_crate
52: <std::thread::local::LocalKey<T>>::with
53: rustc::ty::context::TyCtxt::create_and_enter
54: rustc_driver::driver::compile_input
55: rustc_driver::run_compiler_with_pool
56: <scoped_tls::ScopedKey<T>>::set
57: rustc_driver::run_compiler
58: rustc_driver::monitor::{{closure}}
59: __rust_maybe_catch_panic
60: <F as alloc::boxed::FnBox<A>>::call_box
61: std::sys_common::thread::start_thread
62: std::sys::unix::thread::Thread::new::thread_start
63: start_thread
64: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/confuse-field-and-method/issue-32128.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"struct Example {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `main`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/confuse-field-and-method/issue-32128.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"struct Example {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `main`\n"}
{"message":"#2 [typeck_item_bodies] type-checking all item bodies","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/confuse-field-and-method/issue-32128.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"struct Example {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [typeck_item_bodies] type-checking all item bodies\n"}
end of query stack
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/confuse-field-and-method/issue-32128.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/confuse-field-and-method/issue-2392.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/confuse-field-and-method/issue-2392.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/confuse-field-and-method/issue-2392/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/confuse-field-and-method/issue-2392/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc_typeck::check::method::probe::ProbeContext::pick
27: rustc::infer::InferCtxt::probe
28: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_name
29: rustc_typeck::check::method::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::lookup_method
30: rustc_typeck::check::FnCtxt::check_expr_kind
31: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
32: rustc_typeck::check::FnCtxt::check_stmt
33: rustc_typeck::check::FnCtxt::check_block_with_expected
34: rustc_typeck::check::FnCtxt::check_expr_kind
35: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
36: rustc_typeck::check::FnCtxt::check_return_expr
37: rustc_typeck::check::check_fn
38: rustc::ty::context::GlobalCtxt::enter_local
39: rustc_typeck::check::typeck_tables_of
40: rustc::ty::query::__query_compute::typeck_tables_of
41: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
42: rustc::dep_graph::graph::DepGraph::with_task_impl
43: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
44: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners
45: rustc_typeck::check::typeck_item_bodies
46: rustc::ty::query::__query_compute::typeck_item_bodies
47: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_item_bodies<'tcx>>::compute
48: rustc::dep_graph::graph::DepGraph::with_task_impl
49: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
50: rustc::util::common::time
51: rustc_typeck::check_crate
52: <std::thread::local::LocalKey<T>>::with
53: rustc::ty::context::TyCtxt::create_and_enter
54: rustc_driver::driver::compile_input
55: rustc_driver::run_compiler_with_pool
56: <scoped_tls::ScopedKey<T>>::set
57: rustc_driver::run_compiler
58: rustc_driver::monitor::{{closure}}
59: __rust_maybe_catch_panic
60: <F as alloc::boxed::FnBox<A>>::call_box
61: std::sys_common::thread::start_thread
62: std::sys::unix::thread::Thread::new::thread_start
63: start_thread
64: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/confuse-field-and-method/issue-2392.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"#![feature(core, fnbox)]","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `main`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/confuse-field-and-method/issue-2392.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"#![feature(core, fnbox)]","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `main`\n"}
{"message":"#2 [typeck_item_bodies] type-checking all item bodies","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/confuse-field-and-method/issue-2392.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"#![feature(core, fnbox)]","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [typeck_item_bodies] type-checking all item bodies\n"}
end of query stack
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/confuse-field-and-method/issue-2392.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/confuse-field-and-method/issue-33784.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/confuse-field-and-method/issue-33784.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/confuse-field-and-method/issue-33784/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/confuse-field-and-method/issue-33784/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc_typeck::check::method::probe::ProbeContext::pick
27: rustc::infer::InferCtxt::probe
28: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_name
29: rustc_typeck::check::method::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::lookup_method
30: rustc_typeck::check::FnCtxt::check_expr_kind
31: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
32: rustc_typeck::check::FnCtxt::check_stmt
33: rustc_typeck::check::FnCtxt::check_block_with_expected
34: rustc_typeck::check::FnCtxt::check_expr_kind
35: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
36: rustc_typeck::check::FnCtxt::check_return_expr
37: rustc_typeck::check::check_fn
38: rustc::ty::context::GlobalCtxt::enter_local
39: rustc_typeck::check::typeck_tables_of
40: rustc::ty::query::__query_compute::typeck_tables_of
41: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
42: rustc::dep_graph::graph::DepGraph::with_task_impl
43: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
44: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners
45: rustc_typeck::check::typeck_item_bodies
46: rustc::ty::query::__query_compute::typeck_item_bodies
47: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_item_bodies<'tcx>>::compute
48: rustc::dep_graph::graph::DepGraph::with_task_impl
49: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
50: rustc::util::common::time
51: rustc_typeck::check_crate
52: <std::thread::local::LocalKey<T>>::with
53: rustc::ty::context::TyCtxt::create_and_enter
54: rustc_driver::driver::compile_input
55: rustc_driver::run_compiler_with_pool
56: <scoped_tls::ScopedKey<T>>::set
57: rustc_driver::run_compiler
58: rustc_driver::monitor::{{closure}}
59: __rust_maybe_catch_panic
60: <F as alloc::boxed::FnBox<A>>::call_box
61: std::sys_common::thread::start_thread
62: std::sys::unix::thread::Thread::new::thread_start
63: start_thread
64: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/confuse-field-and-method/issue-33784.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"use std::ops::Deref;","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `main`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/confuse-field-and-method/issue-33784.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"use std::ops::Deref;","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `main`\n"}
{"message":"#2 [typeck_item_bodies] type-checking all item bodies","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/confuse-field-and-method/issue-33784.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"use std::ops::Deref;","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [typeck_item_bodies] type-checking all item bodies\n"}
end of query stack
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/confuse-field-and-method/issue-33784.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/coherence/coherence_inherent_cc.rs#re stdout ----
error in revision `re`: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/coherence/coherence_inherent_cc.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--cfg" "re" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/coherence/coherence_inherent_cc.re/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/coherence/coherence_inherent_cc.re/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc_typeck::check::method::probe::ProbeContext::pick
27: rustc::infer::InferCtxt::probe
28: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_name
29: rustc_typeck::check::method::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::lookup_method
30: rustc_typeck::check::FnCtxt::check_expr_kind
31: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
32: rustc_typeck::check::FnCtxt::check_stmt
33: rustc_typeck::check::FnCtxt::check_block_with_expected
34: rustc_typeck::check::FnCtxt::check_expr_kind
35: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
36: rustc_typeck::check::FnCtxt::check_return_expr
37: rustc_typeck::check::check_fn
38: rustc::ty::context::GlobalCtxt::enter_local
39: rustc_typeck::check::typeck_tables_of
40: rustc::ty::query::__query_compute::typeck_tables_of
41: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
42: rustc::dep_graph::graph::DepGraph::with_task_impl
43: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
44: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners
45: rustc_typeck::check::typeck_item_bodies
46: rustc::ty::query::__query_compute::typeck_item_bodies
47: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_item_bodies<'tcx>>::compute
48: rustc::dep_graph::graph::DepGraph::with_task_impl
49: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
50: rustc::util::common::time
51: rustc_typeck::check_crate
52: <std::thread::local::LocalKey<T>>::with
53: rustc::ty::context::TyCtxt::create_and_enter
54: rustc_driver::driver::compile_input
55: rustc_driver::run_compiler_with_pool
56: <scoped_tls::ScopedKey<T>>::set
57: rustc_driver::run_compiler
58: rustc_driver::monitor::{{closure}}
59: __rust_maybe_catch_panic
60: <F as alloc::boxed::FnBox<A>>::call_box
61: std::sys_common::thread::start_thread
62: std::sys::unix::thread::Thread::new::thread_start
63: start_thread
64: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/coherence/coherence_inherent_cc.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// aux-build:coherence_inherent_cc_lib.rs","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `NoImport::call_the_fn`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/coherence/coherence_inherent_cc.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// aux-build:coherence_inherent_cc_lib.rs","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `NoImport::call_the_fn`\n"}
{"message":"#2 [typeck_item_bodies] type-checking all item bodies","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/coherence/coherence_inherent_cc.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// aux-build:coherence_inherent_cc_lib.rs","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [typeck_item_bodies] type-checking all item bodies\n"}
end of query stack
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/coherence/coherence_inherent_cc.rs#re' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/coherence/coherence_inherent_cc.rs#old stdout ----
error in revision `old`: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/coherence/coherence_inherent_cc.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--cfg" "old" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/coherence/coherence_inherent_cc.old/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/coherence/coherence_inherent_cc.old/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc_typeck::check::method::probe::ProbeContext::pick
27: rustc::infer::InferCtxt::probe
28: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_name
29: rustc_typeck::check::method::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::lookup_method
30: rustc_typeck::check::FnCtxt::check_expr_kind
31: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
32: rustc_typeck::check::FnCtxt::check_stmt
33: rustc_typeck::check::FnCtxt::check_block_with_expected
34: rustc_typeck::check::FnCtxt::check_expr_kind
35: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
36: rustc_typeck::check::FnCtxt::check_return_expr
37: rustc_typeck::check::check_fn
38: rustc::ty::context::GlobalCtxt::enter_local
39: rustc_typeck::check::typeck_tables_of
40: rustc::ty::query::__query_compute::typeck_tables_of
41: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
42: rustc::dep_graph::graph::DepGraph::with_task_impl
43: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
44: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners
45: rustc_typeck::check::typeck_item_bodies
46: rustc::ty::query::__query_compute::typeck_item_bodies
47: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_item_bodies<'tcx>>::compute
48: rustc::dep_graph::graph::DepGraph::with_task_impl
49: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
50: rustc::util::common::time
51: rustc_typeck::check_crate
52: <std::thread::local::LocalKey<T>>::with
53: rustc::ty::context::TyCtxt::create_and_enter
54: rustc_driver::driver::compile_input
55: rustc_driver::run_compiler_with_pool
56: <scoped_tls::ScopedKey<T>>::set
57: rustc_driver::run_compiler
58: rustc_driver::monitor::{{closure}}
59: __rust_maybe_catch_panic
60: <F as alloc::boxed::FnBox<A>>::call_box
61: std::sys_common::thread::start_thread
62: std::sys::unix::thread::Thread::new::thread_start
63: start_thread
64: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/coherence/coherence_inherent_cc.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// aux-build:coherence_inherent_cc_lib.rs","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `NoImport::call_the_fn`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/coherence/coherence_inherent_cc.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// aux-build:coherence_inherent_cc_lib.rs","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `NoImport::call_the_fn`\n"}
{"message":"#2 [typeck_item_bodies] type-checking all item bodies","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/coherence/coherence_inherent_cc.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// aux-build:coherence_inherent_cc_lib.rs","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [typeck_item_bodies] type-checking all item bodies\n"}
end of query stack
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/coherence/coherence_inherent_cc.rs#old' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/consts/const-array-oob-arith.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/consts/const-array-oob-arith.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/consts/const-array-oob-arith/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/consts/const-array-oob-arith/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc::infer::InferCtxt::probe
27: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_return_type
28: rustc_typeck::check::FnCtxt::suggest_ref_or_into
29: rustc_typeck::check::demand::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::demand_coerce_diag
30: rustc_typeck::check::demand::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::demand_coerce
31: rustc::ty::context::GlobalCtxt::enter_local
32: rustc_typeck::check::typeck_tables_of
33: rustc::ty::query::__query_compute::typeck_tables_of
34: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
35: rustc::dep_graph::graph::DepGraph::with_task_impl
36: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
37: rustc_typeck::check::check_item_type
38: rustc::hir::map::Map::visit_item_likes_in_module
39: rustc_typeck::check::check_mod_item_types
40: rustc::ty::query::__query_compute::check_mod_item_types
41: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::check_mod_item_types<'tcx>>::compute
42: rustc::dep_graph::graph::DepGraph::with_task_impl
43: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
44: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::ensure_query
45: rustc::session::Session::track_errors
46: rustc::util::common::time
47: rustc_typeck::check_crate
48: <std::thread::local::LocalKey<T>>::with
49: rustc::ty::context::TyCtxt::create_and_enter
50: rustc_driver::driver::compile_input
51: rustc_driver::run_compiler_with_pool
52: <scoped_tls::ScopedKey<T>>::set
53: rustc_driver::run_compiler
54: rustc_driver::monitor::{{closure}}
55: __rust_maybe_catch_panic
56: <F as alloc::boxed::FnBox<A>>::call_box
57: std::sys_common::thread::start_thread
58: std::sys::unix::thread::Thread::new::thread_start
59: start_thread
60: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/consts/const-array-oob-arith.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"#![feature(const_indexing)]","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `BLUB`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/consts/const-array-oob-arith.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"#![feature(const_indexing)]","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `BLUB`\n"}
{"message":"#2 [check_mod_item_types] checking item types in top-level module","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/consts/const-array-oob-arith.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"#![feature(const_indexing)]","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [check_mod_item_types] checking item types in top-level module\n"}
end of query stack
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/consts/const-array-oob-arith.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/confuse-field-and-method/private-field.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/confuse-field-and-method/private-field.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/confuse-field-and-method/private-field/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/confuse-field-and-method/private-field/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc_typeck::check::method::probe::ProbeContext::pick
27: rustc::infer::InferCtxt::probe
28: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_name
29: rustc_typeck::check::method::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::lookup_method
30: rustc_typeck::check::FnCtxt::check_expr_kind
31: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
32: rustc_typeck::check::FnCtxt::check_decl_initializer
33: rustc_typeck::check::FnCtxt::check_decl_local
34: rustc_typeck::check::FnCtxt::check_stmt
35: rustc_typeck::check::FnCtxt::check_block_with_expected
36: rustc_typeck::check::FnCtxt::check_expr_kind
37: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
38: rustc_typeck::check::FnCtxt::check_return_expr
39: rustc_typeck::check::check_fn
40: rustc::ty::context::GlobalCtxt::enter_local
41: rustc_typeck::check::typeck_tables_of
42: rustc::ty::query::__query_compute::typeck_tables_of
43: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
44: rustc::dep_graph::graph::DepGraph::with_task_impl
45: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
46: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners
47: rustc_typeck::check::typeck_item_bodies
48: rustc::ty::query::__query_compute::typeck_item_bodies
49: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_item_bodies<'tcx>>::compute
50: rustc::dep_graph::graph::DepGraph::with_task_impl
51: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
52: rustc::util::common::time
53: rustc_typeck::check_crate
54: <std::thread::local::LocalKey<T>>::with
55: rustc::ty::context::TyCtxt::create_and_enter
56: rustc_driver::driver::compile_input
57: rustc_driver::run_compiler_with_pool
58: <scoped_tls::ScopedKey<T>>::set
59: rustc_driver::run_compiler
60: rustc_driver::monitor::{{closure}}
61: __rust_maybe_catch_panic
62: <F as alloc::boxed::FnBox<A>>::call_box
63: std::sys_common::thread::start_thread
64: std::sys::unix::thread::Thread::new::thread_start
65: start_thread
66: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/confuse-field-and-method/private-field.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"pub mod animal {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `main`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/confuse-field-and-method/private-field.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"pub mod animal {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `main`\n"}
{"message":"#2 [typeck_item_bodies] type-checking all item bodies","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/confuse-field-and-method/private-field.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"pub mod animal {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [typeck_item_bodies] type-checking all item bodies\n"}
end of query stack
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/confuse-field-and-method/private-field.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/consts/const-integer-bool-ops.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/consts/const-integer-bool-ops.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/consts/const-integer-bool-ops/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/consts/const-integer-bool-ops/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc::infer::InferCtxt::probe
27: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_return_type
28: rustc_typeck::check::FnCtxt::suggest_ref_or_into
29: rustc_typeck::check::demand::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::demand_coerce_diag
30: rustc_typeck::check::demand::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::demand_coerce
31: rustc_typeck::check::op::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::check_binop
32: rustc_typeck::check::FnCtxt::check_expr_kind
33: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
34: rustc::ty::context::GlobalCtxt::enter_local
35: rustc_typeck::check::typeck_tables_of
36: rustc::ty::query::__query_compute::typeck_tables_of
37: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
38: rustc::dep_graph::graph::DepGraph::with_task_impl
39: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
40: rustc_mir::hair::cx::Cx::new
41: rustc::ty::context::GlobalCtxt::enter_local
42: rustc_mir::build::mir_build
43: rustc_mir::transform::mir_built
44: rustc::ty::query::__query_compute::mir_built
45: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::mir_built<'tcx>>::compute
46: rustc::dep_graph::graph::DepGraph::with_task_impl
47: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
48: rustc_mir::transform::check_unsafety::unsafety_check_result
49: rustc::ty::query::__query_compute::unsafety_check_result
50: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::unsafety_check_result<'tcx>>::compute
51: rustc::dep_graph::graph::DepGraph::with_task_impl
52: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
53: rustc_mir::transform::mir_const
54: rustc::ty::query::__query_compute::mir_const
55: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::mir_const<'tcx>>::compute
56: rustc::dep_graph::graph::DepGraph::with_task_impl
57: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
58: rustc_mir::transform::qualify_consts::mir_const_qualif
59: rustc::ty::query::__query_compute::mir_const_qualif
60: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::mir_const_qualif<'tcx>>::compute
61: rustc::dep_graph::graph::DepGraph::with_task_impl
62: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
63: <rustc_mir::transform::qualify_consts::Qualifier<'a, 'tcx, 'tcx> as rustc::mir::visit::Visitor<'tcx>>::visit_operand
64: <rustc_mir::transform::qualify_consts::Qualifier<'a, 'tcx, 'tcx> as rustc::mir::visit::Visitor<'tcx>>::visit_rvalue
65: rustc::mir::visit::Visitor::visit_basic_block_data
66: rustc_mir::transform::qualify_consts::Qualifier::qualify_const
67: rustc_mir::transform::qualify_consts::mir_const_qualif
68: rustc::ty::query::__query_compute::mir_const_qualif
69: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::mir_const_qualif<'tcx>>::compute
70: rustc::dep_graph::graph::DepGraph::with_task_impl
71: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
72: rustc_mir::const_eval::const_eval_raw_provider
73: rustc::ty::query::__query_compute::const_eval_raw
74: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::const_eval_raw<'tcx>>::compute
75: rustc::dep_graph::graph::DepGraph::with_task_impl
76: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
77: rustc_mir::const_eval::const_eval_provider
78: rustc::ty::query::__query_compute::const_eval
79: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::const_eval<'tcx>>::compute
80: rustc::dep_graph::graph::DepGraph::with_task_impl
81: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
82: <rustc::traits::project::AssociatedTypeNormalizer<'a, 'b, 'gcx, 'tcx> as rustc::ty::fold::TypeFolder<'gcx, 'tcx>>::fold_const
83: <rustc::traits::project::AssociatedTypeNormalizer<'a, 'b, 'gcx, 'tcx> as rustc::ty::fold::TypeFolder<'gcx, 'tcx>>::fold_ty
84: rustc::traits::project::normalize
85: rustc::infer::InferCtxt::partially_normalize_associated_types_in
86: rustc::ty::context::GlobalCtxt::enter_local
87: rustc_typeck::check::wfcheck::check_item_type
88: rustc_typeck::check::wfcheck::check_item_well_formed
89: rustc::ty::query::__query_compute::check_item_well_formed
90: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::check_item_well_formed<'tcx>>::compute
91: rustc::dep_graph::graph::DepGraph::with_task_impl
92: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
93: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::ensure_query
94: rustc::hir::Crate::visit_all_item_likes
95: rustc::util::common::time
96: rustc_typeck::check_crate
97: <std::thread::local::LocalKey<T>>::with
98: rustc::ty::context::TyCtxt::create_and_enter
99: rustc_driver::driver::compile_input
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/consts/const-integer-bool-ops.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"const X: usize = 42 && 39;","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `X`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/consts/const-integer-bool-ops.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"const X: usize = 42 && 39;","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `X`\n"}
{"message":"#2 [mir_built] processing `X`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/consts/const-integer-bool-ops.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"const X: usize = 42 && 39;","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [mir_built] processing `X`\n"}
{"message":"#3 [unsafety_check_result] processing `X`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/consts/const-integer-bool-ops.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"const X: usize = 42 && 39;","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#3 [unsafety_check_result] processing `X`\n"}
{"message":"#4 [mir_const] processing `X`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/consts/const-integer-bool-ops.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"const X: usize = 42 && 39;","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#4 [mir_const] processing `X`\n"}
{"message":"#5 [mir_const_qualif] processing `X`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/consts/const-integer-bool-ops.rs","byte_start":228,"byte_end":229,"line_start":8,"line_end":8,"column_start":18,"column_end":19,"is_primary":true,"text":[{"text":"const ARR: [i32; X] = [99; 34];","highlight_start":18,"highlight_end":19}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#5 [mir_const_qualif] processing `X`\n --> /home/centril/programming/rust/src/test/ui/consts/const-integer-bool-ops.rs:8:18\n |\nLL | const ARR: [i32; X] = [99; 34];\n | ^\n"}
{"message":"#6 [mir_const_qualif] processing `ARR::{{constant}}`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/consts/const-integer-bool-ops.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"const X: usize = 42 && 39;","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#6 [mir_const_qualif] processing `ARR::{{constant}}`\n"}
{"message":"#7 [const_eval_raw] const-evaluating `ARR::{{constant}}`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/consts/const-integer-bool-ops.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"const X: usize = 42 && 39;","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#7 [const_eval_raw] const-evaluating `ARR::{{constant}}`\n"}
{"message":"#8 [const_eval] const-evaluating + checking `ARR::{{constant}}`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/consts/const-integer-bool-ops.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"const X: usize = 42 && 39;","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#8 [const_eval] const-evaluating + checking `ARR::{{constant}}`\n"}
{"message":"#9 [check_item_well_formed] processing `ARR`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/consts/const-integer-bool-ops.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"const X: usize = 42 && 39;","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#9 [check_item_well_formed] processing `ARR`\n"}
end of query stack
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/consts/const-integer-bool-ops.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/consts/const-eval/const-eval-span.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/consts/const-eval/const-eval-span.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/consts/const-eval/const-eval-span/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/consts/const-eval/const-eval-span/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc::infer::InferCtxt::probe
27: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_return_type
28: rustc_typeck::check::FnCtxt::suggest_ref_or_into
29: rustc_typeck::check::demand::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::demand_coerce_diag
30: rustc_typeck::check::demand::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::demand_coerce
31: rustc::ty::context::GlobalCtxt::enter_local
32: rustc_typeck::check::typeck_tables_of
33: rustc::ty::query::__query_compute::typeck_tables_of
34: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
35: rustc::dep_graph::graph::DepGraph::with_task_impl
36: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
37: rustc_mir::const_eval::const_eval_raw_provider
38: rustc::ty::query::__query_compute::const_eval_raw
39: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::const_eval_raw<'tcx>>::compute
40: rustc::dep_graph::graph::DepGraph::with_task_impl
41: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
42: rustc_mir::const_eval::const_eval_provider
43: rustc::ty::query::__query_compute::const_eval
44: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::const_eval<'tcx>>::compute
45: rustc::dep_graph::graph::DepGraph::with_task_impl
46: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
47: <rustc_typeck::collect::CollectItemTypesVisitor<'a, 'tcx> as rustc::hir::intravisit::Visitor<'tcx>>::visit_item
48: rustc::hir::map::Map::visit_item_likes_in_module
49: rustc_typeck::collect::collect_mod_item_types
50: rustc::ty::query::__query_compute::collect_mod_item_types
51: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::collect_mod_item_types<'tcx>>::compute
52: rustc::dep_graph::graph::DepGraph::with_task_impl
53: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
54: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::ensure_query
55: rustc_typeck::collect::collect_item_types
56: rustc::util::common::time
57: rustc_typeck::check_crate
58: <std::thread::local::LocalKey<T>>::with
59: rustc::ty::context::TyCtxt::create_and_enter
60: rustc_driver::driver::compile_input
61: rustc_driver::run_compiler_with_pool
62: <scoped_tls::ScopedKey<T>>::set
63: rustc_driver::run_compiler
64: rustc_driver::monitor::{{closure}}
65: __rust_maybe_catch_panic
66: <F as alloc::boxed::FnBox<A>>::call_box
67: std::sys_common::thread::start_thread
68: std::sys::unix::thread::Thread::new::thread_start
69: start_thread
70: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/consts/const-eval/const-eval-span.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// Check that error in constant evaluation of enum discriminant","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `E::V::{{constant}}`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/consts/const-eval/const-eval-span.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// Check that error in constant evaluation of enum discriminant","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `E::V::{{constant}}`\n"}
{"message":"#2 [const_eval_raw] const-evaluating `E::V::{{constant}}`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/consts/const-eval/const-eval-span.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// Check that error in constant evaluation of enum discriminant","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [const_eval_raw] const-evaluating `E::V::{{constant}}`\n"}
{"message":"#3 [const_eval] const-evaluating + checking `E::V::{{constant}}`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/consts/const-eval/const-eval-span.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// Check that error in constant evaluation of enum discriminant","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#3 [const_eval] const-evaluating + checking `E::V::{{constant}}`\n"}
{"message":"#4 [collect_mod_item_types] collecting item types in top-level module","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/consts/const-eval/const-eval-span.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// Check that error in constant evaluation of enum discriminant","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#4 [collect_mod_item_types] collecting item types in top-level module\n"}
end of query stack
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/consts/const-eval/const-eval-span.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/consts/const-type-mismatch.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/consts/const-type-mismatch.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/consts/const-type-mismatch/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/consts/const-type-mismatch/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc::infer::InferCtxt::probe
27: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_return_type
28: rustc_typeck::check::FnCtxt::suggest_ref_or_into
29: rustc_typeck::check::demand::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::demand_coerce_diag
30: rustc_typeck::check::demand::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::demand_coerce
31: rustc::ty::context::GlobalCtxt::enter_local
32: rustc_typeck::check::typeck_tables_of
33: rustc::ty::query::__query_compute::typeck_tables_of
34: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
35: rustc::dep_graph::graph::DepGraph::with_task_impl
36: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
37: rustc_typeck::check::check_item_type
38: rustc::hir::map::Map::visit_item_likes_in_module
39: rustc_typeck::check::check_mod_item_types
40: rustc::ty::query::__query_compute::check_mod_item_types
41: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::check_mod_item_types<'tcx>>::compute
42: rustc::dep_graph::graph::DepGraph::with_task_impl
43: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
44: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::ensure_query
45: rustc::session::Session::track_errors
46: rustc::util::common::time
47: rustc_typeck::check_crate
48: <std::thread::local::LocalKey<T>>::with
49: rustc::ty::context::TyCtxt::create_and_enter
50: rustc_driver::driver::compile_input
51: rustc_driver::run_compiler_with_pool
52: <scoped_tls::ScopedKey<T>>::set
53: rustc_driver::run_compiler
54: rustc_driver::monitor::{{closure}}
55: __rust_maybe_catch_panic
56: <F as alloc::boxed::FnBox<A>>::call_box
57: std::sys_common::thread::start_thread
58: std::sys::unix::thread::Thread::new::thread_start
59: start_thread
60: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/consts/const-type-mismatch.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// `const`s shouldn't suggest `.into()`","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `TWELVE`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/consts/const-type-mismatch.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// `const`s shouldn't suggest `.into()`","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `TWELVE`\n"}
{"message":"#2 [check_mod_item_types] checking item types in top-level module","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/consts/const-type-mismatch.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// `const`s shouldn't suggest `.into()`","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [check_mod_item_types] checking item types in top-level module\n"}
end of query stack
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/consts/const-type-mismatch.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/consts/const-tup-index-span.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/consts/const-tup-index-span.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/consts/const-tup-index-span/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/consts/const-tup-index-span/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc::infer::InferCtxt::probe
27: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_return_type
28: rustc_typeck::check::FnCtxt::suggest_ref_or_into
29: rustc_typeck::check::demand::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::demand_coerce_diag
30: rustc_typeck::check::demand::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::demand_coerce
31: rustc::ty::context::GlobalCtxt::enter_local
32: rustc_typeck::check::typeck_tables_of
33: rustc::ty::query::__query_compute::typeck_tables_of
34: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
35: rustc::dep_graph::graph::DepGraph::with_task_impl
36: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
37: rustc_mir::hair::cx::Cx::new
38: rustc::ty::context::GlobalCtxt::enter_local
39: rustc_mir::build::mir_build
40: rustc_mir::transform::mir_built
41: rustc::ty::query::__query_compute::mir_built
42: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::mir_built<'tcx>>::compute
43: rustc::dep_graph::graph::DepGraph::with_task_impl
44: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
45: rustc_mir::transform::check_unsafety::unsafety_check_result
46: rustc::ty::query::__query_compute::unsafety_check_result
47: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::unsafety_check_result<'tcx>>::compute
48: rustc::dep_graph::graph::DepGraph::with_task_impl
49: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
50: rustc_mir::transform::mir_const
51: rustc::ty::query::__query_compute::mir_const
52: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::mir_const<'tcx>>::compute
53: rustc::dep_graph::graph::DepGraph::with_task_impl
54: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
55: rustc_mir::transform::qualify_consts::mir_const_qualif
56: rustc::ty::query::__query_compute::mir_const_qualif
57: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::mir_const_qualif<'tcx>>::compute
58: rustc::dep_graph::graph::DepGraph::with_task_impl
59: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
60: <rustc_mir::transform::qualify_consts::Qualifier<'a, 'tcx, 'tcx> as rustc::mir::visit::Visitor<'tcx>>::visit_operand
61: <rustc_mir::transform::qualify_consts::Qualifier<'a, 'tcx, 'tcx> as rustc::mir::visit::Visitor<'tcx>>::visit_rvalue
62: rustc::mir::visit::Visitor::visit_basic_block_data
63: rustc_mir::transform::qualify_consts::Qualifier::qualify_const
64: rustc_mir::transform::qualify_consts::mir_const_qualif
65: rustc::ty::query::__query_compute::mir_const_qualif
66: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::mir_const_qualif<'tcx>>::compute
67: rustc::dep_graph::graph::DepGraph::with_task_impl
68: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
69: rustc_mir::const_eval::const_eval_raw_provider
70: rustc::ty::query::__query_compute::const_eval_raw
71: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::const_eval_raw<'tcx>>::compute
72: rustc::dep_graph::graph::DepGraph::with_task_impl
73: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
74: rustc_mir::const_eval::const_eval_provider
75: rustc::ty::query::__query_compute::const_eval
76: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::const_eval<'tcx>>::compute
77: rustc::dep_graph::graph::DepGraph::with_task_impl
78: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
79: <rustc::traits::project::AssociatedTypeNormalizer<'a, 'b, 'gcx, 'tcx> as rustc::ty::fold::TypeFolder<'gcx, 'tcx>>::fold_const
80: <rustc::traits::project::AssociatedTypeNormalizer<'a, 'b, 'gcx, 'tcx> as rustc::ty::fold::TypeFolder<'gcx, 'tcx>>::fold_ty
81: rustc::traits::project::normalize
82: rustc::infer::InferCtxt::partially_normalize_associated_types_in
83: rustc::ty::context::GlobalCtxt::enter_local
84: rustc_typeck::check::wfcheck::check_item_type
85: rustc_typeck::check::wfcheck::check_item_well_formed
86: rustc::ty::query::__query_compute::check_item_well_formed
87: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::check_item_well_formed<'tcx>>::compute
88: rustc::dep_graph::graph::DepGraph::with_task_impl
89: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
90: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::ensure_query
91: rustc::hir::Crate::visit_all_item_likes
92: rustc::util::common::time
93: rustc_typeck::check_crate
94: <std::thread::local::LocalKey<T>>::with
95: rustc::ty::context::TyCtxt::create_and_enter
96: rustc_driver::driver::compile_input
97: rustc_driver::run_compiler_with_pool
98: <scoped_tls::ScopedKey<T>>::set
99: rustc_driver::run_compiler
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/consts/const-tup-index-span.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// Test spans of errors","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `TUP`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/consts/const-tup-index-span.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// Test spans of errors","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `TUP`\n"}
{"message":"#2 [mir_built] processing `TUP`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/consts/const-tup-index-span.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// Test spans of errors","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [mir_built] processing `TUP`\n"}
{"message":"#3 [unsafety_check_result] processing `TUP`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/consts/const-tup-index-span.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// Test spans of errors","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#3 [unsafety_check_result] processing `TUP`\n"}
{"message":"#4 [mir_const] processing `TUP`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/consts/const-tup-index-span.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// Test spans of errors","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#4 [mir_const] processing `TUP`\n"}
{"message":"#5 [mir_const_qualif] processing `TUP`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/consts/const-tup-index-span.rs","byte_start":139,"byte_end":142,"line_start":6,"line_end":6,"column_start":18,"column_end":21,"is_primary":true,"text":[{"text":"const ARR: [i32; TUP.0] = [];","highlight_start":18,"highlight_end":21}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#5 [mir_const_qualif] processing `TUP`\n --> /home/centril/programming/rust/src/test/ui/consts/const-tup-index-span.rs:6:18\n |\nLL | const ARR: [i32; TUP.0] = [];\n | ^^^\n"}
{"message":"#6 [mir_const_qualif] processing `ARR::{{constant}}`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/consts/const-tup-index-span.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// Test spans of errors","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#6 [mir_const_qualif] processing `ARR::{{constant}}`\n"}
{"message":"#7 [const_eval_raw] const-evaluating `ARR::{{constant}}`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/consts/const-tup-index-span.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// Test spans of errors","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#7 [const_eval_raw] const-evaluating `ARR::{{constant}}`\n"}
{"message":"#8 [const_eval] const-evaluating + checking `ARR::{{constant}}`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/consts/const-tup-index-span.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// Test spans of errors","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#8 [const_eval] const-evaluating + checking `ARR::{{constant}}`\n"}
{"message":"#9 [check_item_well_formed] processing `ARR`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/consts/const-tup-index-span.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// Test spans of errors","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#9 [check_item_well_formed] processing `ARR`\n"}
end of query stack
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/consts/const-tup-index-span.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/conversion-methods.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/conversion-methods.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/conversion-methods/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/conversion-methods/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc::infer::InferCtxt::probe
27: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_return_type
28: rustc_typeck::check::FnCtxt::suggest_ref_or_into
29: rustc_typeck::check::demand::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::demand_coerce_diag
30: rustc_typeck::check::demand::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::demand_coerce
31: rustc_typeck::check::FnCtxt::check_decl_local
32: rustc_typeck::check::FnCtxt::check_stmt
33: rustc_typeck::check::FnCtxt::check_block_with_expected
34: rustc_typeck::check::FnCtxt::check_expr_kind
35: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
36: rustc_typeck::check::FnCtxt::check_return_expr
37: rustc_typeck::check::check_fn
38: rustc::ty::context::GlobalCtxt::enter_local
39: rustc_typeck::check::typeck_tables_of
40: rustc::ty::query::__query_compute::typeck_tables_of
41: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
42: rustc::dep_graph::graph::DepGraph::with_task_impl
43: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
44: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners
45: rustc_typeck::check::typeck_item_bodies
46: rustc::ty::query::__query_compute::typeck_item_bodies
47: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_item_bodies<'tcx>>::compute
48: rustc::dep_graph::graph::DepGraph::with_task_impl
49: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
50: rustc::util::common::time
51: rustc_typeck::check_crate
52: <std::thread::local::LocalKey<T>>::with
53: rustc::ty::context::TyCtxt::create_and_enter
54: rustc_driver::driver::compile_input
55: rustc_driver::run_compiler_with_pool
56: <scoped_tls::ScopedKey<T>>::set
57: rustc_driver::run_compiler
58: rustc_driver::monitor::{{closure}}
59: __rust_maybe_catch_panic
60: <F as alloc::boxed::FnBox<A>>::call_box
61: std::sys_common::thread::start_thread
62: std::sys::unix::thread::Thread::new::thread_start
63: start_thread
64: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/conversion-methods.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"use std::path::{Path, PathBuf};","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `main`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/conversion-methods.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"use std::path::{Path, PathBuf};","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `main`\n"}
{"message":"#2 [typeck_item_bodies] type-checking all item bodies","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/conversion-methods.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"use std::path::{Path, PathBuf};","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [typeck_item_bodies] type-checking all item bodies\n"}
end of query stack
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/conversion-methods.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/copy-a-resource.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/copy-a-resource.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/copy-a-resource/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/copy-a-resource/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc_typeck::check::method::probe::ProbeContext::pick
27: rustc::infer::InferCtxt::probe
28: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_name
29: rustc_typeck::check::method::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::lookup_method
30: rustc_typeck::check::FnCtxt::check_expr_kind
31: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
32: rustc_typeck::check::FnCtxt::check_decl_initializer
33: rustc_typeck::check::FnCtxt::check_decl_local
34: rustc_typeck::check::FnCtxt::check_stmt
35: rustc_typeck::check::FnCtxt::check_block_with_expected
36: rustc_typeck::check::FnCtxt::check_expr_kind
37: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
38: rustc_typeck::check::FnCtxt::check_return_expr
39: rustc_typeck::check::check_fn
40: rustc::ty::context::GlobalCtxt::enter_local
41: rustc_typeck::check::typeck_tables_of
42: rustc::ty::query::__query_compute::typeck_tables_of
43: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
44: rustc::dep_graph::graph::DepGraph::with_task_impl
45: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
46: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners
47: rustc_typeck::check::typeck_item_bodies
48: rustc::ty::query::__query_compute::typeck_item_bodies
49: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_item_bodies<'tcx>>::compute
50: rustc::dep_graph::graph::DepGraph::with_task_impl
51: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
52: rustc::util::common::time
53: rustc_typeck::check_crate
54: <std::thread::local::LocalKey<T>>::with
55: rustc::ty::context::TyCtxt::create_and_enter
56: rustc_driver::driver::compile_input
57: rustc_driver::run_compiler_with_pool
58: <scoped_tls::ScopedKey<T>>::set
59: rustc_driver::run_compiler
60: rustc_driver::monitor::{{closure}}
61: __rust_maybe_catch_panic
62: <F as alloc::boxed::FnBox<A>>::call_box
63: std::sys_common::thread::start_thread
64: std::sys::unix::thread::Thread::new::thread_start
65: start_thread
66: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/copy-a-resource.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"#[derive(Debug)]","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `main`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/copy-a-resource.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"#[derive(Debug)]","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `main`\n"}
{"message":"#2 [typeck_item_bodies] type-checking all item bodies","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/copy-a-resource.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"#[derive(Debug)]","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [typeck_item_bodies] type-checking all item bodies\n"}
end of query stack
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/copy-a-resource.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/did_you_mean/bad-assoc-pat.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/did_you_mean/bad-assoc-pat.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/did_you_mean/bad-assoc-pat/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/did_you_mean/bad-assoc-pat/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"missing angle brackets in associated item path","code":null,"level":"error","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/did_you_mean/bad-assoc-pat.rs","byte_start":36,"byte_end":51,"line_start":3,"line_end":3,"column_start":9,"column_end":24,"is_primary":true,"text":[{"text":" [u8]::AssocItem => {}","highlight_start":9,"highlight_end":24}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"try","code":null,"level":"help","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/did_you_mean/bad-assoc-pat.rs","byte_start":36,"byte_end":51,"line_start":3,"line_end":3,"column_start":9,"column_end":24,"is_primary":true,"text":[{"text":" [u8]::AssocItem => {}","highlight_start":9,"highlight_end":24}],"label":null,"suggested_replacement":"<[u8]>::AssocItem","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"error: missing angle brackets in associated item path\n --> /home/centril/programming/rust/src/test/ui/did_you_mean/bad-assoc-pat.rs:3:9\n |\nLL | [u8]::AssocItem => {}\n | ^^^^^^^^^^^^^^^ help: try: `<[u8]>::AssocItem`\n\n"}
{"message":"missing angle brackets in associated item path","code":null,"level":"error","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/did_you_mean/bad-assoc-pat.rs","byte_start":231,"byte_end":250,"line_start":6,"line_end":6,"column_start":9,"column_end":28,"is_primary":true,"text":[{"text":" (u8, u8)::AssocItem => {}","highlight_start":9,"highlight_end":28}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"try","code":null,"level":"help","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/did_you_mean/bad-assoc-pat.rs","byte_start":231,"byte_end":250,"line_start":6,"line_end":6,"column_start":9,"column_end":28,"is_primary":true,"text":[{"text":" (u8, u8)::AssocItem => {}","highlight_start":9,"highlight_end":28}],"label":null,"suggested_replacement":"<(u8, u8)>::AssocItem","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"error: missing angle brackets in associated item path\n --> /home/centril/programming/rust/src/test/ui/did_you_mean/bad-assoc-pat.rs:6:9\n |\nLL | (u8, u8)::AssocItem => {}\n | ^^^^^^^^^^^^^^^^^^^ help: try: `<(u8, u8)>::AssocItem`\n\n"}
{"message":"missing angle brackets in associated item path","code":null,"level":"error","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/did_you_mean/bad-assoc-pat.rs","byte_start":432,"byte_end":444,"line_start":9,"line_end":9,"column_start":9,"column_end":21,"is_primary":true,"text":[{"text":" _::AssocItem => {}","highlight_start":9,"highlight_end":21}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"try","code":null,"level":"help","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/did_you_mean/bad-assoc-pat.rs","byte_start":432,"byte_end":444,"line_start":9,"line_end":9,"column_start":9,"column_end":21,"is_primary":true,"text":[{"text":" _::AssocItem => {}","highlight_start":9,"highlight_end":21}],"label":null,"suggested_replacement":"<_>::AssocItem","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"error: missing angle brackets in associated item path\n --> /home/centril/programming/rust/src/test/ui/did_you_mean/bad-assoc-pat.rs:9:9\n |\nLL | _::AssocItem => {}\n | ^^^^^^^^^^^^ help: try: `<_>::AssocItem`\n\n"}
{"message":"missing angle brackets in associated item path","code":null,"level":"error","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/did_you_mean/bad-assoc-pat.rs","byte_start":645,"byte_end":661,"line_start":14,"line_end":14,"column_start":10,"column_end":26,"is_primary":true,"text":[{"text":" &(u8,)::AssocItem => {}","highlight_start":10,"highlight_end":26}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"try","code":null,"level":"help","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/did_you_mean/bad-assoc-pat.rs","byte_start":645,"byte_end":661,"line_start":14,"line_end":14,"column_start":10,"column_end":26,"is_primary":true,"text":[{"text":" &(u8,)::AssocItem => {}","highlight_start":10,"highlight_end":26}],"label":null,"suggested_replacement":"<(u8,)>::AssocItem","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"error: missing angle brackets in associated item path\n --> /home/centril/programming/rust/src/test/ui/did_you_mean/bad-assoc-pat.rs:14:10\n |\nLL | &(u8,)::AssocItem => {}\n | ^^^^^^^^^^^^^^^^ help: try: `<(u8,)>::AssocItem`\n\n"}
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc_typeck::check::method::probe::ProbeContext::pick
27: rustc::infer::InferCtxt::probe
28: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_name
29: rustc_typeck::check::method::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::resolve_ufcs
30: rustc_typeck::check::FnCtxt::resolve_ty_and_def_ufcs
31: rustc_typeck::check::_match::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::check_pat_walk
32: <core::iter::adapters::Map<I, F> as core::iter::traits::iterator::Iterator>::fold
33: <alloc::vec::Vec<T> as alloc::vec::SpecExtend<T, I>>::from_iter
34: rustc_typeck::check::_match::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::check_match
35: rustc_typeck::check::FnCtxt::check_expr_kind
36: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
37: rustc_typeck::check::FnCtxt::check_expr_meets_expectation_or_error
38: rustc_typeck::check::FnCtxt::check_stmt
39: rustc_typeck::check::FnCtxt::check_block_with_expected
40: rustc_typeck::check::FnCtxt::check_expr_kind
41: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
42: rustc_typeck::check::FnCtxt::check_return_expr
43: rustc_typeck::check::check_fn
44: rustc::ty::context::GlobalCtxt::enter_local
45: rustc_typeck::check::typeck_tables_of
46: rustc::ty::query::__query_compute::typeck_tables_of
47: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
48: rustc::dep_graph::graph::DepGraph::with_task_impl
49: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
50: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners
51: rustc_typeck::check::typeck_item_bodies
52: rustc::ty::query::__query_compute::typeck_item_bodies
53: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_item_bodies<'tcx>>::compute
54: rustc::dep_graph::graph::DepGraph::with_task_impl
55: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
56: rustc::util::common::time
57: rustc_typeck::check_crate
58: <std::thread::local::LocalKey<T>>::with
59: rustc::ty::context::TyCtxt::create_and_enter
60: rustc_driver::driver::compile_input
61: rustc_driver::run_compiler_with_pool
62: <scoped_tls::ScopedKey<T>>::set
63: rustc_driver::run_compiler
64: rustc_driver::monitor::{{closure}}
65: __rust_maybe_catch_panic
66: <F as alloc::boxed::FnBox<A>>::call_box
67: std::sys_common::thread::start_thread
68: std::sys::unix::thread::Thread::new::thread_start
69: start_thread
70: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/did_you_mean/bad-assoc-pat.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"fn main() {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `main`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/did_you_mean/bad-assoc-pat.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"fn main() {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `main`\n"}
{"message":"#2 [typeck_item_bodies] type-checking all item bodies","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/did_you_mean/bad-assoc-pat.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"fn main() {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [typeck_item_bodies] type-checking all item bodies\n"}
end of query stack
{"message":"aborting due to 5 previous errors","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to 5 previous errors\n\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/did_you_mean/bad-assoc-pat.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/derived-errors/issue-30580.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/derived-errors/issue-30580.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/derived-errors/issue-30580/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/derived-errors/issue-30580/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc_typeck::check::method::probe::ProbeContext::pick
27: rustc::infer::InferCtxt::probe
28: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_name
29: rustc_typeck::check::method::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::method_exists
30: rustc_typeck::check::FnCtxt::check_expr_kind
31: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
32: rustc_typeck::check::FnCtxt::check_stmt
33: rustc_typeck::check::FnCtxt::check_block_with_expected
34: rustc_typeck::check::FnCtxt::check_expr_kind
35: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
36: rustc_typeck::check::FnCtxt::check_return_expr
37: rustc_typeck::check::check_fn
38: rustc::ty::context::GlobalCtxt::enter_local
39: rustc_typeck::check::typeck_tables_of
40: rustc::ty::query::__query_compute::typeck_tables_of
41: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
42: rustc::dep_graph::graph::DepGraph::with_task_impl
43: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
44: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners
45: rustc_typeck::check::typeck_item_bodies
46: rustc::ty::query::__query_compute::typeck_item_bodies
47: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_item_bodies<'tcx>>::compute
48: rustc::dep_graph::graph::DepGraph::with_task_impl
49: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
50: rustc::util::common::time
51: rustc_typeck::check_crate
52: <std::thread::local::LocalKey<T>>::with
53: rustc::ty::context::TyCtxt::create_and_enter
54: rustc_driver::driver::compile_input
55: rustc_driver::run_compiler_with_pool
56: <scoped_tls::ScopedKey<T>>::set
57: rustc_driver::run_compiler
58: rustc_driver::monitor::{{closure}}
59: __rust_maybe_catch_panic
60: <F as alloc::boxed::FnBox<A>>::call_box
61: std::sys_common::thread::start_thread
62: std::sys::unix::thread::Thread::new::thread_start
63: start_thread
64: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/derived-errors/issue-30580.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// Test that we do not see uninformative region-related errors","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `Pass::lol`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/derived-errors/issue-30580.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// Test that we do not see uninformative region-related errors","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `Pass::lol`\n"}
{"message":"#2 [typeck_item_bodies] type-checking all item bodies","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/derived-errors/issue-30580.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// Test that we do not see uninformative region-related errors","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [typeck_item_bodies] type-checking all item bodies\n"}
end of query stack
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/derived-errors/issue-30580.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/deref-suggestion.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/deref-suggestion.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/deref-suggestion/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/deref-suggestion/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc::infer::InferCtxt::probe
27: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_return_type
28: rustc_typeck::check::FnCtxt::suggest_ref_or_into
29: rustc_typeck::check::demand::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::demand_coerce_diag
30: rustc_typeck::check::demand::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::demand_coerce
31: rustc_typeck::check::FnCtxt::check_argument_types
32: rustc_typeck::check::callee::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::confirm_builtin_call
33: rustc_typeck::check::callee::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::check_call
34: rustc_typeck::check::FnCtxt::check_expr_kind
35: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
36: rustc_typeck::check::FnCtxt::check_stmt
37: rustc_typeck::check::FnCtxt::check_block_with_expected
38: rustc_typeck::check::FnCtxt::check_expr_kind
39: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
40: rustc_typeck::check::FnCtxt::check_return_expr
41: rustc_typeck::check::check_fn
42: rustc::ty::context::GlobalCtxt::enter_local
43: rustc_typeck::check::typeck_tables_of
44: rustc::ty::query::__query_compute::typeck_tables_of
45: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
46: rustc::dep_graph::graph::DepGraph::with_task_impl
47: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
48: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners
49: rustc_typeck::check::typeck_item_bodies
50: rustc::ty::query::__query_compute::typeck_item_bodies
51: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_item_bodies<'tcx>>::compute
52: rustc::dep_graph::graph::DepGraph::with_task_impl
53: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
54: rustc::util::common::time
55: rustc_typeck::check_crate
56: <std::thread::local::LocalKey<T>>::with
57: rustc::ty::context::TyCtxt::create_and_enter
58: rustc_driver::driver::compile_input
59: rustc_driver::run_compiler_with_pool
60: <scoped_tls::ScopedKey<T>>::set
61: rustc_driver::run_compiler
62: rustc_driver::monitor::{{closure}}
63: __rust_maybe_catch_panic
64: <F as alloc::boxed::FnBox<A>>::call_box
65: std::sys_common::thread::start_thread
66: std::sys::unix::thread::Thread::new::thread_start
67: start_thread
68: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/deref-suggestion.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"macro_rules! borrow {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `foo2`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/deref-suggestion.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"macro_rules! borrow {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `foo2`\n"}
{"message":"#2 [typeck_item_bodies] type-checking all item bodies","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/deref-suggestion.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"macro_rules! borrow {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [typeck_item_bodies] type-checking all item bodies\n"}
end of query stack
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/deref-suggestion.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/derives/derive-assoc-type-not-impl.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/derives/derive-assoc-type-not-impl.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/derives/derive-assoc-type-not-impl/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/derives/derive-assoc-type-not-impl/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc_typeck::check::method::probe::ProbeContext::pick
27: rustc::infer::InferCtxt::probe
28: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_name
29: rustc_typeck::check::method::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::lookup_method
30: rustc_typeck::check::FnCtxt::check_expr_kind
31: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
32: rustc_typeck::check::FnCtxt::check_stmt
33: rustc_typeck::check::FnCtxt::check_block_with_expected
34: rustc_typeck::check::FnCtxt::check_expr_kind
35: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
36: rustc_typeck::check::FnCtxt::check_return_expr
37: rustc_typeck::check::check_fn
38: rustc::ty::context::GlobalCtxt::enter_local
39: rustc_typeck::check::typeck_tables_of
40: rustc::ty::query::__query_compute::typeck_tables_of
41: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
42: rustc::dep_graph::graph::DepGraph::with_task_impl
43: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
44: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners
45: rustc_typeck::check::typeck_item_bodies
46: rustc::ty::query::__query_compute::typeck_item_bodies
47: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_item_bodies<'tcx>>::compute
48: rustc::dep_graph::graph::DepGraph::with_task_impl
49: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
50: rustc::util::common::time
51: rustc_typeck::check_crate
52: <std::thread::local::LocalKey<T>>::with
53: rustc::ty::context::TyCtxt::create_and_enter
54: rustc_driver::driver::compile_input
55: rustc_driver::run_compiler_with_pool
56: <scoped_tls::ScopedKey<T>>::set
57: rustc_driver::run_compiler
58: rustc_driver::monitor::{{closure}}
59: __rust_maybe_catch_panic
60: <F as alloc::boxed::FnBox<A>>::call_box
61: std::sys_common::thread::start_thread
62: std::sys::unix::thread::Thread::new::thread_start
63: start_thread
64: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/derives/derive-assoc-type-not-impl.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"trait Foo {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `main`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/derives/derive-assoc-type-not-impl.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"trait Foo {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `main`\n"}
{"message":"#2 [typeck_item_bodies] type-checking all item bodies","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/derives/derive-assoc-type-not-impl.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"trait Foo {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [typeck_item_bodies] type-checking all item bodies\n"}
end of query stack
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/derives/derive-assoc-type-not-impl.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/did_you_mean/issue-36798.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/did_you_mean/issue-36798.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/did_you_mean/issue-36798/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/did_you_mean/issue-36798/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc_typeck::check::method::probe::ProbeContext::pick
27: rustc::infer::InferCtxt::probe
28: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_name
29: rustc_typeck::check::method::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::method_exists
30: rustc_typeck::check::FnCtxt::check_expr_kind
31: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
32: rustc_typeck::check::FnCtxt::check_stmt
33: rustc_typeck::check::FnCtxt::check_block_with_expected
34: rustc_typeck::check::FnCtxt::check_expr_kind
35: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
36: rustc_typeck::check::FnCtxt::check_return_expr
37: rustc_typeck::check::check_fn
38: rustc::ty::context::GlobalCtxt::enter_local
39: rustc_typeck::check::typeck_tables_of
40: rustc::ty::query::__query_compute::typeck_tables_of
41: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
42: rustc::dep_graph::graph::DepGraph::with_task_impl
43: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
44: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners
45: rustc_typeck::check::typeck_item_bodies
46: rustc::ty::query::__query_compute::typeck_item_bodies
47: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_item_bodies<'tcx>>::compute
48: rustc::dep_graph::graph::DepGraph::with_task_impl
49: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
50: rustc::util::common::time
51: rustc_typeck::check_crate
52: <std::thread::local::LocalKey<T>>::with
53: rustc::ty::context::TyCtxt::create_and_enter
54: rustc_driver::driver::compile_input
55: rustc_driver::run_compiler_with_pool
56: <scoped_tls::ScopedKey<T>>::set
57: rustc_driver::run_compiler
58: rustc_driver::monitor::{{closure}}
59: __rust_maybe_catch_panic
60: <F as alloc::boxed::FnBox<A>>::call_box
61: std::sys_common::thread::start_thread
62: std::sys::unix::thread::Thread::new::thread_start
63: start_thread
64: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/did_you_mean/issue-36798.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"struct Foo {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `main`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/did_you_mean/issue-36798.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"struct Foo {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `main`\n"}
{"message":"#2 [typeck_item_bodies] type-checking all item bodies","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/did_you_mean/issue-36798.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"struct Foo {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [typeck_item_bodies] type-checking all item bodies\n"}
end of query stack
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/did_you_mean/issue-36798.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/did_you_mean/issue-36798_unknown_field.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/did_you_mean/issue-36798_unknown_field.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/did_you_mean/issue-36798_unknown_field/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/did_you_mean/issue-36798_unknown_field/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc_typeck::check::method::probe::ProbeContext::pick
27: rustc::infer::InferCtxt::probe
28: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_name
29: rustc_typeck::check::method::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::method_exists
30: rustc_typeck::check::FnCtxt::check_expr_kind
31: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
32: rustc_typeck::check::FnCtxt::check_stmt
33: rustc_typeck::check::FnCtxt::check_block_with_expected
34: rustc_typeck::check::FnCtxt::check_expr_kind
35: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
36: rustc_typeck::check::FnCtxt::check_return_expr
37: rustc_typeck::check::check_fn
38: rustc::ty::context::GlobalCtxt::enter_local
39: rustc_typeck::check::typeck_tables_of
40: rustc::ty::query::__query_compute::typeck_tables_of
41: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
42: rustc::dep_graph::graph::DepGraph::with_task_impl
43: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
44: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners
45: rustc_typeck::check::typeck_item_bodies
46: rustc::ty::query::__query_compute::typeck_item_bodies
47: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_item_bodies<'tcx>>::compute
48: rustc::dep_graph::graph::DepGraph::with_task_impl
49: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
50: rustc::util::common::time
51: rustc_typeck::check_crate
52: <std::thread::local::LocalKey<T>>::with
53: rustc::ty::context::TyCtxt::create_and_enter
54: rustc_driver::driver::compile_input
55: rustc_driver::run_compiler_with_pool
56: <scoped_tls::ScopedKey<T>>::set
57: rustc_driver::run_compiler
58: rustc_driver::monitor::{{closure}}
59: __rust_maybe_catch_panic
60: <F as alloc::boxed::FnBox<A>>::call_box
61: std::sys_common::thread::start_thread
62: std::sys::unix::thread::Thread::new::thread_start
63: start_thread
64: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/did_you_mean/issue-36798_unknown_field.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"struct Foo {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `main`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/did_you_mean/issue-36798_unknown_field.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"struct Foo {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `main`\n"}
{"message":"#2 [typeck_item_bodies] type-checking all item bodies","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/did_you_mean/issue-36798_unknown_field.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"struct Foo {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [typeck_item_bodies] type-checking all item bodies\n"}
end of query stack
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/did_you_mean/issue-36798_unknown_field.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/did_you_mean/issue-42599_available_fields_note.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/did_you_mean/issue-42599_available_fields_note.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/did_you_mean/issue-42599_available_fields_note/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/did_you_mean/issue-42599_available_fields_note/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"struct `submodule::Demo` has no field named `inocently_mispellable`","code":{"code":"E0560","explanation":"\nAn unknown field was specified into a structure.\n\nErroneous code example:\n\n```compile_fail,E0560\nstruct Simba {\n mother: u32,\n}\n\nlet s = Simba { mother: 1, father: 0 };\n// error: structure `Simba` has no field named `father`\n```\n\nVerify you didn't misspell the field's name or that the field exists. Example:\n\n```\nstruct Simba {\n mother: u32,\n father: u32,\n}\n\nlet s = Simba { mother: 1, father: 0 }; // ok!\n```\n"},"level":"error","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/did_you_mean/issue-42599_available_fields_note.rs","byte_start":395,"byte_end":416,"line_start":16,"line_end":16,"column_start":39,"column_end":60,"is_primary":true,"text":[{"text":" Self { secret_integer: 2, inocently_mispellable: () }","highlight_start":39,"highlight_end":60}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"a field with a similar name exists","code":null,"level":"help","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/did_you_mean/issue-42599_available_fields_note.rs","byte_start":395,"byte_end":416,"line_start":16,"line_end":16,"column_start":39,"column_end":60,"is_primary":true,"text":[{"text":" Self { secret_integer: 2, inocently_mispellable: () }","highlight_start":39,"highlight_end":60}],"label":null,"suggested_replacement":"innocently_misspellable","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"error[E0560]: struct `submodule::Demo` has no field named `inocently_mispellable`\n --> /home/centril/programming/rust/src/test/ui/did_you_mean/issue-42599_available_fields_note.rs:16:39\n |\nLL | Self { secret_integer: 2, inocently_mispellable: () }\n | ^^^^^^^^^^^^^^^^^^^^^ help: a field with a similar name exists: `innocently_misspellable`\n\n"}
{"message":"struct `submodule::Demo` has no field named `egregiously_nonexistent_field`","code":{"code":"E0560","explanation":"\nAn unknown field was specified into a structure.\n\nErroneous code example:\n\n```compile_fail,E0560\nstruct Simba {\n mother: u32,\n}\n\nlet s = Simba { mother: 1, father: 0 };\n// error: structure `Simba` has no field named `father`\n```\n\nVerify you didn't misspell the field's name or that the field exists. Example:\n\n```\nstruct Simba {\n mother: u32,\n father: u32,\n}\n\nlet s = Simba { mother: 1, father: 0 }; // ok!\n```\n"},"level":"error","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/did_you_mean/issue-42599_available_fields_note.rs","byte_start":549,"byte_end":578,"line_start":21,"line_end":21,"column_start":39,"column_end":68,"is_primary":true,"text":[{"text":" Self { secret_integer: 3, egregiously_nonexistent_field: () }","highlight_start":39,"highlight_end":68}],"label":"`submodule::Demo` does not have this field","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"available fields are: `favorite_integer`, `secret_integer`, `innocently_misspellable`, `another_field`, `yet_another_field` ... and 2 others","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error[E0560]: struct `submodule::Demo` has no field named `egregiously_nonexistent_field`\n --> /home/centril/programming/rust/src/test/ui/did_you_mean/issue-42599_available_fields_note.rs:21:39\n |\nLL | Self { secret_integer: 3, egregiously_nonexistent_field: () }\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `submodule::Demo` does not have this field\n |\n = note: available fields are: `favorite_integer`, `secret_integer`, `innocently_misspellable`, `another_field`, `yet_another_field` ... and 2 others\n\n"}
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc_typeck::check::method::probe::ProbeContext::pick
27: rustc::infer::InferCtxt::probe
28: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_name
29: rustc_typeck::check::method::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::method_exists
30: rustc_typeck::check::FnCtxt::check_expr_kind
31: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
32: rustc_typeck::check::FnCtxt::check_decl_initializer
33: rustc_typeck::check::FnCtxt::check_decl_local
34: rustc_typeck::check::FnCtxt::check_stmt
35: rustc_typeck::check::FnCtxt::check_block_with_expected
36: rustc_typeck::check::FnCtxt::check_expr_kind
37: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
38: rustc_typeck::check::FnCtxt::check_return_expr
39: rustc_typeck::check::check_fn
40: rustc::ty::context::GlobalCtxt::enter_local
41: rustc_typeck::check::typeck_tables_of
42: rustc::ty::query::__query_compute::typeck_tables_of
43: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
44: rustc::dep_graph::graph::DepGraph::with_task_impl
45: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
46: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners
47: rustc_typeck::check::typeck_item_bodies
48: rustc::ty::query::__query_compute::typeck_item_bodies
49: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_item_bodies<'tcx>>::compute
50: rustc::dep_graph::graph::DepGraph::with_task_impl
51: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
52: rustc::util::common::time
53: rustc_typeck::check_crate
54: <std::thread::local::LocalKey<T>>::with
55: rustc::ty::context::TyCtxt::create_and_enter
56: rustc_driver::driver::compile_input
57: rustc_driver::run_compiler_with_pool
58: <scoped_tls::ScopedKey<T>>::set
59: rustc_driver::run_compiler
60: rustc_driver::monitor::{{closure}}
61: __rust_maybe_catch_panic
62: <F as alloc::boxed::FnBox<A>>::call_box
63: std::sys_common::thread::start_thread
64: std::sys::unix::thread::Thread::new::thread_start
65: start_thread
66: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/did_you_mean/issue-42599_available_fields_note.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"mod submodule {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `main`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/did_you_mean/issue-42599_available_fields_note.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"mod submodule {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `main`\n"}
{"message":"#2 [typeck_item_bodies] type-checking all item bodies","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/did_you_mean/issue-42599_available_fields_note.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"mod submodule {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [typeck_item_bodies] type-checking all item bodies\n"}
end of query stack
{"message":"aborting due to 3 previous errors","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to 3 previous errors\n\n"}
{"message":"For more information about this error, try `rustc --explain E0560`.","code":null,"level":"","spans":[],"children":[],"rendered":"For more information about this error, try `rustc --explain E0560`.\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/did_you_mean/issue-42599_available_fields_note.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/did_you_mean/issue-40396.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/did_you_mean/issue-40396.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/did_you_mean/issue-40396/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/did_you_mean/issue-40396/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"chained comparison operators require parentheses","code":null,"level":"error","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/did_you_mean/issue-40396.rs","byte_start":30,"byte_end":38,"line_start":2,"line_end":2,"column_start":20,"column_end":28,"is_primary":true,"text":[{"text":" (0..13).collect<Vec<i32>>();","highlight_start":20,"highlight_end":28}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"use `::<...>` instead of `<...>` if you meant to specify type arguments","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"or use `(...)` if you meant to specify fn arguments","code":null,"level":"help","spans":[],"children":[],"rendered":null}],"rendered":"error: chained comparison operators require parentheses\n --> /home/centril/programming/rust/src/test/ui/did_you_mean/issue-40396.rs:2:20\n |\nLL | (0..13).collect<Vec<i32>>();\n | ^^^^^^^^\n |\n = help: use `::<...>` instead of `<...>` if you meant to specify type arguments\n = help: or use `(...)` if you meant to specify fn arguments\n\n"}
{"message":"chained comparison operators require parentheses","code":null,"level":"error","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/did_you_mean/issue-40396.rs","byte_start":264,"byte_end":271,"line_start":10,"line_end":10,"column_start":8,"column_end":15,"is_primary":true,"text":[{"text":" Vec<i32>::new();","highlight_start":8,"highlight_end":15}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"use `::<...>` instead of `<...>` if you meant to specify type arguments","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"or use `(...)` if you meant to specify fn arguments","code":null,"level":"help","spans":[],"children":[],"rendered":null}],"rendered":"error: chained comparison operators require parentheses\n --> /home/centril/programming/rust/src/test/ui/did_you_mean/issue-40396.rs:10:8\n |\nLL | Vec<i32>::new();\n | ^^^^^^^\n |\n = help: use `::<...>` instead of `<...>` if you meant to specify type arguments\n = help: or use `(...)` if you meant to specify fn arguments\n\n"}
{"message":"chained comparison operators require parentheses","code":null,"level":"error","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/did_you_mean/issue-40396.rs","byte_start":511,"byte_end":519,"line_start":18,"line_end":18,"column_start":20,"column_end":28,"is_primary":true,"text":[{"text":" (0..13).collect<Vec<i32>();","highlight_start":20,"highlight_end":28}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"use `::<...>` instead of `<...>` if you meant to specify type arguments","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"or use `(...)` if you meant to specify fn arguments","code":null,"level":"help","spans":[],"children":[],"rendered":null}],"rendered":"error: chained comparison operators require parentheses\n --> /home/centril/programming/rust/src/test/ui/did_you_mean/issue-40396.rs:18:20\n |\nLL | (0..13).collect<Vec<i32>();\n | ^^^^^^^^\n |\n = help: use `::<...>` instead of `<...>` if you meant to specify type arguments\n = help: or use `(...)` if you meant to specify fn arguments\n\n"}
{"message":"chained comparison operators require parentheses","code":null,"level":"error","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/did_you_mean/issue-40396.rs","byte_start":515,"byte_end":521,"line_start":18,"line_end":18,"column_start":24,"column_end":30,"is_primary":true,"text":[{"text":" (0..13).collect<Vec<i32>();","highlight_start":24,"highlight_end":30}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"use `::<...>` instead of `<...>` if you meant to specify type arguments","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"or use `(...)` if you meant to specify fn arguments","code":null,"level":"help","spans":[],"children":[],"rendered":null}],"rendered":"error: chained comparison operators require parentheses\n --> /home/centril/programming/rust/src/test/ui/did_you_mean/issue-40396.rs:18:24\n |\nLL | (0..13).collect<Vec<i32>();\n | ^^^^^^\n |\n = help: use `::<...>` instead of `<...>` if you meant to specify type arguments\n = help: or use `(...)` if you meant to specify fn arguments\n\n"}
{"message":"expected value, found struct `Vec`","code":{"code":"E0423","explanation":"\nAn identifier was used like a function name or a value was expected and the\nidentifier exists but it belongs to a different namespace.\n\nFor (an erroneous) example, here a `struct` variant name were used as a\nfunction:\n\n```compile_fail,E0423\nstruct Foo { a: bool };\n\nlet f = Foo();\n// error: expected function, found `Foo`\n// `Foo` is a struct name, but this expression uses it like a function name\n```\n\nPlease verify you didn't misspell the name of what you actually wanted to use\nhere. Example:\n\n```\nfn Foo() -> u32 { 0 }\n\nlet f = Foo(); // ok!\n```\n\nIt is common to forget the trailing `!` on macro invocations, which would also\nyield this error:\n\n```compile_fail,E0423\nprintln(\"\");\n// error: expected function, found macro `println`\n// did you mean `println!(...)`? (notice the trailing `!`)\n```\n\nAnother case where this error is emitted is when a value is expected, but\nsomething else is found:\n\n```compile_fail,E0423\npub mod a {\n pub const I: i32 = 1;\n}\n\nfn h1() -> i32 {\n a.I\n //~^ ERROR expected value, found module `a`\n // did you mean `a::I`?\n}\n```\n"},"level":"error","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/did_you_mean/issue-40396.rs","byte_start":31,"byte_end":34,"line_start":2,"line_end":2,"column_start":21,"column_end":24,"is_primary":true,"text":[{"text":" (0..13).collect<Vec<i32>>();","highlight_start":21,"highlight_end":24}],"label":"did you mean `Vec { /* fields */ }`?","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error[E0423]: expected value, found struct `Vec`\n --> /home/centril/programming/rust/src/test/ui/did_you_mean/issue-40396.rs:2:21\n |\nLL | (0..13).collect<Vec<i32>>();\n | ^^^ did you mean `Vec { /* fields */ }`?\n\n"}
{"message":"expected value, found builtin type `i32`","code":{"code":"E0423","explanation":"\nAn identifier was used like a function name or a value was expected and the\nidentifier exists but it belongs to a different namespace.\n\nFor (an erroneous) example, here a `struct` variant name were used as a\nfunction:\n\n```compile_fail,E0423\nstruct Foo { a: bool };\n\nlet f = Foo();\n// error: expected function, found `Foo`\n// `Foo` is a struct name, but this expression uses it like a function name\n```\n\nPlease verify you didn't misspell the name of what you actually wanted to use\nhere. Example:\n\n```\nfn Foo() -> u32 { 0 }\n\nlet f = Foo(); // ok!\n```\n\nIt is common to forget the trailing `!` on macro invocations, which would also\nyield this error:\n\n```compile_fail,E0423\nprintln(\"\");\n// error: expected function, found macro `println`\n// did you mean `println!(...)`? (notice the trailing `!`)\n```\n\nAnother case where this error is emitted is when a value is expected, but\nsomething else is found:\n\n```compile_fail,E0423\npub mod a {\n pub const I: i32 = 1;\n}\n\nfn h1() -> i32 {\n a.I\n //~^ ERROR expected value, found module `a`\n // did you mean `a::I`?\n}\n```\n"},"level":"error","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/did_you_mean/issue-40396.rs","byte_start":35,"byte_end":38,"line_start":2,"line_end":2,"column_start":25,"column_end":28,"is_primary":true,"text":[{"text":" (0..13).collect<Vec<i32>>();","highlight_start":25,"highlight_end":28}],"label":"not a value","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error[E0423]: expected value, found builtin type `i32`\n --> /home/centril/programming/rust/src/test/ui/did_you_mean/issue-40396.rs:2:25\n |\nLL | (0..13).collect<Vec<i32>>();\n | ^^^ not a value\n\n"}
{"message":"expected value, found struct `Vec`","code":{"code":"E0423","explanation":"\nAn identifier was used like a function name or a value was expected and the\nidentifier exists but it belongs to a different namespace.\n\nFor (an erroneous) example, here a `struct` variant name were used as a\nfunction:\n\n```compile_fail,E0423\nstruct Foo { a: bool };\n\nlet f = Foo();\n// error: expected function, found `Foo`\n// `Foo` is a struct name, but this expression uses it like a function name\n```\n\nPlease verify you didn't misspell the name of what you actually wanted to use\nhere. Example:\n\n```\nfn Foo() -> u32 { 0 }\n\nlet f = Foo(); // ok!\n```\n\nIt is common to forget the trailing `!` on macro invocations, which would also\nyield this error:\n\n```compile_fail,E0423\nprintln(\"\");\n// error: expected function, found macro `println`\n// did you mean `println!(...)`? (notice the trailing `!`)\n```\n\nAnother case where this error is emitted is when a value is expected, but\nsomething else is found:\n\n```compile_fail,E0423\npub mod a {\n pub const I: i32 = 1;\n}\n\nfn h1() -> i32 {\n a.I\n //~^ ERROR expected value, found module `a`\n // did you mean `a::I`?\n}\n```\n"},"level":"error","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/did_you_mean/issue-40396.rs","byte_start":261,"byte_end":264,"line_start":10,"line_end":10,"column_start":5,"column_end":8,"is_primary":true,"text":[{"text":" Vec<i32>::new();","highlight_start":5,"highlight_end":8}],"label":"did you mean `Vec { /* fields */ }`?","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error[E0423]: expected value, found struct `Vec`\n --> /home/centril/programming/rust/src/test/ui/did_you_mean/issue-40396.rs:10:5\n |\nLL | Vec<i32>::new();\n | ^^^ did you mean `Vec { /* fields */ }`?\n\n"}
{"message":"expected value, found builtin type `i32`","code":{"code":"E0423","explanation":"\nAn identifier was used like a function name or a value was expected and the\nidentifier exists but it belongs to a different namespace.\n\nFor (an erroneous) example, here a `struct` variant name were used as a\nfunction:\n\n```compile_fail,E0423\nstruct Foo { a: bool };\n\nlet f = Foo();\n// error: expected function, found `Foo`\n// `Foo` is a struct name, but this expression uses it like a function name\n```\n\nPlease verify you didn't misspell the name of what you actually wanted to use\nhere. Example:\n\n```\nfn Foo() -> u32 { 0 }\n\nlet f = Foo(); // ok!\n```\n\nIt is common to forget the trailing `!` on macro invocations, which would also\nyield this error:\n\n```compile_fail,E0423\nprintln(\"\");\n// error: expected function, found macro `println`\n// did you mean `println!(...)`? (notice the trailing `!`)\n```\n\nAnother case where this error is emitted is when a value is expected, but\nsomething else is found:\n\n```compile_fail,E0423\npub mod a {\n pub const I: i32 = 1;\n}\n\nfn h1() -> i32 {\n a.I\n //~^ ERROR expected value, found module `a`\n // did you mean `a::I`?\n}\n```\n"},"level":"error","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/did_you_mean/issue-40396.rs","byte_start":265,"byte_end":268,"line_start":10,"line_end":10,"column_start":9,"column_end":12,"is_primary":true,"text":[{"text":" Vec<i32>::new();","highlight_start":9,"highlight_end":12}],"label":"not a value","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error[E0423]: expected value, found builtin type `i32`\n --> /home/centril/programming/rust/src/test/ui/did_you_mean/issue-40396.rs:10:9\n |\nLL | Vec<i32>::new();\n | ^^^ not a value\n\n"}
{"message":"cannot find function `new` in the crate root","code":{"code":"E0425","explanation":"\nAn unresolved name was used.\n\nErroneous code examples:\n\n```compile_fail,E0425\nsomething_that_doesnt_exist::foo;\n// error: unresolved name `something_that_doesnt_exist::foo`\n\n// or:\n\ntrait Foo {\n fn bar() {\n Self; // error: unresolved name `Self`\n }\n}\n\n// or:\n\nlet x = unknown_variable; // error: unresolved name `unknown_variable`\n```\n\nPlease verify that the name wasn't misspelled and ensure that the\nidentifier being referred to is valid for the given situation. Example:\n\n```\nenum something_that_does_exist {\n Foo,\n}\n```\n\nOr:\n\n```\nmod something_that_does_exist {\n pub static foo : i32 = 0i32;\n}\n\nsomething_that_does_exist::foo; // ok!\n```\n\nOr:\n\n```\nlet unknown_variable = 12u32;\nlet x = unknown_variable; // ok!\n```\n\nIf the item is not defined in the current module, it must be imported using a\n`use` statement, like so:\n\n```\n# mod foo { pub fn bar() {} }\n# fn main() {\nuse foo::bar;\nbar();\n# }\n```\n\nIf the item you are importing is not defined in some super-module of the\ncurrent module, then it must also be declared as public (e.g., `pub fn`).\n"},"level":"error","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/did_you_mean/issue-40396.rs","byte_start":271,"byte_end":274,"line_start":10,"line_end":10,"column_start":15,"column_end":18,"is_primary":true,"text":[{"text":" Vec<i32>::new();","highlight_start":15,"highlight_end":18}],"label":"not found in the crate root","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error[E0425]: cannot find function `new` in the crate root\n --> /home/centril/programming/rust/src/test/ui/did_you_mean/issue-40396.rs:10:15\n |\nLL | Vec<i32>::new();\n | ^^^ not found in the crate root\n\n"}
{"message":"expected value, found struct `Vec`","code":{"code":"E0423","explanation":"\nAn identifier was used like a function name or a value was expected and the\nidentifier exists but it belongs to a different namespace.\n\nFor (an erroneous) example, here a `struct` variant name were used as a\nfunction:\n\n```compile_fail,E0423\nstruct Foo { a: bool };\n\nlet f = Foo();\n// error: expected function, found `Foo`\n// `Foo` is a struct name, but this expression uses it like a function name\n```\n\nPlease verify you didn't misspell the name of what you actually wanted to use\nhere. Example:\n\n```\nfn Foo() -> u32 { 0 }\n\nlet f = Foo(); // ok!\n```\n\nIt is common to forget the trailing `!` on macro invocations, which would also\nyield this error:\n\n```compile_fail,E0423\nprintln(\"\");\n// error: expected function, found macro `println`\n// did you mean `println!(...)`? (notice the trailing `!`)\n```\n\nAnother case where this error is emitted is when a value is expected, but\nsomething else is found:\n\n```compile_fail,E0423\npub mod a {\n pub const I: i32 = 1;\n}\n\nfn h1() -> i32 {\n a.I\n //~^ ERROR expected value, found module `a`\n // did you mean `a::I`?\n}\n```\n"},"level":"error","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/did_you_mean/issue-40396.rs","byte_start":512,"byte_end":515,"line_start":18,"line_end":18,"column_start":21,"column_end":24,"is_primary":true,"text":[{"text":" (0..13).collect<Vec<i32>();","highlight_start":21,"highlight_end":24}],"label":"did you mean `Vec { /* fields */ }`?","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error[E0423]: expected value, found struct `Vec`\n --> /home/centril/programming/rust/src/test/ui/did_you_mean/issue-40396.rs:18:21\n |\nLL | (0..13).collect<Vec<i32>();\n | ^^^ did you mean `Vec { /* fields */ }`?\n\n"}
{"message":"expected value, found builtin type `i32`","code":{"code":"E0423","explanation":"\nAn identifier was used like a function name or a value was expected and the\nidentifier exists but it belongs to a different namespace.\n\nFor (an erroneous) example, here a `struct` variant name were used as a\nfunction:\n\n```compile_fail,E0423\nstruct Foo { a: bool };\n\nlet f = Foo();\n// error: expected function, found `Foo`\n// `Foo` is a struct name, but this expression uses it like a function name\n```\n\nPlease verify you didn't misspell the name of what you actually wanted to use\nhere. Example:\n\n```\nfn Foo() -> u32 { 0 }\n\nlet f = Foo(); // ok!\n```\n\nIt is common to forget the trailing `!` on macro invocations, which would also\nyield this error:\n\n```compile_fail,E0423\nprintln(\"\");\n// error: expected function, found macro `println`\n// did you mean `println!(...)`? (notice the trailing `!`)\n```\n\nAnother case where this error is emitted is when a value is expected, but\nsomething else is found:\n\n```compile_fail,E0423\npub mod a {\n pub const I: i32 = 1;\n}\n\nfn h1() -> i32 {\n a.I\n //~^ ERROR expected value, found module `a`\n // did you mean `a::I`?\n}\n```\n"},"level":"error","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/did_you_mean/issue-40396.rs","byte_start":516,"byte_end":519,"line_start":18,"line_end":18,"column_start":25,"column_end":28,"is_primary":true,"text":[{"text":" (0..13).collect<Vec<i32>();","highlight_start":25,"highlight_end":28}],"label":"not a value","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error[E0423]: expected value, found builtin type `i32`\n --> /home/centril/programming/rust/src/test/ui/did_you_mean/issue-40396.rs:18:25\n |\nLL | (0..13).collect<Vec<i32>();\n | ^^^ not a value\n\n"}
{"message":"attempted to take value of method `collect` on type `std::ops::Range<{integer}>`","code":{"code":"E0615","explanation":"\nAttempted to access a method like a field.\n\nErroneous code example:\n\n```compile_fail,E0615\nstruct Foo {\n x: u32,\n}\n\nimpl Foo {\n fn method(&self) {}\n}\n\nlet f = Foo { x: 0 };\nf.method; // error: attempted to take value of method `method` on type `Foo`\n```\n\nIf you want to use a method, add `()` after it:\n\n```\n# struct Foo { x: u32 }\n# impl Foo { fn method(&self) {} }\n# let f = Foo { x: 0 };\nf.method();\n```\n\nHowever, if you wanted to access a field of a struct check that the field name\nis spelled correctly. Example:\n\n```\n# struct Foo { x: u32 }\n# impl Foo { fn method(&self) {} }\n# let f = Foo { x: 0 };\nprintln!(\"{}\", f.x);\n```\n"},"level":"error","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/did_you_mean/issue-40396.rs","byte_start":23,"byte_end":30,"line_start":2,"line_end":2,"column_start":13,"column_end":20,"is_primary":true,"text":[{"text":" (0..13).collect<Vec<i32>>();","highlight_start":13,"highlight_end":20}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"use parentheses to call the method","code":null,"level":"help","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/did_you_mean/issue-40396.rs","byte_start":23,"byte_end":30,"line_start":2,"line_end":2,"column_start":13,"column_end":20,"is_primary":true,"text":[{"text":" (0..13).collect<Vec<i32>>();","highlight_start":13,"highlight_end":20}],"label":null,"suggested_replacement":"collect()","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"error[E0615]: attempted to take value of method `collect` on type `std::ops::Range<{integer}>`\n --> /home/centril/programming/rust/src/test/ui/did_you_mean/issue-40396.rs:2:13\n |\nLL | (0..13).collect<Vec<i32>>();\n | ^^^^^^^ help: use parentheses to call the method: `collect()`\n\n"}
{"message":"attempted to take value of method `collect` on type `std::ops::Range<{integer}>`","code":{"code":"E0615","explanation":"\nAttempted to access a method like a field.\n\nErroneous code example:\n\n```compile_fail,E0615\nstruct Foo {\n x: u32,\n}\n\nimpl Foo {\n fn method(&self) {}\n}\n\nlet f = Foo { x: 0 };\nf.method; // error: attempted to take value of method `method` on type `Foo`\n```\n\nIf you want to use a method, add `()` after it:\n\n```\n# struct Foo { x: u32 }\n# impl Foo { fn method(&self) {} }\n# let f = Foo { x: 0 };\nf.method();\n```\n\nHowever, if you wanted to access a field of a struct check that the field name\nis spelled correctly. Example:\n\n```\n# struct Foo { x: u32 }\n# impl Foo { fn method(&self) {} }\n# let f = Foo { x: 0 };\nprintln!(\"{}\", f.x);\n```\n"},"level":"error","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/did_you_mean/issue-40396.rs","byte_start":504,"byte_end":511,"line_start":18,"line_end":18,"column_start":13,"column_end":20,"is_primary":true,"text":[{"text":" (0..13).collect<Vec<i32>();","highlight_start":13,"highlight_end":20}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"use parentheses to call the method","code":null,"level":"help","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/did_you_mean/issue-40396.rs","byte_start":504,"byte_end":511,"line_start":18,"line_end":18,"column_start":13,"column_end":20,"is_primary":true,"text":[{"text":" (0..13).collect<Vec<i32>();","highlight_start":13,"highlight_end":20}],"label":null,"suggested_replacement":"collect()","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"error[E0615]: attempted to take value of method `collect` on type `std::ops::Range<{integer}>`\n --> /home/centril/programming/rust/src/test/ui/did_you_mean/issue-40396.rs:18:13\n |\nLL | (0..13).collect<Vec<i32>();\n | ^^^^^^^ help: use parentheses to call the method: `collect()`\n\n"}
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc::infer::InferCtxt::probe
27: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_return_type
28: rustc_typeck::check::FnCtxt::suggest_ref_or_into
29: rustc_typeck::check::demand::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::demand_coerce_diag
30: rustc_typeck::check::demand::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::demand_coerce
31: rustc_typeck::check::op::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::check_overloaded_binop
32: rustc_typeck::check::op::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::check_binop
33: rustc_typeck::check::FnCtxt::check_expr_kind
34: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
35: rustc_typeck::check::FnCtxt::check_stmt
36: rustc_typeck::check::FnCtxt::check_block_with_expected
37: rustc_typeck::check::FnCtxt::check_expr_kind
38: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
39: rustc_typeck::check::FnCtxt::check_return_expr
40: rustc_typeck::check::check_fn
41: rustc::ty::context::GlobalCtxt::enter_local
42: rustc_typeck::check::typeck_tables_of
43: rustc::ty::query::__query_compute::typeck_tables_of
44: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
45: rustc::dep_graph::graph::DepGraph::with_task_impl
46: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
47: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners
48: rustc_typeck::check::typeck_item_bodies
49: rustc::ty::query::__query_compute::typeck_item_bodies
50: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_item_bodies<'tcx>>::compute
51: rustc::dep_graph::graph::DepGraph::with_task_impl
52: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
53: rustc::util::common::time
54: rustc_typeck::check_crate
55: <std::thread::local::LocalKey<T>>::with
56: rustc::ty::context::TyCtxt::create_and_enter
57: rustc_driver::driver::compile_input
58: rustc_driver::run_compiler_with_pool
59: <scoped_tls::ScopedKey<T>>::set
60: rustc_driver::run_compiler
61: rustc_driver::monitor::{{closure}}
62: __rust_maybe_catch_panic
63: <F as alloc::boxed::FnBox<A>>::call_box
64: std::sys_common::thread::start_thread
65: std::sys::unix::thread::Thread::new::thread_start
66: start_thread
67: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/did_you_mean/issue-40396.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"fn foo() {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `qux`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/did_you_mean/issue-40396.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"fn foo() {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `qux`\n"}
{"message":"#2 [typeck_item_bodies] type-checking all item bodies","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/did_you_mean/issue-40396.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"fn foo() {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [typeck_item_bodies] type-checking all item bodies\n"}
end of query stack
{"message":"aborting due to 14 previous errors","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to 14 previous errors\n\n"}
{"message":"Some errors occurred: E0423, E0425, E0615.","code":null,"level":"","spans":[],"children":[],"rendered":"Some errors occurred: E0423, E0425, E0615.\n"}
{"message":"For more information about an error, try `rustc --explain E0423`.","code":null,"level":"","spans":[],"children":[],"rendered":"For more information about an error, try `rustc --explain E0423`.\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/did_you_mean/issue-40396.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/did_you_mean/issue-53280-expected-float-found-integer-literal.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/did_you_mean/issue-53280-expected-float-found-integer-literal.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/did_you_mean/issue-53280-expected-float-found-integer-literal/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/did_you_mean/issue-53280-expected-float-found-integer-literal/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc::infer::InferCtxt::probe
27: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_return_type
28: rustc_typeck::check::FnCtxt::suggest_ref_or_into
29: rustc_typeck::check::demand::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::demand_coerce_diag
30: rustc_typeck::check::demand::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::demand_coerce
31: rustc_typeck::check::FnCtxt::check_decl_local
32: rustc_typeck::check::FnCtxt::check_stmt
33: rustc_typeck::check::FnCtxt::check_block_with_expected
34: rustc_typeck::check::FnCtxt::check_expr_kind
35: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
36: rustc_typeck::check::FnCtxt::check_return_expr
37: rustc_typeck::check::check_fn
38: rustc::ty::context::GlobalCtxt::enter_local
39: rustc_typeck::check::typeck_tables_of
40: rustc::ty::query::__query_compute::typeck_tables_of
41: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
42: rustc::dep_graph::graph::DepGraph::with_task_impl
43: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
44: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners
45: rustc_typeck::check::typeck_item_bodies
46: rustc::ty::query::__query_compute::typeck_item_bodies
47: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_item_bodies<'tcx>>::compute
48: rustc::dep_graph::graph::DepGraph::with_task_impl
49: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
50: rustc::util::common::time
51: rustc_typeck::check_crate
52: <std::thread::local::LocalKey<T>>::with
53: rustc::ty::context::TyCtxt::create_and_enter
54: rustc_driver::driver::compile_input
55: rustc_driver::run_compiler_with_pool
56: <scoped_tls::ScopedKey<T>>::set
57: rustc_driver::run_compiler
58: rustc_driver::monitor::{{closure}}
59: __rust_maybe_catch_panic
60: <F as alloc::boxed::FnBox<A>>::call_box
61: std::sys_common::thread::start_thread
62: std::sys::unix::thread::Thread::new::thread_start
63: start_thread
64: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/did_you_mean/issue-53280-expected-float-found-integer-literal.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"fn main() {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `main`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/did_you_mean/issue-53280-expected-float-found-integer-literal.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"fn main() {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `main`\n"}
{"message":"#2 [typeck_item_bodies] type-checking all item bodies","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/did_you_mean/issue-53280-expected-float-found-integer-literal.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"fn main() {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [typeck_item_bodies] type-checking all item bodies\n"}
end of query stack
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/did_you_mean/issue-53280-expected-float-found-integer-literal.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/did_you_mean/issue-42764.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/did_you_mean/issue-42764.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/did_you_mean/issue-42764/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/did_you_mean/issue-42764/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc::infer::InferCtxt::probe
27: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_return_type
28: rustc_typeck::check::FnCtxt::suggest_ref_or_into
29: rustc_typeck::check::demand::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::demand_coerce_diag
30: rustc_typeck::check::demand::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::demand_coerce
31: rustc_typeck::check::FnCtxt::check_argument_types
32: rustc_typeck::check::callee::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::confirm_builtin_call
33: rustc_typeck::check::callee::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::check_call
34: rustc_typeck::check::FnCtxt::check_expr_kind
35: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
36: rustc_typeck::check::FnCtxt::check_stmt
37: rustc_typeck::check::FnCtxt::check_block_with_expected
38: rustc_typeck::check::FnCtxt::check_expr_kind
39: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
40: rustc_typeck::check::FnCtxt::check_return_expr
41: rustc_typeck::check::check_fn
42: rustc::ty::context::GlobalCtxt::enter_local
43: rustc_typeck::check::typeck_tables_of
44: rustc::ty::query::__query_compute::typeck_tables_of
45: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
46: rustc::dep_graph::graph::DepGraph::with_task_impl
47: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
48: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners
49: rustc_typeck::check::typeck_item_bodies
50: rustc::ty::query::__query_compute::typeck_item_bodies
51: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_item_bodies<'tcx>>::compute
52: rustc::dep_graph::graph::DepGraph::with_task_impl
53: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
54: rustc::util::common::time
55: rustc_typeck::check_crate
56: <std::thread::local::LocalKey<T>>::with
57: rustc::ty::context::TyCtxt::create_and_enter
58: rustc_driver::driver::compile_input
59: rustc_driver::run_compiler_with_pool
60: <scoped_tls::ScopedKey<T>>::set
61: rustc_driver::run_compiler
62: rustc_driver::monitor::{{closure}}
63: __rust_maybe_catch_panic
64: <F as alloc::boxed::FnBox<A>>::call_box
65: std::sys_common::thread::start_thread
66: std::sys::unix::thread::Thread::new::thread_start
67: start_thread
68: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/did_you_mean/issue-42764.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"enum DoubleOption<T> {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `main`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/did_you_mean/issue-42764.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"enum DoubleOption<T> {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `main`\n"}
{"message":"#2 [typeck_item_bodies] type-checking all item bodies","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/did_you_mean/issue-42764.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"enum DoubleOption<T> {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [typeck_item_bodies] type-checking all item bodies\n"}
end of query stack
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/did_you_mean/issue-42764.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/did_you_mean/recursion_limit_deref.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/did_you_mean/recursion_limit_deref.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/did_you_mean/recursion_limit_deref/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/did_you_mean/recursion_limit_deref/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"reached the recursion limit while auto-dereferencing `I`","code":{"code":"E0055","explanation":"\nDuring a method call, a value is automatically dereferenced as many times as\nneeded to make the value's type match the method's receiver. The catch is that\nthe compiler will only attempt to dereference a number of times up to the\nrecursion limit (which can be set via the `recursion_limit` attribute).\n\nFor a somewhat artificial example:\n\n```compile_fail,E0055\n#![recursion_limit=\"5\"]\n\nstruct Foo;\n\nimpl Foo {\n fn foo(&self) {}\n}\n\nfn main() {\n let foo = Foo;\n let ref_foo = &&&&&Foo;\n\n // error, reached the recursion limit while auto-dereferencing `&&&&&Foo`\n ref_foo.foo();\n}\n```\n\nOne fix may be to increase the recursion limit. Note that it is possible to\ncreate an infinite recursion of dereferencing, in which case the only fix is to\nsomehow break the recursion.\n"},"level":"error","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/did_you_mean/recursion_limit_deref.rs","byte_start":928,"byte_end":930,"line_start":50,"line_end":50,"column_start":22,"column_end":24,"is_primary":true,"text":[{"text":" let x: &Bottom = &t; //~ ERROR mismatched types","highlight_start":22,"highlight_end":24}],"label":"deref recursion limit reached","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"consider adding a `#![recursion_limit=\"20\"]` attribute to your crate","code":null,"level":"help","spans":[],"children":[],"rendered":null}],"rendered":"error[E0055]: reached the recursion limit while auto-dereferencing `I`\n --> /home/centril/programming/rust/src/test/ui/did_you_mean/recursion_limit_deref.rs:50:22\n |\nLL | let x: &Bottom = &t; //~ ERROR mismatched types\n | ^^ deref recursion limit reached\n |\n = help: consider adding a `#![recursion_limit=\"20\"]` attribute to your crate\n\n"}
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc::infer::InferCtxt::probe
27: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_return_type
28: rustc_typeck::check::FnCtxt::suggest_ref_or_into
29: rustc_typeck::check::demand::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::demand_coerce_diag
30: rustc_typeck::check::demand::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::demand_coerce
31: rustc_typeck::check::FnCtxt::check_decl_local
32: rustc_typeck::check::FnCtxt::check_stmt
33: rustc_typeck::check::FnCtxt::check_block_with_expected
34: rustc_typeck::check::FnCtxt::check_expr_kind
35: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
36: rustc_typeck::check::FnCtxt::check_return_expr
37: rustc_typeck::check::check_fn
38: rustc::ty::context::GlobalCtxt::enter_local
39: rustc_typeck::check::typeck_tables_of
40: rustc::ty::query::__query_compute::typeck_tables_of
41: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
42: rustc::dep_graph::graph::DepGraph::with_task_impl
43: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
44: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners
45: rustc_typeck::check::typeck_item_bodies
46: rustc::ty::query::__query_compute::typeck_item_bodies
47: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_item_bodies<'tcx>>::compute
48: rustc::dep_graph::graph::DepGraph::with_task_impl
49: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
50: rustc::util::common::time
51: rustc_typeck::check_crate
52: <std::thread::local::LocalKey<T>>::with
53: rustc::ty::context::TyCtxt::create_and_enter
54: rustc_driver::driver::compile_input
55: rustc_driver::run_compiler_with_pool
56: <scoped_tls::ScopedKey<T>>::set
57: rustc_driver::run_compiler
58: rustc_driver::monitor::{{closure}}
59: __rust_maybe_catch_panic
60: <F as alloc::boxed::FnBox<A>>::call_box
61: std::sys_common::thread::start_thread
62: std::sys::unix::thread::Thread::new::thread_start
63: start_thread
64: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/did_you_mean/recursion_limit_deref.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// Test that the recursion limit can be changed and that the compiler","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `main`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/did_you_mean/recursion_limit_deref.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// Test that the recursion limit can be changed and that the compiler","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `main`\n"}
{"message":"#2 [typeck_item_bodies] type-checking all item bodies","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/did_you_mean/recursion_limit_deref.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// Test that the recursion limit can be changed and that the compiler","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [typeck_item_bodies] type-checking all item bodies\n"}
end of query stack
{"message":"aborting due to 2 previous errors","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to 2 previous errors\n\n"}
{"message":"For more information about this error, try `rustc --explain E0055`.","code":null,"level":"","spans":[],"children":[],"rendered":"For more information about this error, try `rustc --explain E0055`.\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/did_you_mean/recursion_limit_deref.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/diverging-fn-tail-35849.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/diverging-fn-tail-35849.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/diverging-fn-tail-35849/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/diverging-fn-tail-35849/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc::infer::InferCtxt::probe
27: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_return_type
28: rustc_typeck::check::FnCtxt::suggest_ref_or_into
29: rustc_typeck::check::FnCtxt::suggest_mismatched_types_on_tail
30: <rustc_typeck::check::coercion::CoerceMany<'gcx, 'tcx, 'exprs, E>>::report_return_mismatched_types
31: <rustc_typeck::check::coercion::CoerceMany<'gcx, 'tcx, 'exprs, E>>::coerce_inner
32: rustc_typeck::check::FnCtxt::check_block_with_expected
33: rustc_typeck::check::FnCtxt::check_expr_kind
34: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
35: rustc_typeck::check::FnCtxt::check_block_with_expected
36: rustc_typeck::check::FnCtxt::check_expr_kind
37: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
38: rustc_typeck::check::FnCtxt::check_return_expr
39: rustc_typeck::check::check_fn
40: rustc::ty::context::GlobalCtxt::enter_local
41: rustc_typeck::check::typeck_tables_of
42: rustc::ty::query::__query_compute::typeck_tables_of
43: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
44: rustc::dep_graph::graph::DepGraph::with_task_impl
45: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
46: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners
47: rustc_typeck::check::typeck_item_bodies
48: rustc::ty::query::__query_compute::typeck_item_bodies
49: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_item_bodies<'tcx>>::compute
50: rustc::dep_graph::graph::DepGraph::with_task_impl
51: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
52: rustc::util::common::time
53: rustc_typeck::check_crate
54: <std::thread::local::LocalKey<T>>::with
55: rustc::ty::context::TyCtxt::create_and_enter
56: rustc_driver::driver::compile_input
57: rustc_driver::run_compiler_with_pool
58: <scoped_tls::ScopedKey<T>>::set
59: rustc_driver::run_compiler
60: rustc_driver::monitor::{{closure}}
61: __rust_maybe_catch_panic
62: <F as alloc::boxed::FnBox<A>>::call_box
63: std::sys_common::thread::start_thread
64: std::sys::unix::thread::Thread::new::thread_start
65: start_thread
66: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/diverging-fn-tail-35849.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"fn assert_sizeof() -> ! {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `assert_sizeof`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/diverging-fn-tail-35849.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"fn assert_sizeof() -> ! {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `assert_sizeof`\n"}
{"message":"#2 [typeck_item_bodies] type-checking all item bodies","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/diverging-fn-tail-35849.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"fn assert_sizeof() -> ! {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [typeck_item_bodies] type-checking all item bodies\n"}
end of query stack
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/diverging-fn-tail-35849.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/diverging-tuple-parts-39485.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/diverging-tuple-parts-39485.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/diverging-tuple-parts-39485/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/diverging-tuple-parts-39485/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc::infer::InferCtxt::probe
27: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_return_type
28: rustc_typeck::check::FnCtxt::suggest_ref_or_into
29: rustc_typeck::check::FnCtxt::suggest_mismatched_types_on_tail
30: <rustc_typeck::check::coercion::CoerceMany<'gcx, 'tcx, 'exprs, E>>::report_return_mismatched_types
31: <rustc_typeck::check::coercion::CoerceMany<'gcx, 'tcx, 'exprs, E>>::coerce_inner
32: rustc_typeck::check::FnCtxt::check_block_with_expected
33: rustc_typeck::check::FnCtxt::check_expr_kind
34: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
35: rustc_typeck::check::FnCtxt::check_return_expr
36: rustc_typeck::check::check_fn
37: rustc::ty::context::GlobalCtxt::enter_local
38: rustc_typeck::check::typeck_tables_of
39: rustc::ty::query::__query_compute::typeck_tables_of
40: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
41: rustc::dep_graph::graph::DepGraph::with_task_impl
42: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
43: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners
44: rustc_typeck::check::typeck_item_bodies
45: rustc::ty::query::__query_compute::typeck_item_bodies
46: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_item_bodies<'tcx>>::compute
47: rustc::dep_graph::graph::DepGraph::with_task_impl
48: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
49: rustc::util::common::time
50: rustc_typeck::check_crate
51: <std::thread::local::LocalKey<T>>::with
52: rustc::ty::context::TyCtxt::create_and_enter
53: rustc_driver::driver::compile_input
54: rustc_driver::run_compiler_with_pool
55: <scoped_tls::ScopedKey<T>>::set
56: rustc_driver::run_compiler
57: rustc_driver::monitor::{{closure}}
58: __rust_maybe_catch_panic
59: <F as alloc::boxed::FnBox<A>>::call_box
60: std::sys_common::thread::start_thread
61: std::sys::unix::thread::Thread::new::thread_start
62: start_thread
63: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/diverging-tuple-parts-39485.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// After #39485, this test used to pass, but that change was reverted","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `g`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/diverging-tuple-parts-39485.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// After #39485, this test used to pass, but that change was reverted","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `g`\n"}
{"message":"#2 [typeck_item_bodies] type-checking all item bodies","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/diverging-tuple-parts-39485.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// After #39485, this test used to pass, but that change was reverted","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [typeck_item_bodies] type-checking all item bodies\n"}
end of query stack
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/diverging-tuple-parts-39485.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/dont-suggest-private-trait-method.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/dont-suggest-private-trait-method.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/dont-suggest-private-trait-method/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/dont-suggest-private-trait-method/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc_typeck::check::method::probe::ProbeContext::pick
27: rustc::infer::InferCtxt::probe
28: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_name
29: rustc_typeck::check::method::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::resolve_ufcs
30: rustc_typeck::check::FnCtxt::resolve_ty_and_def_ufcs
31: rustc_typeck::check::FnCtxt::check_expr_kind
32: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
33: rustc_typeck::check::callee::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::check_call
34: rustc_typeck::check::FnCtxt::check_expr_kind
35: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
36: rustc_typeck::check::FnCtxt::check_stmt
37: rustc_typeck::check::FnCtxt::check_block_with_expected
38: rustc_typeck::check::FnCtxt::check_expr_kind
39: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
40: rustc_typeck::check::FnCtxt::check_return_expr
41: rustc_typeck::check::check_fn
42: rustc::ty::context::GlobalCtxt::enter_local
43: rustc_typeck::check::typeck_tables_of
44: rustc::ty::query::__query_compute::typeck_tables_of
45: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
46: rustc::dep_graph::graph::DepGraph::with_task_impl
47: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
48: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners
49: rustc_typeck::check::typeck_item_bodies
50: rustc::ty::query::__query_compute::typeck_item_bodies
51: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_item_bodies<'tcx>>::compute
52: rustc::dep_graph::graph::DepGraph::with_task_impl
53: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
54: rustc::util::common::time
55: rustc_typeck::check_crate
56: <std::thread::local::LocalKey<T>>::with
57: rustc::ty::context::TyCtxt::create_and_enter
58: rustc_driver::driver::compile_input
59: rustc_driver::run_compiler_with_pool
60: <scoped_tls::ScopedKey<T>>::set
61: rustc_driver::run_compiler
62: rustc_driver::monitor::{{closure}}
63: __rust_maybe_catch_panic
64: <F as alloc::boxed::FnBox<A>>::call_box
65: std::sys_common::thread::start_thread
66: std::sys::unix::thread::Thread::new::thread_start
67: start_thread
68: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/dont-suggest-private-trait-method.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"struct T;","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `main`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/dont-suggest-private-trait-method.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"struct T;","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `main`\n"}
{"message":"#2 [typeck_item_bodies] type-checking all item bodies","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/dont-suggest-private-trait-method.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"struct T;","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [typeck_item_bodies] type-checking all item bodies\n"}
end of query stack
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/dont-suggest-private-trait-method.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/dst/dst-bad-assign-3.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/dst/dst-bad-assign-3.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/dst/dst-bad-assign-3/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/dst/dst-bad-assign-3/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc::infer::InferCtxt::probe
27: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_return_type
28: rustc_typeck::check::FnCtxt::suggest_ref_or_into
29: rustc_typeck::check::demand::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::demand_coerce_diag
30: rustc_typeck::check::demand::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::demand_coerce
31: rustc_typeck::check::FnCtxt::check_expr_kind
32: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
33: rustc_typeck::check::FnCtxt::check_stmt
34: rustc_typeck::check::FnCtxt::check_block_with_expected
35: rustc_typeck::check::FnCtxt::check_expr_kind
36: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
37: rustc_typeck::check::FnCtxt::check_return_expr
38: rustc_typeck::check::check_fn
39: rustc::ty::context::GlobalCtxt::enter_local
40: rustc_typeck::check::typeck_tables_of
41: rustc::ty::query::__query_compute::typeck_tables_of
42: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
43: rustc::dep_graph::graph::DepGraph::with_task_impl
44: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
45: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners
46: rustc_typeck::check::typeck_item_bodies
47: rustc::ty::query::__query_compute::typeck_item_bodies
48: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_item_bodies<'tcx>>::compute
49: rustc::dep_graph::graph::DepGraph::with_task_impl
50: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
51: rustc::util::common::time
52: rustc_typeck::check_crate
53: <std::thread::local::LocalKey<T>>::with
54: rustc::ty::context::TyCtxt::create_and_enter
55: rustc_driver::driver::compile_input
56: rustc_driver::run_compiler_with_pool
57: <scoped_tls::ScopedKey<T>>::set
58: rustc_driver::run_compiler
59: rustc_driver::monitor::{{closure}}
60: __rust_maybe_catch_panic
61: <F as alloc::boxed::FnBox<A>>::call_box
62: std::sys_common::thread::start_thread
63: std::sys::unix::thread::Thread::new::thread_start
64: start_thread
65: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/dst/dst-bad-assign-3.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// Forbid assignment into a dynamically sized type.","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `main`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/dst/dst-bad-assign-3.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// Forbid assignment into a dynamically sized type.","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `main`\n"}
{"message":"#2 [typeck_item_bodies] type-checking all item bodies","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/dst/dst-bad-assign-3.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// Forbid assignment into a dynamically sized type.","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [typeck_item_bodies] type-checking all item bodies\n"}
end of query stack
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/dst/dst-bad-assign-3.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/dst/dst-bad-assign.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/dst/dst-bad-assign.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/dst/dst-bad-assign/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/dst/dst-bad-assign/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc::infer::InferCtxt::probe
27: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_return_type
28: rustc_typeck::check::FnCtxt::suggest_ref_or_into
29: rustc_typeck::check::demand::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::demand_coerce_diag
30: rustc_typeck::check::demand::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::demand_coerce
31: rustc_typeck::check::FnCtxt::check_expr_kind
32: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
33: rustc_typeck::check::FnCtxt::check_stmt
34: rustc_typeck::check::FnCtxt::check_block_with_expected
35: rustc_typeck::check::FnCtxt::check_expr_kind
36: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
37: rustc_typeck::check::FnCtxt::check_return_expr
38: rustc_typeck::check::check_fn
39: rustc::ty::context::GlobalCtxt::enter_local
40: rustc_typeck::check::typeck_tables_of
41: rustc::ty::query::__query_compute::typeck_tables_of
42: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
43: rustc::dep_graph::graph::DepGraph::with_task_impl
44: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
45: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners
46: rustc_typeck::check::typeck_item_bodies
47: rustc::ty::query::__query_compute::typeck_item_bodies
48: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_item_bodies<'tcx>>::compute
49: rustc::dep_graph::graph::DepGraph::with_task_impl
50: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
51: rustc::util::common::time
52: rustc_typeck::check_crate
53: <std::thread::local::LocalKey<T>>::with
54: rustc::ty::context::TyCtxt::create_and_enter
55: rustc_driver::driver::compile_input
56: rustc_driver::run_compiler_with_pool
57: <scoped_tls::ScopedKey<T>>::set
58: rustc_driver::run_compiler
59: rustc_driver::monitor::{{closure}}
60: __rust_maybe_catch_panic
61: <F as alloc::boxed::FnBox<A>>::call_box
62: std::sys_common::thread::start_thread
63: std::sys::unix::thread::Thread::new::thread_start
64: start_thread
65: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/dst/dst-bad-assign.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// Forbid assignment into a dynamically sized type.","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `main`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/dst/dst-bad-assign.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// Forbid assignment into a dynamically sized type.","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `main`\n"}
{"message":"#2 [typeck_item_bodies] type-checking all item bodies","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/dst/dst-bad-assign.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// Forbid assignment into a dynamically sized type.","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [typeck_item_bodies] type-checking all item bodies\n"}
end of query stack
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/dst/dst-bad-assign.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/dst/dst-bad-coerce2.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/dst/dst-bad-coerce2.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/dst/dst-bad-coerce2/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/dst/dst-bad-coerce2/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc::infer::InferCtxt::probe
27: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_return_type
28: rustc_typeck::check::FnCtxt::suggest_ref_or_into
29: rustc_typeck::check::demand::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::demand_coerce_diag
30: rustc_typeck::check::demand::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::demand_coerce
31: rustc_typeck::check::FnCtxt::check_decl_local
32: rustc_typeck::check::FnCtxt::check_stmt
33: rustc_typeck::check::FnCtxt::check_block_with_expected
34: rustc_typeck::check::FnCtxt::check_expr_kind
35: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
36: rustc_typeck::check::FnCtxt::check_return_expr
37: rustc_typeck::check::check_fn
38: rustc::ty::context::GlobalCtxt::enter_local
39: rustc_typeck::check::typeck_tables_of
40: rustc::ty::query::__query_compute::typeck_tables_of
41: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
42: rustc::dep_graph::graph::DepGraph::with_task_impl
43: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
44: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners
45: rustc_typeck::check::typeck_item_bodies
46: rustc::ty::query::__query_compute::typeck_item_bodies
47: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_item_bodies<'tcx>>::compute
48: rustc::dep_graph::graph::DepGraph::with_task_impl
49: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
50: rustc::util::common::time
51: rustc_typeck::check_crate
52: <std::thread::local::LocalKey<T>>::with
53: rustc::ty::context::TyCtxt::create_and_enter
54: rustc_driver::driver::compile_input
55: rustc_driver::run_compiler_with_pool
56: <scoped_tls::ScopedKey<T>>::set
57: rustc_driver::run_compiler
58: rustc_driver::monitor::{{closure}}
59: __rust_maybe_catch_panic
60: <F as alloc::boxed::FnBox<A>>::call_box
61: std::sys_common::thread::start_thread
62: std::sys::unix::thread::Thread::new::thread_start
63: start_thread
64: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/dst/dst-bad-coerce2.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// Attempt to change the mutability as well as unsizing.","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `main`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/dst/dst-bad-coerce2.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// Attempt to change the mutability as well as unsizing.","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `main`\n"}
{"message":"#2 [typeck_item_bodies] type-checking all item bodies","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/dst/dst-bad-coerce2.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// Attempt to change the mutability as well as unsizing.","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [typeck_item_bodies] type-checking all item bodies\n"}
end of query stack
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/dst/dst-bad-coerce2.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/dst/dst-bad-coercions.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/dst/dst-bad-coercions.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/dst/dst-bad-coercions/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/dst/dst-bad-coercions/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc::infer::InferCtxt::probe
27: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_return_type
28: rustc_typeck::check::FnCtxt::suggest_ref_or_into
29: rustc_typeck::check::demand::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::demand_coerce_diag
30: rustc_typeck::check::demand::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::demand_coerce
31: rustc_typeck::check::FnCtxt::check_decl_local
32: rustc_typeck::check::FnCtxt::check_stmt
33: rustc_typeck::check::FnCtxt::check_block_with_expected
34: rustc_typeck::check::FnCtxt::check_expr_kind
35: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
36: rustc_typeck::check::FnCtxt::check_return_expr
37: rustc_typeck::check::check_fn
38: rustc::ty::context::GlobalCtxt::enter_local
39: rustc_typeck::check::typeck_tables_of
40: rustc::ty::query::__query_compute::typeck_tables_of
41: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
42: rustc::dep_graph::graph::DepGraph::with_task_impl
43: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
44: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners
45: rustc_typeck::check::typeck_item_bodies
46: rustc::ty::query::__query_compute::typeck_item_bodies
47: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_item_bodies<'tcx>>::compute
48: rustc::dep_graph::graph::DepGraph::with_task_impl
49: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
50: rustc::util::common::time
51: rustc_typeck::check_crate
52: <std::thread::local::LocalKey<T>>::with
53: rustc::ty::context::TyCtxt::create_and_enter
54: rustc_driver::driver::compile_input
55: rustc_driver::run_compiler_with_pool
56: <scoped_tls::ScopedKey<T>>::set
57: rustc_driver::run_compiler
58: rustc_driver::monitor::{{closure}}
59: __rust_maybe_catch_panic
60: <F as alloc::boxed::FnBox<A>>::call_box
61: std::sys_common::thread::start_thread
62: std::sys::unix::thread::Thread::new::thread_start
63: start_thread
64: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/dst/dst-bad-coercions.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// Test implicit coercions involving DSTs and raw pointers.","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `main`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/dst/dst-bad-coercions.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// Test implicit coercions involving DSTs and raw pointers.","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `main`\n"}
{"message":"#2 [typeck_item_bodies] type-checking all item bodies","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/dst/dst-bad-coercions.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// Test implicit coercions involving DSTs and raw pointers.","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [typeck_item_bodies] type-checking all item bodies\n"}
end of query stack
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/dst/dst-bad-coercions.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/dst/dst-bad-coerce4.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/dst/dst-bad-coerce4.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/dst/dst-bad-coerce4/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/dst/dst-bad-coerce4/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc::infer::InferCtxt::probe
27: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_return_type
28: rustc_typeck::check::FnCtxt::suggest_ref_or_into
29: rustc_typeck::check::demand::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::demand_coerce_diag
30: rustc_typeck::check::demand::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::demand_coerce
31: rustc_typeck::check::FnCtxt::check_decl_local
32: rustc_typeck::check::FnCtxt::check_stmt
33: rustc_typeck::check::FnCtxt::check_block_with_expected
34: rustc_typeck::check::FnCtxt::check_expr_kind
35: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
36: rustc_typeck::check::FnCtxt::check_return_expr
37: rustc_typeck::check::check_fn
38: rustc::ty::context::GlobalCtxt::enter_local
39: rustc_typeck::check::typeck_tables_of
40: rustc::ty::query::__query_compute::typeck_tables_of
41: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
42: rustc::dep_graph::graph::DepGraph::with_task_impl
43: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
44: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners
45: rustc_typeck::check::typeck_item_bodies
46: rustc::ty::query::__query_compute::typeck_item_bodies
47: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_item_bodies<'tcx>>::compute
48: rustc::dep_graph::graph::DepGraph::with_task_impl
49: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
50: rustc::util::common::time
51: rustc_typeck::check_crate
52: <std::thread::local::LocalKey<T>>::with
53: rustc::ty::context::TyCtxt::create_and_enter
54: rustc_driver::driver::compile_input
55: rustc_driver::run_compiler_with_pool
56: <scoped_tls::ScopedKey<T>>::set
57: rustc_driver::run_compiler
58: rustc_driver::monitor::{{closure}}
59: __rust_maybe_catch_panic
60: <F as alloc::boxed::FnBox<A>>::call_box
61: std::sys_common::thread::start_thread
62: std::sys::unix::thread::Thread::new::thread_start
63: start_thread
64: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/dst/dst-bad-coerce4.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// Attempt to coerce from unsized to sized.","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `main`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/dst/dst-bad-coerce4.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// Attempt to coerce from unsized to sized.","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `main`\n"}
{"message":"#2 [typeck_item_bodies] type-checking all item bodies","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/dst/dst-bad-coerce4.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// Attempt to coerce from unsized to sized.","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [typeck_item_bodies] type-checking all item bodies\n"}
end of query stack
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/dst/dst-bad-coerce4.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/dst/dst-bad-coerce1.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/dst/dst-bad-coerce1.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/dst/dst-bad-coerce1/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/dst/dst-bad-coerce1/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc::infer::InferCtxt::probe
27: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_return_type
28: rustc_typeck::check::FnCtxt::suggest_ref_or_into
29: rustc_typeck::check::demand::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::demand_coerce_diag
30: rustc_typeck::check::demand::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::demand_coerce
31: rustc_typeck::check::FnCtxt::check_decl_local
32: rustc_typeck::check::FnCtxt::check_stmt
33: rustc_typeck::check::FnCtxt::check_block_with_expected
34: rustc_typeck::check::FnCtxt::check_expr_kind
35: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
36: rustc_typeck::check::FnCtxt::check_return_expr
37: rustc_typeck::check::check_fn
38: rustc::ty::context::GlobalCtxt::enter_local
39: rustc_typeck::check::typeck_tables_of
40: rustc::ty::query::__query_compute::typeck_tables_of
41: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
42: rustc::dep_graph::graph::DepGraph::with_task_impl
43: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
44: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners
45: rustc_typeck::check::typeck_item_bodies
46: rustc::ty::query::__query_compute::typeck_item_bodies
47: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_item_bodies<'tcx>>::compute
48: rustc::dep_graph::graph::DepGraph::with_task_impl
49: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
50: rustc::util::common::time
51: rustc_typeck::check_crate
52: <std::thread::local::LocalKey<T>>::with
53: rustc::ty::context::TyCtxt::create_and_enter
54: rustc_driver::driver::compile_input
55: rustc_driver::run_compiler_with_pool
56: <scoped_tls::ScopedKey<T>>::set
57: rustc_driver::run_compiler
58: rustc_driver::monitor::{{closure}}
59: __rust_maybe_catch_panic
60: <F as alloc::boxed::FnBox<A>>::call_box
61: std::sys_common::thread::start_thread
62: std::sys::unix::thread::Thread::new::thread_start
63: start_thread
64: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/dst/dst-bad-coerce1.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// Attempt to change the type as well as unsizing.","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `main`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/dst/dst-bad-coerce1.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// Attempt to change the type as well as unsizing.","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `main`\n"}
{"message":"#2 [typeck_item_bodies] type-checking all item bodies","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/dst/dst-bad-coerce1.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// Attempt to change the type as well as unsizing.","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [typeck_item_bodies] type-checking all item bodies\n"}
end of query stack
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/dst/dst-bad-coerce1.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/enum-variant-generic-args.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/enum-variant-generic-args.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/enum-variant-generic-args/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/enum-variant-generic-args/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc::infer::InferCtxt::probe
27: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_return_type
28: rustc_typeck::check::FnCtxt::suggest_ref_or_into
29: rustc_typeck::check::demand::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::demand_coerce_diag
30: rustc_typeck::check::demand::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::demand_coerce
31: rustc_typeck::check::FnCtxt::check_argument_types
32: rustc_typeck::check::callee::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::confirm_builtin_call
33: rustc_typeck::check::callee::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::check_call
34: rustc_typeck::check::FnCtxt::check_expr_kind
35: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
36: rustc_typeck::check::FnCtxt::check_stmt
37: rustc_typeck::check::FnCtxt::check_block_with_expected
38: rustc_typeck::check::FnCtxt::check_expr_kind
39: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
40: rustc_typeck::check::FnCtxt::check_return_expr
41: rustc_typeck::check::check_fn
42: rustc::ty::context::GlobalCtxt::enter_local
43: rustc_typeck::check::typeck_tables_of
44: rustc::ty::query::__query_compute::typeck_tables_of
45: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
46: rustc::dep_graph::graph::DepGraph::with_task_impl
47: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
48: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners
49: rustc_typeck::check::typeck_item_bodies
50: rustc::ty::query::__query_compute::typeck_item_bodies
51: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_item_bodies<'tcx>>::compute
52: rustc::dep_graph::graph::DepGraph::with_task_impl
53: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
54: rustc::util::common::time
55: rustc_typeck::check_crate
56: <std::thread::local::LocalKey<T>>::with
57: rustc::ty::context::TyCtxt::create_and_enter
58: rustc_driver::driver::compile_input
59: rustc_driver::run_compiler_with_pool
60: <scoped_tls::ScopedKey<T>>::set
61: rustc_driver::run_compiler
62: rustc_driver::monitor::{{closure}}
63: __rust_maybe_catch_panic
64: <F as alloc::boxed::FnBox<A>>::call_box
65: std::sys_common::thread::start_thread
66: std::sys::unix::thread::Thread::new::thread_start
67: start_thread
68: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/enum-variant-generic-args.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"#![feature(type_alias_enum_variants)]","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `<Enum<T>>::ts_variant`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/enum-variant-generic-args.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"#![feature(type_alias_enum_variants)]","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `<Enum<T>>::ts_variant`\n"}
{"message":"#2 [typeck_item_bodies] type-checking all item bodies","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/enum-variant-generic-args.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"#![feature(type_alias_enum_variants)]","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [typeck_item_bodies] type-checking all item bodies\n"}
end of query stack
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/enum-variant-generic-args.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/error-codes/E0070.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/error-codes/E0070.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/error-codes/E0070/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/error-codes/E0070/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"invalid left-hand side expression","code":{"code":"E0070","explanation":"\nThe left-hand side of an assignment operator must be a place expression. A\nplace expression represents a memory location and can be a variable (with\noptional namespacing), a dereference, an indexing expression or a field\nreference.\n\nMore details can be found in the [Expressions] section of the Reference.\n\n[Expressions]: https://doc.rust-lang.org/reference/expressions.html#places-rvalues-and-temporaries\n\nNow, we can go further. Here are some erroneous code examples:\n\n```compile_fail,E0070\nstruct SomeStruct {\n x: i32,\n y: i32\n}\n\nconst SOME_CONST : i32 = 12;\n\nfn some_other_func() {}\n\nfn some_function() {\n SOME_CONST = 14; // error : a constant value cannot be changed!\n 1 = 3; // error : 1 isn't a valid place!\n some_other_func() = 4; // error : we can't assign value to a function!\n SomeStruct.x = 12; // error : SomeStruct a structure name but it is used\n // like a variable!\n}\n```\n\nAnd now let's give working examples:\n\n```\nstruct SomeStruct {\n x: i32,\n y: i32\n}\nlet mut s = SomeStruct {x: 0, y: 0};\n\ns.x = 3; // that's good !\n\n// ...\n\nfn some_func(x: &mut i32) {\n *x = 12; // that's good !\n}\n```\n"},"level":"error","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/error-codes/E0070.rs","byte_start":80,"byte_end":95,"line_start":6,"line_end":6,"column_start":5,"column_end":20,"is_primary":true,"text":[{"text":" SOME_CONST = 14; //~ ERROR E0070","highlight_start":5,"highlight_end":20}],"label":"left-hand of expression not valid","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error[E0070]: invalid left-hand side expression\n --> /home/centril/programming/rust/src/test/ui/error-codes/E0070.rs:6:5\n |\nLL | SOME_CONST = 14; //~ ERROR E0070\n | ^^^^^^^^^^^^^^^ left-hand of expression not valid\n\n"}
{"message":"invalid left-hand side expression","code":{"code":"E0070","explanation":"\nThe left-hand side of an assignment operator must be a place expression. A\nplace expression represents a memory location and can be a variable (with\noptional namespacing), a dereference, an indexing expression or a field\nreference.\n\nMore details can be found in the [Expressions] section of the Reference.\n\n[Expressions]: https://doc.rust-lang.org/reference/expressions.html#places-rvalues-and-temporaries\n\nNow, we can go further. Here are some erroneous code examples:\n\n```compile_fail,E0070\nstruct SomeStruct {\n x: i32,\n y: i32\n}\n\nconst SOME_CONST : i32 = 12;\n\nfn some_other_func() {}\n\nfn some_function() {\n SOME_CONST = 14; // error : a constant value cannot be changed!\n 1 = 3; // error : 1 isn't a valid place!\n some_other_func() = 4; // error : we can't assign value to a function!\n SomeStruct.x = 12; // error : SomeStruct a structure name but it is used\n // like a variable!\n}\n```\n\nAnd now let's give working examples:\n\n```\nstruct SomeStruct {\n x: i32,\n y: i32\n}\nlet mut s = SomeStruct {x: 0, y: 0};\n\ns.x = 3; // that's good !\n\n// ...\n\nfn some_func(x: &mut i32) {\n *x = 12; // that's good !\n}\n```\n"},"level":"error","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/error-codes/E0070.rs","byte_start":117,"byte_end":122,"line_start":7,"line_end":7,"column_start":5,"column_end":10,"is_primary":true,"text":[{"text":" 1 = 3; //~ ERROR E0070","highlight_start":5,"highlight_end":10}],"label":"left-hand of expression not valid","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error[E0070]: invalid left-hand side expression\n --> /home/centril/programming/rust/src/test/ui/error-codes/E0070.rs:7:5\n |\nLL | 1 = 3; //~ ERROR E0070\n | ^^^^^ left-hand of expression not valid\n\n"}
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc::infer::InferCtxt::probe
27: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_return_type
28: rustc_typeck::check::FnCtxt::suggest_ref_or_into
29: rustc_typeck::check::demand::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::demand_coerce_diag
30: rustc_typeck::check::demand::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::demand_coerce
31: rustc_typeck::check::FnCtxt::check_expr_kind
32: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
33: rustc_typeck::check::FnCtxt::check_stmt
34: rustc_typeck::check::FnCtxt::check_block_with_expected
35: rustc_typeck::check::FnCtxt::check_expr_kind
36: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
37: rustc_typeck::check::FnCtxt::check_return_expr
38: rustc_typeck::check::check_fn
39: rustc::ty::context::GlobalCtxt::enter_local
40: rustc_typeck::check::typeck_tables_of
41: rustc::ty::query::__query_compute::typeck_tables_of
42: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
43: rustc::dep_graph::graph::DepGraph::with_task_impl
44: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
45: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners
46: rustc_typeck::check::typeck_item_bodies
47: rustc::ty::query::__query_compute::typeck_item_bodies
48: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_item_bodies<'tcx>>::compute
49: rustc::dep_graph::graph::DepGraph::with_task_impl
50: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
51: rustc::util::common::time
52: rustc_typeck::check_crate
53: <std::thread::local::LocalKey<T>>::with
54: rustc::ty::context::TyCtxt::create_and_enter
55: rustc_driver::driver::compile_input
56: rustc_driver::run_compiler_with_pool
57: <scoped_tls::ScopedKey<T>>::set
58: rustc_driver::run_compiler
59: rustc_driver::monitor::{{closure}}
60: __rust_maybe_catch_panic
61: <F as alloc::boxed::FnBox<A>>::call_box
62: std::sys_common::thread::start_thread
63: std::sys::unix::thread::Thread::new::thread_start
64: start_thread
65: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/error-codes/E0070.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"const SOME_CONST : i32 = 12;","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `some_function`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/error-codes/E0070.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"const SOME_CONST : i32 = 12;","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `some_function`\n"}
{"message":"#2 [typeck_item_bodies] type-checking all item bodies","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/error-codes/E0070.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"const SOME_CONST : i32 = 12;","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [typeck_item_bodies] type-checking all item bodies\n"}
end of query stack
{"message":"aborting due to 3 previous errors","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to 3 previous errors\n\n"}
{"message":"For more information about this error, try `rustc --explain E0070`.","code":null,"level":"","spans":[],"children":[],"rendered":"For more information about this error, try `rustc --explain E0070`.\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/error-codes/E0070.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/empty/empty-struct-braces-expr.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/empty/empty-struct-braces-expr.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/empty/empty-struct-braces-expr/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/empty/empty-struct-braces-expr/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"expected value, found struct `Empty1`","code":{"code":"E0423","explanation":"\nAn identifier was used like a function name or a value was expected and the\nidentifier exists but it belongs to a different namespace.\n\nFor (an erroneous) example, here a `struct` variant name were used as a\nfunction:\n\n```compile_fail,E0423\nstruct Foo { a: bool };\n\nlet f = Foo();\n// error: expected function, found `Foo`\n// `Foo` is a struct name, but this expression uses it like a function name\n```\n\nPlease verify you didn't misspell the name of what you actually wanted to use\nhere. Example:\n\n```\nfn Foo() -> u32 { 0 }\n\nlet f = Foo(); // ok!\n```\n\nIt is common to forget the trailing `!` on macro invocations, which would also\nyield this error:\n\n```compile_fail,E0423\nprintln(\"\");\n// error: expected function, found macro `println`\n// did you mean `println!(...)`? (notice the trailing `!`)\n```\n\nAnother case where this error is emitted is when a value is expected, but\nsomething else is found:\n\n```compile_fail,E0423\npub mod a {\n pub const I: i32 = 1;\n}\n\nfn h1() -> i32 {\n a.I\n //~^ ERROR expected value, found module `a`\n // did you mean `a::I`?\n}\n```\n"},"level":"error","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/empty/empty-struct-braces-expr.rs","byte_start":218,"byte_end":224,"line_start":15,"line_end":15,"column_start":14,"column_end":20,"is_primary":true,"text":[{"text":" let e1 = Empty1; //~ ERROR expected value, found struct `Empty1`","highlight_start":14,"highlight_end":20}],"label":"did you mean `Empty1 { /* fields */ }`?","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"a unit struct with a similar name exists","code":null,"level":"help","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/empty/empty-struct-braces-expr.rs","byte_start":218,"byte_end":224,"line_start":15,"line_end":15,"column_start":14,"column_end":20,"is_primary":true,"text":[{"text":" let e1 = Empty1; //~ ERROR expected value, found struct `Empty1`","highlight_start":14,"highlight_end":20}],"label":null,"suggested_replacement":"XEmpty2","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"error[E0423]: expected value, found struct `Empty1`\n --> /home/centril/programming/rust/src/test/ui/empty/empty-struct-braces-expr.rs:15:14\n |\nLL | let e1 = Empty1; //~ ERROR expected value, found struct `Empty1`\n | ^^^^^^\n | |\n | did you mean `Empty1 { /* fields */ }`?\n | help: a unit struct with a similar name exists: `XEmpty2`\n\n"}
{"message":"expected function, found struct `Empty1`","code":{"code":"E0423","explanation":"\nAn identifier was used like a function name or a value was expected and the\nidentifier exists but it belongs to a different namespace.\n\nFor (an erroneous) example, here a `struct` variant name were used as a\nfunction:\n\n```compile_fail,E0423\nstruct Foo { a: bool };\n\nlet f = Foo();\n// error: expected function, found `Foo`\n// `Foo` is a struct name, but this expression uses it like a function name\n```\n\nPlease verify you didn't misspell the name of what you actually wanted to use\nhere. Example:\n\n```\nfn Foo() -> u32 { 0 }\n\nlet f = Foo(); // ok!\n```\n\nIt is common to forget the trailing `!` on macro invocations, which would also\nyield this error:\n\n```compile_fail,E0423\nprintln(\"\");\n// error: expected function, found macro `println`\n// did you mean `println!(...)`? (notice the trailing `!`)\n```\n\nAnother case where this error is emitted is when a value is expected, but\nsomething else is found:\n\n```compile_fail,E0423\npub mod a {\n pub const I: i32 = 1;\n}\n\nfn h1() -> i32 {\n a.I\n //~^ ERROR expected value, found module `a`\n // did you mean `a::I`?\n}\n```\n"},"level":"error","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/empty/empty-struct-braces-expr.rs","byte_start":287,"byte_end":293,"line_start":16,"line_end":16,"column_start":14,"column_end":20,"is_primary":true,"text":[{"text":" let e1 = Empty1(); //~ ERROR expected function, found struct `Empty1`","highlight_start":14,"highlight_end":20}],"label":"did you mean `Empty1 { /* fields */ }`?","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"a unit struct with a similar name exists","code":null,"level":"help","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/empty/empty-struct-braces-expr.rs","byte_start":287,"byte_end":293,"line_start":16,"line_end":16,"column_start":14,"column_end":20,"is_primary":true,"text":[{"text":" let e1 = Empty1(); //~ ERROR expected function, found struct `Empty1`","highlight_start":14,"highlight_end":20}],"label":null,"suggested_replacement":"XEmpty2","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"error[E0423]: expected function, found struct `Empty1`\n --> /home/centril/programming/rust/src/test/ui/empty/empty-struct-braces-expr.rs:16:14\n |\nLL | let e1 = Empty1(); //~ ERROR expected function, found struct `Empty1`\n | ^^^^^^\n | |\n | did you mean `Empty1 { /* fields */ }`?\n | help: a unit struct with a similar name exists: `XEmpty2`\n\n"}
{"message":"expected value, found struct variant `E::Empty3`","code":{"code":"E0423","explanation":"\nAn identifier was used like a function name or a value was expected and the\nidentifier exists but it belongs to a different namespace.\n\nFor (an erroneous) example, here a `struct` variant name were used as a\nfunction:\n\n```compile_fail,E0423\nstruct Foo { a: bool };\n\nlet f = Foo();\n// error: expected function, found `Foo`\n// `Foo` is a struct name, but this expression uses it like a function name\n```\n\nPlease verify you didn't misspell the name of what you actually wanted to use\nhere. Example:\n\n```\nfn Foo() -> u32 { 0 }\n\nlet f = Foo(); // ok!\n```\n\nIt is common to forget the trailing `!` on macro invocations, which would also\nyield this error:\n\n```compile_fail,E0423\nprintln(\"\");\n// error: expected function, found macro `println`\n// did you mean `println!(...)`? (notice the trailing `!`)\n```\n\nAnother case where this error is emitted is when a value is expected, but\nsomething else is found:\n\n```compile_fail,E0423\npub mod a {\n pub const I: i32 = 1;\n}\n\nfn h1() -> i32 {\n a.I\n //~^ ERROR expected value, found module `a`\n // did you mean `a::I`?\n}\n```\n"},"level":"error","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/empty/empty-struct-braces-expr.rs","byte_start":361,"byte_end":370,"line_start":17,"line_end":17,"column_start":14,"column_end":23,"is_primary":true,"text":[{"text":" let e3 = E::Empty3; //~ ERROR expected value, found struct variant `E::Empty3`","highlight_start":14,"highlight_end":23}],"label":"did you mean `E::Empty3 { /* fields */ }`?","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error[E0423]: expected value, found struct variant `E::Empty3`\n --> /home/centril/programming/rust/src/test/ui/empty/empty-struct-braces-expr.rs:17:14\n |\nLL | let e3 = E::Empty3; //~ ERROR expected value, found struct variant `E::Empty3`\n | ^^^^^^^^^ did you mean `E::Empty3 { /* fields */ }`?\n\n"}
{"message":"expected function, found struct variant `E::Empty3`","code":{"code":"E0423","explanation":"\nAn identifier was used like a function name or a value was expected and the\nidentifier exists but it belongs to a different namespace.\n\nFor (an erroneous) example, here a `struct` variant name were used as a\nfunction:\n\n```compile_fail,E0423\nstruct Foo { a: bool };\n\nlet f = Foo();\n// error: expected function, found `Foo`\n// `Foo` is a struct name, but this expression uses it like a function name\n```\n\nPlease verify you didn't misspell the name of what you actually wanted to use\nhere. Example:\n\n```\nfn Foo() -> u32 { 0 }\n\nlet f = Foo(); // ok!\n```\n\nIt is common to forget the trailing `!` on macro invocations, which would also\nyield this error:\n\n```compile_fail,E0423\nprintln(\"\");\n// error: expected function, found macro `println`\n// did you mean `println!(...)`? (notice the trailing `!`)\n```\n\nAnother case where this error is emitted is when a value is expected, but\nsomething else is found:\n\n```compile_fail,E0423\npub mod a {\n pub const I: i32 = 1;\n}\n\nfn h1() -> i32 {\n a.I\n //~^ ERROR expected value, found module `a`\n // did you mean `a::I`?\n}\n```\n"},"level":"error","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/empty/empty-struct-braces-expr.rs","byte_start":444,"byte_end":453,"line_start":18,"line_end":18,"column_start":14,"column_end":23,"is_primary":true,"text":[{"text":" let e3 = E::Empty3(); //~ ERROR expected function, found struct variant `E::Empty3`","highlight_start":14,"highlight_end":23}],"label":"did you mean `E::Empty3 { /* fields */ }`?","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error[E0423]: expected function, found struct variant `E::Empty3`\n --> /home/centril/programming/rust/src/test/ui/empty/empty-struct-braces-expr.rs:18:14\n |\nLL | let e3 = E::Empty3(); //~ ERROR expected function, found struct variant `E::Empty3`\n | ^^^^^^^^^ did you mean `E::Empty3 { /* fields */ }`?\n\n"}
{"message":"expected value, found struct `XEmpty1`","code":{"code":"E0423","explanation":"\nAn identifier was used like a function name or a value was expected and the\nidentifier exists but it belongs to a different namespace.\n\nFor (an erroneous) example, here a `struct` variant name were used as a\nfunction:\n\n```compile_fail,E0423\nstruct Foo { a: bool };\n\nlet f = Foo();\n// error: expected function, found `Foo`\n// `Foo` is a struct name, but this expression uses it like a function name\n```\n\nPlease verify you didn't misspell the name of what you actually wanted to use\nhere. Example:\n\n```\nfn Foo() -> u32 { 0 }\n\nlet f = Foo(); // ok!\n```\n\nIt is common to forget the trailing `!` on macro invocations, which would also\nyield this error:\n\n```compile_fail,E0423\nprintln(\"\");\n// error: expected function, found macro `println`\n// did you mean `println!(...)`? (notice the trailing `!`)\n```\n\nAnother case where this error is emitted is when a value is expected, but\nsomething else is found:\n\n```compile_fail,E0423\npub mod a {\n pub const I: i32 = 1;\n}\n\nfn h1() -> i32 {\n a.I\n //~^ ERROR expected value, found module `a`\n // did you mean `a::I`?\n}\n```\n"},"level":"error","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/empty/empty-struct-braces-expr.rs","byte_start":534,"byte_end":541,"line_start":20,"line_end":20,"column_start":15,"column_end":22,"is_primary":true,"text":[{"text":" let xe1 = XEmpty1; //~ ERROR expected value, found struct `XEmpty1`","highlight_start":15,"highlight_end":22}],"label":"did you mean `XEmpty1 { /* fields */ }`?","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"a unit struct with a similar name exists","code":null,"level":"help","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/empty/empty-struct-braces-expr.rs","byte_start":534,"byte_end":541,"line_start":20,"line_end":20,"column_start":15,"column_end":22,"is_primary":true,"text":[{"text":" let xe1 = XEmpty1; //~ ERROR expected value, found struct `XEmpty1`","highlight_start":15,"highlight_end":22}],"label":null,"suggested_replacement":"XEmpty2","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"error[E0423]: expected value, found struct `XEmpty1`\n --> /home/centril/programming/rust/src/test/ui/empty/empty-struct-braces-expr.rs:20:15\n |\nLL | let xe1 = XEmpty1; //~ ERROR expected value, found struct `XEmpty1`\n | ^^^^^^^\n | |\n | did you mean `XEmpty1 { /* fields */ }`?\n | help: a unit struct with a similar name exists: `XEmpty2`\n\n"}
{"message":"expected function, found struct `XEmpty1`","code":{"code":"E0423","explanation":"\nAn identifier was used like a function name or a value was expected and the\nidentifier exists but it belongs to a different namespace.\n\nFor (an erroneous) example, here a `struct` variant name were used as a\nfunction:\n\n```compile_fail,E0423\nstruct Foo { a: bool };\n\nlet f = Foo();\n// error: expected function, found `Foo`\n// `Foo` is a struct name, but this expression uses it like a function name\n```\n\nPlease verify you didn't misspell the name of what you actually wanted to use\nhere. Example:\n\n```\nfn Foo() -> u32 { 0 }\n\nlet f = Foo(); // ok!\n```\n\nIt is common to forget the trailing `!` on macro invocations, which would also\nyield this error:\n\n```compile_fail,E0423\nprintln(\"\");\n// error: expected function, found macro `println`\n// did you mean `println!(...)`? (notice the trailing `!`)\n```\n\nAnother case where this error is emitted is when a value is expected, but\nsomething else is found:\n\n```compile_fail,E0423\npub mod a {\n pub const I: i32 = 1;\n}\n\nfn h1() -> i32 {\n a.I\n //~^ ERROR expected value, found module `a`\n // did you mean `a::I`?\n}\n```\n"},"level":"error","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/empty/empty-struct-braces-expr.rs","byte_start":606,"byte_end":613,"line_start":21,"line_end":21,"column_start":15,"column_end":22,"is_primary":true,"text":[{"text":" let xe1 = XEmpty1(); //~ ERROR expected function, found struct `XEmpty1`","highlight_start":15,"highlight_end":22}],"label":"did you mean `XEmpty1 { /* fields */ }`?","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"a unit struct with a similar name exists","code":null,"level":"help","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/empty/empty-struct-braces-expr.rs","byte_start":606,"byte_end":613,"line_start":21,"line_end":21,"column_start":15,"column_end":22,"is_primary":true,"text":[{"text":" let xe1 = XEmpty1(); //~ ERROR expected function, found struct `XEmpty1`","highlight_start":15,"highlight_end":22}],"label":null,"suggested_replacement":"XEmpty2","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"error[E0423]: expected function, found struct `XEmpty1`\n --> /home/centril/programming/rust/src/test/ui/empty/empty-struct-braces-expr.rs:21:15\n |\nLL | let xe1 = XEmpty1(); //~ ERROR expected function, found struct `XEmpty1`\n | ^^^^^^^\n | |\n | did you mean `XEmpty1 { /* fields */ }`?\n | help: a unit struct with a similar name exists: `XEmpty2`\n\n"}
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc_typeck::check::method::probe::ProbeContext::pick
27: rustc::infer::InferCtxt::probe
28: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_name
29: rustc_typeck::check::method::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::resolve_ufcs
30: rustc_typeck::check::FnCtxt::resolve_ty_and_def_ufcs
31: rustc_typeck::check::FnCtxt::check_expr_kind
32: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
33: rustc_typeck::check::FnCtxt::check_decl_initializer
34: rustc_typeck::check::FnCtxt::check_decl_local
35: rustc_typeck::check::FnCtxt::check_stmt
36: rustc_typeck::check::FnCtxt::check_block_with_expected
37: rustc_typeck::check::FnCtxt::check_expr_kind
38: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
39: rustc_typeck::check::FnCtxt::check_return_expr
40: rustc_typeck::check::check_fn
41: rustc::ty::context::GlobalCtxt::enter_local
42: rustc_typeck::check::typeck_tables_of
43: rustc::ty::query::__query_compute::typeck_tables_of
44: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
45: rustc::dep_graph::graph::DepGraph::with_task_impl
46: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
47: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners
48: rustc_typeck::check::typeck_item_bodies
49: rustc::ty::query::__query_compute::typeck_item_bodies
50: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_item_bodies<'tcx>>::compute
51: rustc::dep_graph::graph::DepGraph::with_task_impl
52: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
53: rustc::util::common::time
54: rustc_typeck::check_crate
55: <std::thread::local::LocalKey<T>>::with
56: rustc::ty::context::TyCtxt::create_and_enter
57: rustc_driver::driver::compile_input
58: rustc_driver::run_compiler_with_pool
59: <scoped_tls::ScopedKey<T>>::set
60: rustc_driver::run_compiler
61: rustc_driver::monitor::{{closure}}
62: __rust_maybe_catch_panic
63: <F as alloc::boxed::FnBox<A>>::call_box
64: std::sys_common::thread::start_thread
65: std::sys::unix::thread::Thread::new::thread_start
66: start_thread
67: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/empty/empty-struct-braces-expr.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// Can't use empty braced struct as constant or constructor function","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `main`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/empty/empty-struct-braces-expr.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// Can't use empty braced struct as constant or constructor function","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `main`\n"}
{"message":"#2 [typeck_item_bodies] type-checking all item bodies","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/empty/empty-struct-braces-expr.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// Can't use empty braced struct as constant or constructor function","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [typeck_item_bodies] type-checking all item bodies\n"}
end of query stack
{"message":"aborting due to 7 previous errors","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to 7 previous errors\n\n"}
{"message":"For more information about this error, try `rustc --explain E0423`.","code":null,"level":"","spans":[],"children":[],"rendered":"For more information about this error, try `rustc --explain E0423`.\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/empty/empty-struct-braces-expr.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/error-codes/E0411.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/error-codes/E0411.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/error-codes/E0411/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/error-codes/E0411/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"cannot find type `Self` in this scope","code":{"code":"E0411","explanation":"\nThe `Self` keyword was used outside an impl, trait, or type definition.\n\nErroneous code example:\n\n```compile_fail,E0411\n<Self>::foo; // error: use of `Self` outside of an impl, trait, or type\n // definition\n```\n\nThe `Self` keyword represents the current type, which explains why it can only\nbe used inside an impl, trait, or type definition. It gives access to the\nassociated items of a type:\n\n```\ntrait Foo {\n type Bar;\n}\n\ntrait Baz : Foo {\n fn bar() -> Self::Bar; // like this\n}\n```\n\nHowever, be careful when two types have a common associated type:\n\n```compile_fail\ntrait Foo {\n type Bar;\n}\n\ntrait Foo2 {\n type Bar;\n}\n\ntrait Baz : Foo + Foo2 {\n fn bar() -> Self::Bar;\n // error: ambiguous associated type `Bar` in bounds of `Self`\n}\n```\n\nThis problem can be solved by specifying from which trait we want to use the\n`Bar` type:\n\n```\ntrait Foo {\n type Bar;\n}\n\ntrait Foo2 {\n type Bar;\n}\n\ntrait Baz : Foo + Foo2 {\n fn bar() -> <Self as Foo>::Bar; // ok!\n}\n```\n"},"level":"error","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/error-codes/E0411.rs","byte_start":17,"byte_end":21,"line_start":2,"line_end":2,"column_start":6,"column_end":10,"is_primary":true,"text":[{"text":" <Self>::foo; //~ ERROR E0411","highlight_start":6,"highlight_end":10}],"label":"`Self` is only available in impls, traits, and type definitions","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error[E0411]: cannot find type `Self` in this scope\n --> /home/centril/programming/rust/src/test/ui/error-codes/E0411.rs:2:6\n |\nLL | <Self>::foo; //~ ERROR E0411\n | ^^^^ `Self` is only available in impls, traits, and type definitions\n\n"}
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc_typeck::check::method::probe::ProbeContext::pick
27: rustc::infer::InferCtxt::probe
28: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_name
29: rustc_typeck::check::method::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::resolve_ufcs
30: rustc_typeck::check::FnCtxt::resolve_ty_and_def_ufcs
31: rustc_typeck::check::FnCtxt::check_expr_kind
32: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
33: rustc_typeck::check::FnCtxt::check_stmt
34: rustc_typeck::check::FnCtxt::check_block_with_expected
35: rustc_typeck::check::FnCtxt::check_expr_kind
36: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
37: rustc_typeck::check::FnCtxt::check_return_expr
38: rustc_typeck::check::check_fn
39: rustc::ty::context::GlobalCtxt::enter_local
40: rustc_typeck::check::typeck_tables_of
41: rustc::ty::query::__query_compute::typeck_tables_of
42: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
43: rustc::dep_graph::graph::DepGraph::with_task_impl
44: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
45: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners
46: rustc_typeck::check::typeck_item_bodies
47: rustc::ty::query::__query_compute::typeck_item_bodies
48: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_item_bodies<'tcx>>::compute
49: rustc::dep_graph::graph::DepGraph::with_task_impl
50: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
51: rustc::util::common::time
52: rustc_typeck::check_crate
53: <std::thread::local::LocalKey<T>>::with
54: rustc::ty::context::TyCtxt::create_and_enter
55: rustc_driver::driver::compile_input
56: rustc_driver::run_compiler_with_pool
57: <scoped_tls::ScopedKey<T>>::set
58: rustc_driver::run_compiler
59: rustc_driver::monitor::{{closure}}
60: __rust_maybe_catch_panic
61: <F as alloc::boxed::FnBox<A>>::call_box
62: std::sys_common::thread::start_thread
63: std::sys::unix::thread::Thread::new::thread_start
64: start_thread
65: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/error-codes/E0411.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"fn main() {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `main`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/error-codes/E0411.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"fn main() {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `main`\n"}
{"message":"#2 [typeck_item_bodies] type-checking all item bodies","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/error-codes/E0411.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"fn main() {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [typeck_item_bodies] type-checking all item bodies\n"}
end of query stack
{"message":"aborting due to 2 previous errors","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to 2 previous errors\n\n"}
{"message":"For more information about this error, try `rustc --explain E0411`.","code":null,"level":"","spans":[],"children":[],"rendered":"For more information about this error, try `rustc --explain E0411`.\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/error-codes/E0411.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/error-codes/E0616.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/error-codes/E0616.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/error-codes/E0616/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/error-codes/E0616/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc_typeck::check::method::probe::ProbeContext::pick
27: rustc::infer::InferCtxt::probe
28: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_name
29: rustc_typeck::check::method::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::method_exists
30: rustc_typeck::check::FnCtxt::check_expr_kind
31: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
32: rustc_typeck::check::FnCtxt::check_stmt
33: rustc_typeck::check::FnCtxt::check_block_with_expected
34: rustc_typeck::check::FnCtxt::check_expr_kind
35: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
36: rustc_typeck::check::FnCtxt::check_return_expr
37: rustc_typeck::check::check_fn
38: rustc::ty::context::GlobalCtxt::enter_local
39: rustc_typeck::check::typeck_tables_of
40: rustc::ty::query::__query_compute::typeck_tables_of
41: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
42: rustc::dep_graph::graph::DepGraph::with_task_impl
43: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
44: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners
45: rustc_typeck::check::typeck_item_bodies
46: rustc::ty::query::__query_compute::typeck_item_bodies
47: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_item_bodies<'tcx>>::compute
48: rustc::dep_graph::graph::DepGraph::with_task_impl
49: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
50: rustc::util::common::time
51: rustc_typeck::check_crate
52: <std::thread::local::LocalKey<T>>::with
53: rustc::ty::context::TyCtxt::create_and_enter
54: rustc_driver::driver::compile_input
55: rustc_driver::run_compiler_with_pool
56: <scoped_tls::ScopedKey<T>>::set
57: rustc_driver::run_compiler
58: rustc_driver::monitor::{{closure}}
59: __rust_maybe_catch_panic
60: <F as alloc::boxed::FnBox<A>>::call_box
61: std::sys_common::thread::start_thread
62: std::sys::unix::thread::Thread::new::thread_start
63: start_thread
64: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/error-codes/E0616.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"mod a {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `main`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/error-codes/E0616.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"mod a {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `main`\n"}
{"message":"#2 [typeck_item_bodies] type-checking all item bodies","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/error-codes/E0616.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"mod a {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [typeck_item_bodies] type-checking all item bodies\n"}
end of query stack
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/error-codes/E0616.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/error-codes/E0610.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/error-codes/E0610.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/error-codes/E0610/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/error-codes/E0610/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc_typeck::check::method::probe::ProbeContext::pick
27: rustc::infer::InferCtxt::probe
28: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_name
29: rustc_typeck::check::method::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::method_exists
30: rustc_typeck::check::FnCtxt::check_expr_kind
31: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
32: rustc_typeck::check::FnCtxt::check_decl_initializer
33: rustc_typeck::check::FnCtxt::check_decl_local
34: rustc_typeck::check::FnCtxt::check_stmt
35: rustc_typeck::check::FnCtxt::check_block_with_expected
36: rustc_typeck::check::FnCtxt::check_expr_kind
37: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
38: rustc_typeck::check::FnCtxt::check_return_expr
39: rustc_typeck::check::check_fn
40: rustc::ty::context::GlobalCtxt::enter_local
41: rustc_typeck::check::typeck_tables_of
42: rustc::ty::query::__query_compute::typeck_tables_of
43: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
44: rustc::dep_graph::graph::DepGraph::with_task_impl
45: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
46: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners
47: rustc_typeck::check::typeck_item_bodies
48: rustc::ty::query::__query_compute::typeck_item_bodies
49: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_item_bodies<'tcx>>::compute
50: rustc::dep_graph::graph::DepGraph::with_task_impl
51: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
52: rustc::util::common::time
53: rustc_typeck::check_crate
54: <std::thread::local::LocalKey<T>>::with
55: rustc::ty::context::TyCtxt::create_and_enter
56: rustc_driver::driver::compile_input
57: rustc_driver::run_compiler_with_pool
58: <scoped_tls::ScopedKey<T>>::set
59: rustc_driver::run_compiler
60: rustc_driver::monitor::{{closure}}
61: __rust_maybe_catch_panic
62: <F as alloc::boxed::FnBox<A>>::call_box
63: std::sys_common::thread::start_thread
64: std::sys::unix::thread::Thread::new::thread_start
65: start_thread
66: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/error-codes/E0610.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"fn main() {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `main`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/error-codes/E0610.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"fn main() {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `main`\n"}
{"message":"#2 [typeck_item_bodies] type-checking all item bodies","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/error-codes/E0610.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"fn main() {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [typeck_item_bodies] type-checking all item bodies\n"}
end of query stack
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/error-codes/E0610.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/error-codes/E0599.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/error-codes/E0599.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/error-codes/E0599/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/error-codes/E0599/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc_typeck::check::method::probe::ProbeContext::pick
27: rustc::infer::InferCtxt::probe
28: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_name
29: rustc_typeck::check::method::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::resolve_ufcs
30: rustc_typeck::check::FnCtxt::resolve_ty_and_def_ufcs
31: rustc_typeck::check::_match::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::check_pat_tuple_struct
32: rustc_typeck::check::_match::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::check_pat_walk
33: <core::iter::adapters::Map<I, F> as core::iter::traits::iterator::Iterator>::fold
34: <alloc::vec::Vec<T> as alloc::vec::SpecExtend<T, I>>::from_iter
35: rustc_typeck::check::_match::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::check_match
36: rustc_typeck::check::FnCtxt::check_expr_kind
37: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
38: rustc_typeck::check::FnCtxt::check_return_expr
39: rustc_typeck::check::check_fn
40: rustc_typeck::check::closure::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::check_expr_closure
41: rustc_typeck::check::FnCtxt::check_expr_kind
42: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
43: rustc_typeck::check::FnCtxt::check_stmt
44: rustc_typeck::check::FnCtxt::check_block_with_expected
45: rustc_typeck::check::FnCtxt::check_expr_kind
46: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
47: rustc_typeck::check::FnCtxt::check_return_expr
48: rustc_typeck::check::check_fn
49: rustc::ty::context::GlobalCtxt::enter_local
50: rustc_typeck::check::typeck_tables_of
51: rustc::ty::query::__query_compute::typeck_tables_of
52: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
53: rustc::dep_graph::graph::DepGraph::with_task_impl
54: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
55: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners
56: rustc_typeck::check::typeck_item_bodies
57: rustc::ty::query::__query_compute::typeck_item_bodies
58: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_item_bodies<'tcx>>::compute
59: rustc::dep_graph::graph::DepGraph::with_task_impl
60: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
61: rustc::util::common::time
62: rustc_typeck::check_crate
63: <std::thread::local::LocalKey<T>>::with
64: rustc::ty::context::TyCtxt::create_and_enter
65: rustc_driver::driver::compile_input
66: rustc_driver::run_compiler_with_pool
67: <scoped_tls::ScopedKey<T>>::set
68: rustc_driver::run_compiler
69: rustc_driver::monitor::{{closure}}
70: __rust_maybe_catch_panic
71: <F as alloc::boxed::FnBox<A>>::call_box
72: std::sys_common::thread::start_thread
73: std::sys::unix::thread::Thread::new::thread_start
74: start_thread
75: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/error-codes/E0599.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"struct Foo;","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `main`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/error-codes/E0599.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"struct Foo;","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `main`\n"}
{"message":"#2 [typeck_item_bodies] type-checking all item bodies","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/error-codes/E0599.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"struct Foo;","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [typeck_item_bodies] type-checking all item bodies\n"}
end of query stack
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/error-codes/E0599.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/error-codes/E0609.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/error-codes/E0609.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/error-codes/E0609/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/error-codes/E0609/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc_typeck::check::method::probe::ProbeContext::pick
27: rustc::infer::InferCtxt::probe
28: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_name
29: rustc_typeck::check::method::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::method_exists
30: rustc_typeck::check::FnCtxt::check_expr_kind
31: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
32: rustc_typeck::check::FnCtxt::check_decl_initializer
33: rustc_typeck::check::FnCtxt::check_decl_local
34: rustc_typeck::check::FnCtxt::check_stmt
35: rustc_typeck::check::FnCtxt::check_block_with_expected
36: rustc_typeck::check::FnCtxt::check_expr_kind
37: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
38: rustc_typeck::check::FnCtxt::check_return_expr
39: rustc_typeck::check::check_fn
40: rustc::ty::context::GlobalCtxt::enter_local
41: rustc_typeck::check::typeck_tables_of
42: rustc::ty::query::__query_compute::typeck_tables_of
43: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
44: rustc::dep_graph::graph::DepGraph::with_task_impl
45: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
46: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners
47: rustc_typeck::check::typeck_item_bodies
48: rustc::ty::query::__query_compute::typeck_item_bodies
49: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_item_bodies<'tcx>>::compute
50: rustc::dep_graph::graph::DepGraph::with_task_impl
51: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
52: rustc::util::common::time
53: rustc_typeck::check_crate
54: <std::thread::local::LocalKey<T>>::with
55: rustc::ty::context::TyCtxt::create_and_enter
56: rustc_driver::driver::compile_input
57: rustc_driver::run_compiler_with_pool
58: <scoped_tls::ScopedKey<T>>::set
59: rustc_driver::run_compiler
60: rustc_driver::monitor::{{closure}}
61: __rust_maybe_catch_panic
62: <F as alloc::boxed::FnBox<A>>::call_box
63: std::sys_common::thread::start_thread
64: std::sys::unix::thread::Thread::new::thread_start
65: start_thread
66: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/error-codes/E0609.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"struct Foo {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `main`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/error-codes/E0609.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"struct Foo {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `main`\n"}
{"message":"#2 [typeck_item_bodies] type-checking all item bodies","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/error-codes/E0609.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"struct Foo {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [typeck_item_bodies] type-checking all item bodies\n"}
end of query stack
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/error-codes/E0609.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/error-codes/E0624.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/error-codes/E0624.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/error-codes/E0624/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/error-codes/E0624/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc_typeck::check::method::probe::ProbeContext::pick
27: rustc::infer::InferCtxt::probe
28: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_name
29: rustc_typeck::check::method::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::lookup_method
30: rustc_typeck::check::FnCtxt::check_expr_kind
31: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
32: rustc_typeck::check::FnCtxt::check_stmt
33: rustc_typeck::check::FnCtxt::check_block_with_expected
34: rustc_typeck::check::FnCtxt::check_expr_kind
35: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
36: rustc_typeck::check::FnCtxt::check_return_expr
37: rustc_typeck::check::check_fn
38: rustc::ty::context::GlobalCtxt::enter_local
39: rustc_typeck::check::typeck_tables_of
40: rustc::ty::query::__query_compute::typeck_tables_of
41: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
42: rustc::dep_graph::graph::DepGraph::with_task_impl
43: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
44: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners
45: rustc_typeck::check::typeck_item_bodies
46: rustc::ty::query::__query_compute::typeck_item_bodies
47: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_item_bodies<'tcx>>::compute
48: rustc::dep_graph::graph::DepGraph::with_task_impl
49: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
50: rustc::util::common::time
51: rustc_typeck::check_crate
52: <std::thread::local::LocalKey<T>>::with
53: rustc::ty::context::TyCtxt::create_and_enter
54: rustc_driver::driver::compile_input
55: rustc_driver::run_compiler_with_pool
56: <scoped_tls::ScopedKey<T>>::set
57: rustc_driver::run_compiler
58: rustc_driver::monitor::{{closure}}
59: __rust_maybe_catch_panic
60: <F as alloc::boxed::FnBox<A>>::call_box
61: std::sys_common::thread::start_thread
62: std::sys::unix::thread::Thread::new::thread_start
63: start_thread
64: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/error-codes/E0624.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"mod inner {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `main`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/error-codes/E0624.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"mod inner {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `main`\n"}
{"message":"#2 [typeck_item_bodies] type-checking all item bodies","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/error-codes/E0624.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"mod inner {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [typeck_item_bodies] type-checking all item bodies\n"}
end of query stack
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/error-codes/E0624.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/error-codes/ex-E0611.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/error-codes/ex-E0611.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/error-codes/ex-E0611/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/error-codes/ex-E0611/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc_typeck::check::method::probe::ProbeContext::pick
27: rustc::infer::InferCtxt::probe
28: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_name
29: rustc_typeck::check::method::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::method_exists
30: rustc_typeck::check::FnCtxt::check_expr_kind
31: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
32: rustc_typeck::check::FnCtxt::check_stmt
33: rustc_typeck::check::FnCtxt::check_block_with_expected
34: rustc_typeck::check::FnCtxt::check_expr_kind
35: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
36: rustc_typeck::check::FnCtxt::check_return_expr
37: rustc_typeck::check::check_fn
38: rustc::ty::context::GlobalCtxt::enter_local
39: rustc_typeck::check::typeck_tables_of
40: rustc::ty::query::__query_compute::typeck_tables_of
41: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
42: rustc::dep_graph::graph::DepGraph::with_task_impl
43: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
44: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners
45: rustc_typeck::check::typeck_item_bodies
46: rustc::ty::query::__query_compute::typeck_item_bodies
47: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_item_bodies<'tcx>>::compute
48: rustc::dep_graph::graph::DepGraph::with_task_impl
49: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
50: rustc::util::common::time
51: rustc_typeck::check_crate
52: <std::thread::local::LocalKey<T>>::with
53: rustc::ty::context::TyCtxt::create_and_enter
54: rustc_driver::driver::compile_input
55: rustc_driver::run_compiler_with_pool
56: <scoped_tls::ScopedKey<T>>::set
57: rustc_driver::run_compiler
58: rustc_driver::monitor::{{closure}}
59: __rust_maybe_catch_panic
60: <F as alloc::boxed::FnBox<A>>::call_box
61: std::sys_common::thread::start_thread
62: std::sys::unix::thread::Thread::new::thread_start
63: start_thread
64: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/error-codes/ex-E0611.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"mod a {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `main`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/error-codes/ex-E0611.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"mod a {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `main`\n"}
{"message":"#2 [typeck_item_bodies] type-checking all item bodies","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/error-codes/ex-E0611.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"mod a {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [typeck_item_bodies] type-checking all item bodies\n"}
end of query stack
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/error-codes/ex-E0611.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/error-codes/ex-E0612.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/error-codes/ex-E0612.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/error-codes/ex-E0612/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/error-codes/ex-E0612/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc_typeck::check::method::probe::ProbeContext::pick
27: rustc::infer::InferCtxt::probe
28: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_name
29: rustc_typeck::check::method::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::method_exists
30: rustc_typeck::check::FnCtxt::check_expr_kind
31: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
32: rustc_typeck::check::FnCtxt::check_stmt
33: rustc_typeck::check::FnCtxt::check_block_with_expected
34: rustc_typeck::check::FnCtxt::check_expr_kind
35: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
36: rustc_typeck::check::FnCtxt::check_return_expr
37: rustc_typeck::check::check_fn
38: rustc::ty::context::GlobalCtxt::enter_local
39: rustc_typeck::check::typeck_tables_of
40: rustc::ty::query::__query_compute::typeck_tables_of
41: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
42: rustc::dep_graph::graph::DepGraph::with_task_impl
43: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
44: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners
45: rustc_typeck::check::typeck_item_bodies
46: rustc::ty::query::__query_compute::typeck_item_bodies
47: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_item_bodies<'tcx>>::compute
48: rustc::dep_graph::graph::DepGraph::with_task_impl
49: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
50: rustc::util::common::time
51: rustc_typeck::check_crate
52: <std::thread::local::LocalKey<T>>::with
53: rustc::ty::context::TyCtxt::create_and_enter
54: rustc_driver::driver::compile_input
55: rustc_driver::run_compiler_with_pool
56: <scoped_tls::ScopedKey<T>>::set
57: rustc_driver::run_compiler
58: rustc_driver::monitor::{{closure}}
59: __rust_maybe_catch_panic
60: <F as alloc::boxed::FnBox<A>>::call_box
61: std::sys_common::thread::start_thread
62: std::sys::unix::thread::Thread::new::thread_start
63: start_thread
64: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/error-codes/ex-E0612.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"struct Foo(u32);","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `main`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/error-codes/ex-E0612.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"struct Foo(u32);","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `main`\n"}
{"message":"#2 [typeck_item_bodies] type-checking all item bodies","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/error-codes/ex-E0612.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"struct Foo(u32);","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [typeck_item_bodies] type-checking all item bodies\n"}
end of query stack
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/error-codes/ex-E0612.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/error-festival.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/error-festival.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/error-festival/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/error-festival/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"cannot find value `y` in this scope","code":{"code":"E0425","explanation":"\nAn unresolved name was used.\n\nErroneous code examples:\n\n```compile_fail,E0425\nsomething_that_doesnt_exist::foo;\n// error: unresolved name `something_that_doesnt_exist::foo`\n\n// or:\n\ntrait Foo {\n fn bar() {\n Self; // error: unresolved name `Self`\n }\n}\n\n// or:\n\nlet x = unknown_variable; // error: unresolved name `unknown_variable`\n```\n\nPlease verify that the name wasn't misspelled and ensure that the\nidentifier being referred to is valid for the given situation. Example:\n\n```\nenum something_that_does_exist {\n Foo,\n}\n```\n\nOr:\n\n```\nmod something_that_does_exist {\n pub static foo : i32 = 0i32;\n}\n\nsomething_that_does_exist::foo; // ok!\n```\n\nOr:\n\n```\nlet unknown_variable = 12u32;\nlet x = unknown_variable; // ok!\n```\n\nIf the item is not defined in the current module, it must be imported using a\n`use` statement, like so:\n\n```\n# mod foo { pub fn bar() {} }\n# fn main() {\nuse foo::bar;\nbar();\n# }\n```\n\nIf the item you are importing is not defined in some super-module of the\ncurrent module, then it must also be declared as public (e.g., `pub fn`).\n"},"level":"error","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/error-festival.rs","byte_start":139,"byte_end":140,"line_start":14,"line_end":14,"column_start":5,"column_end":6,"is_primary":true,"text":[{"text":" y = 2;","highlight_start":5,"highlight_end":6}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"a local variable with a similar name exists","code":null,"level":"help","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/error-festival.rs","byte_start":139,"byte_end":140,"line_start":14,"line_end":14,"column_start":5,"column_end":6,"is_primary":true,"text":[{"text":" y = 2;","highlight_start":5,"highlight_end":6}],"label":null,"suggested_replacement":"x","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"error[E0425]: cannot find value `y` in this scope\n --> /home/centril/programming/rust/src/test/ui/error-festival.rs:14:5\n |\nLL | y = 2;\n | ^ help: a local variable with a similar name exists: `x`\n\n"}
{"message":"constant `FOO` is private","code":{"code":"E0603","explanation":"\nA private item was used outside its scope.\n\nErroneous code example:\n\n```compile_fail,E0603\nmod SomeModule {\n const PRIVATE: u32 = 0x_a_bad_1dea_u32; // This const is private, so we\n // can't use it outside of the\n // `SomeModule` module.\n}\n\nprintln!(\"const value: {}\", SomeModule::PRIVATE); // error: constant `PRIVATE`\n // is private\n```\n\nIn order to fix this error, you need to make the item public by using the `pub`\nkeyword. Example:\n\n```\nmod SomeModule {\n pub const PRIVATE: u32 = 0x_a_bad_1dea_u32; // We set it public by using the\n // `pub` keyword.\n}\n\nprintln!(\"const value: {}\", SomeModule::PRIVATE); // ok!\n```\n"},"level":"error","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/error-festival.rs","byte_start":251,"byte_end":254,"line_start":22,"line_end":22,"column_start":10,"column_end":13,"is_primary":true,"text":[{"text":" foo::FOO;","highlight_start":10,"highlight_end":13}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error[E0603]: constant `FOO` is private\n --> /home/centril/programming/rust/src/test/ui/error-festival.rs:22:10\n |\nLL | foo::FOO;\n | ^^^\n\n"}
{"message":"binary assignment operation `+=` cannot be applied to type `&str`","code":{"code":"E0368","explanation":"\nThis error indicates that a binary assignment operator like `+=` or `^=` was\napplied to a type that doesn't support it. For example:\n\n```compile_fail,E0368\nlet mut x = 12f32; // error: binary operation `<<` cannot be applied to\n // type `f32`\n\nx <<= 2;\n```\n\nTo fix this error, please check that this type implements this binary\noperation. Example:\n\n```\nlet mut x = 12u32; // the `u32` type does implement the `ShlAssign` trait\n\nx <<= 2; // ok!\n```\n\nIt is also possible to overload most operators for your own type by\nimplementing the `[OP]Assign` traits from `std::ops`.\n\nAnother problem you might be facing is this: suppose you've overloaded the `+`\noperator for some type `Foo` by implementing the `std::ops::Add` trait for\n`Foo`, but you find that using `+=` does not work, as in this example:\n\n```compile_fail,E0368\nuse std::ops::Add;\n\nstruct Foo(u32);\n\nimpl Add for Foo {\n type Output = Foo;\n\n fn add(self, rhs: Foo) -> Foo {\n Foo(self.0 + rhs.0)\n }\n}\n\nfn main() {\n let mut x: Foo = Foo(5);\n x += Foo(7); // error, `+= cannot be applied to the type `Foo`\n}\n```\n\nThis is because `AddAssign` is not automatically implemented, so you need to\nmanually implement it for your type.\n"},"level":"error","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/error-festival.rs","byte_start":106,"byte_end":107,"line_start":12,"line_end":12,"column_start":5,"column_end":6,"is_primary":false,"text":[{"text":" x += 2;","highlight_start":5,"highlight_end":6}],"label":"cannot use `+=` on type `&str`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/home/centril/programming/rust/src/test/ui/error-festival.rs","byte_start":106,"byte_end":112,"line_start":12,"line_end":12,"column_start":5,"column_end":11,"is_primary":true,"text":[{"text":" x += 2;","highlight_start":5,"highlight_end":11}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"an implementation of `std::ops::AddAssign` might be missing for `&str`","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error[E0368]: binary assignment operation `+=` cannot be applied to type `&str`\n --> /home/centril/programming/rust/src/test/ui/error-festival.rs:12:5\n |\nLL | x += 2;\n | -^^^^^\n | |\n | cannot use `+=` on type `&str`\n |\n = note: an implementation of `std::ops::AddAssign` might be missing for `&str`\n\n"}
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc_typeck::check::method::probe::ProbeContext::pick
27: rustc::infer::InferCtxt::probe
28: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_name
29: rustc_typeck::check::method::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::lookup_method
30: rustc_typeck::check::FnCtxt::check_expr_kind
31: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
32: rustc_typeck::check::FnCtxt::check_stmt
33: rustc_typeck::check::FnCtxt::check_block_with_expected
34: rustc_typeck::check::FnCtxt::check_expr_kind
35: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
36: rustc_typeck::check::FnCtxt::check_return_expr
37: rustc_typeck::check::check_fn
38: rustc::ty::context::GlobalCtxt::enter_local
39: rustc_typeck::check::typeck_tables_of
40: rustc::ty::query::__query_compute::typeck_tables_of
41: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
42: rustc::dep_graph::graph::DepGraph::with_task_impl
43: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
44: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners
45: rustc_typeck::check::typeck_item_bodies
46: rustc::ty::query::__query_compute::typeck_item_bodies
47: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_item_bodies<'tcx>>::compute
48: rustc::dep_graph::graph::DepGraph::with_task_impl
49: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
50: rustc::util::common::time
51: rustc_typeck::check_crate
52: <std::thread::local::LocalKey<T>>::with
53: rustc::ty::context::TyCtxt::create_and_enter
54: rustc_driver::driver::compile_input
55: rustc_driver::run_compiler_with_pool
56: <scoped_tls::ScopedKey<T>>::set
57: rustc_driver::run_compiler
58: rustc_driver::monitor::{{closure}}
59: __rust_maybe_catch_panic
60: <F as alloc::boxed::FnBox<A>>::call_box
61: std::sys_common::thread::start_thread
62: std::sys::unix::thread::Thread::new::thread_start
63: start_thread
64: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/error-festival.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"enum Question {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `main`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/error-festival.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"enum Question {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `main`\n"}
{"message":"#2 [typeck_item_bodies] type-checking all item bodies","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/error-festival.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"enum Question {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [typeck_item_bodies] type-checking all item bodies\n"}
end of query stack
{"message":"aborting due to 4 previous errors","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to 4 previous errors\n\n"}
{"message":"Some errors occurred: E0368, E0425, E0603.","code":null,"level":"","spans":[],"children":[],"rendered":"Some errors occurred: E0368, E0425, E0603.\n"}
{"message":"For more information about an error, try `rustc --explain E0368`.","code":null,"level":"","spans":[],"children":[],"rendered":"For more information about an error, try `rustc --explain E0368`.\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/error-festival.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/existential_types/generic_type_does_not_live_long_enough.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/existential_types/generic_type_does_not_live_long_enough.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/existential_types/generic_type_does_not_live_long_enough/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/existential_types/generic_type_does_not_live_long_enough/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc::infer::InferCtxt::probe
27: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_return_type
28: rustc_typeck::check::FnCtxt::suggest_ref_or_into
29: rustc_typeck::check::demand::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::demand_coerce_diag
30: rustc_typeck::check::demand::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::demand_coerce
31: rustc_typeck::check::FnCtxt::check_decl_local
32: rustc_typeck::check::FnCtxt::check_stmt
33: rustc_typeck::check::FnCtxt::check_block_with_expected
34: rustc_typeck::check::FnCtxt::check_expr_kind
35: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
36: rustc_typeck::check::FnCtxt::check_return_expr
37: rustc_typeck::check::check_fn
38: rustc::ty::context::GlobalCtxt::enter_local
39: rustc_typeck::check::typeck_tables_of
40: rustc::ty::query::__query_compute::typeck_tables_of
41: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
42: rustc::dep_graph::graph::DepGraph::with_task_impl
43: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
44: rustc_typeck::collect::find_existential_constraints::ConstraintLocator::check
45: rustc::hir::intravisit::Visitor::visit_nested_item
46: rustc_typeck::collect::find_existential_constraints
47: rustc_typeck::collect::type_of
48: rustc::ty::query::__query_compute::type_of
49: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::type_of<'tcx>>::compute
50: rustc::dep_graph::graph::DepGraph::with_task_impl
51: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
52: <rustc_typeck::collect::CollectItemTypesVisitor<'a, 'tcx> as rustc::hir::intravisit::Visitor<'tcx>>::visit_item
53: rustc::hir::map::Map::visit_item_likes_in_module
54: rustc_typeck::collect::collect_mod_item_types
55: rustc::ty::query::__query_compute::collect_mod_item_types
56: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::collect_mod_item_types<'tcx>>::compute
57: rustc::dep_graph::graph::DepGraph::with_task_impl
58: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
59: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::ensure_query
60: rustc_typeck::collect::collect_item_types
61: rustc::util::common::time
62: rustc_typeck::check_crate
63: <std::thread::local::LocalKey<T>>::with
64: rustc::ty::context::TyCtxt::create_and_enter
65: rustc_driver::driver::compile_input
66: rustc_driver::run_compiler_with_pool
67: <scoped_tls::ScopedKey<T>>::set
68: rustc_driver::run_compiler
69: rustc_driver::monitor::{{closure}}
70: __rust_maybe_catch_panic
71: <F as alloc::boxed::FnBox<A>>::call_box
72: std::sys_common::thread::start_thread
73: std::sys::unix::thread::Thread::new::thread_start
74: start_thread
75: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/existential_types/generic_type_does_not_live_long_enough.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"#![feature(existential_type)]","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `main`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/existential_types/generic_type_does_not_live_long_enough.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"#![feature(existential_type)]","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `main`\n"}
{"message":"#2 [type_of] processing `WrongGeneric`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/existential_types/generic_type_does_not_live_long_enough.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"#![feature(existential_type)]","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [type_of] processing `WrongGeneric`\n"}
{"message":"#3 [collect_mod_item_types] collecting item types in top-level module","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/existential_types/generic_type_does_not_live_long_enough.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"#![feature(existential_type)]","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#3 [collect_mod_item_types] collecting item types in top-level module\n"}
end of query stack
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/existential_types/generic_type_does_not_live_long_enough.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/existential_types/never_reveal_concrete_type.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/existential_types/never_reveal_concrete_type.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/existential_types/never_reveal_concrete_type/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/existential_types/never_reveal_concrete_type/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc::infer::InferCtxt::probe
27: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_return_type
28: rustc_typeck::check::FnCtxt::suggest_ref_or_into
29: rustc_typeck::check::demand::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::demand_coerce_diag
30: rustc_typeck::check::demand::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::demand_coerce
31: rustc_typeck::check::FnCtxt::check_decl_local
32: rustc_typeck::check::FnCtxt::check_stmt
33: rustc_typeck::check::FnCtxt::check_block_with_expected
34: rustc_typeck::check::FnCtxt::check_expr_kind
35: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
36: rustc_typeck::check::FnCtxt::check_return_expr
37: rustc_typeck::check::check_fn
38: rustc::ty::context::GlobalCtxt::enter_local
39: rustc_typeck::check::typeck_tables_of
40: rustc::ty::query::__query_compute::typeck_tables_of
41: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
42: rustc::dep_graph::graph::DepGraph::with_task_impl
43: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
44: rustc_typeck::collect::find_existential_constraints::ConstraintLocator::check
45: rustc::hir::intravisit::Visitor::visit_nested_item
46: rustc_typeck::collect::find_existential_constraints
47: rustc_typeck::collect::type_of
48: rustc::ty::query::__query_compute::type_of
49: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::type_of<'tcx>>::compute
50: rustc::dep_graph::graph::DepGraph::with_task_impl
51: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
52: <rustc_typeck::collect::CollectItemTypesVisitor<'a, 'tcx> as rustc::hir::intravisit::Visitor<'tcx>>::visit_item
53: rustc::hir::map::Map::visit_item_likes_in_module
54: rustc_typeck::collect::collect_mod_item_types
55: rustc::ty::query::__query_compute::collect_mod_item_types
56: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::collect_mod_item_types<'tcx>>::compute
57: rustc::dep_graph::graph::DepGraph::with_task_impl
58: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
59: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::ensure_query
60: rustc_typeck::collect::collect_item_types
61: rustc::util::common::time
62: rustc_typeck::check_crate
63: <std::thread::local::LocalKey<T>>::with
64: rustc::ty::context::TyCtxt::create_and_enter
65: rustc_driver::driver::compile_input
66: rustc_driver::run_compiler_with_pool
67: <scoped_tls::ScopedKey<T>>::set
68: rustc_driver::run_compiler
69: rustc_driver::monitor::{{closure}}
70: __rust_maybe_catch_panic
71: <F as alloc::boxed::FnBox<A>>::call_box
72: std::sys_common::thread::start_thread
73: std::sys::unix::thread::Thread::new::thread_start
74: start_thread
75: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/existential_types/never_reveal_concrete_type.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"#![feature(existential_type)]","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `no_reveal`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/existential_types/never_reveal_concrete_type.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"#![feature(existential_type)]","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `no_reveal`\n"}
{"message":"#2 [type_of] processing `NoReveal`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/existential_types/never_reveal_concrete_type.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"#![feature(existential_type)]","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [type_of] processing `NoReveal`\n"}
{"message":"#3 [collect_mod_item_types] collecting item types in top-level module","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/existential_types/never_reveal_concrete_type.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"#![feature(existential_type)]","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#3 [collect_mod_item_types] collecting item types in top-level module\n"}
end of query stack
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/existential_types/never_reveal_concrete_type.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/estr-subtyping.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/estr-subtyping.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/estr-subtyping/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/estr-subtyping/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc::infer::InferCtxt::probe
27: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_return_type
28: rustc_typeck::check::FnCtxt::suggest_ref_or_into
29: rustc_typeck::check::demand::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::demand_coerce_diag
30: rustc_typeck::check::demand::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::demand_coerce
31: rustc_typeck::check::FnCtxt::check_argument_types
32: rustc_typeck::check::callee::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::confirm_builtin_call
33: rustc_typeck::check::callee::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::check_call
34: rustc_typeck::check::FnCtxt::check_expr_kind
35: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
36: rustc_typeck::check::FnCtxt::check_stmt
37: rustc_typeck::check::FnCtxt::check_block_with_expected
38: rustc_typeck::check::FnCtxt::check_expr_kind
39: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
40: rustc_typeck::check::FnCtxt::check_return_expr
41: rustc_typeck::check::check_fn
42: rustc::ty::context::GlobalCtxt::enter_local
43: rustc_typeck::check::typeck_tables_of
44: rustc::ty::query::__query_compute::typeck_tables_of
45: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
46: rustc::dep_graph::graph::DepGraph::with_task_impl
47: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
48: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners
49: rustc_typeck::check::typeck_item_bodies
50: rustc::ty::query::__query_compute::typeck_item_bodies
51: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_item_bodies<'tcx>>::compute
52: rustc::dep_graph::graph::DepGraph::with_task_impl
53: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
54: rustc::util::common::time
55: rustc_typeck::check_crate
56: <std::thread::local::LocalKey<T>>::with
57: rustc::ty::context::TyCtxt::create_and_enter
58: rustc_driver::driver::compile_input
59: rustc_driver::run_compiler_with_pool
60: <scoped_tls::ScopedKey<T>>::set
61: rustc_driver::run_compiler
62: rustc_driver::monitor::{{closure}}
63: __rust_maybe_catch_panic
64: <F as alloc::boxed::FnBox<A>>::call_box
65: std::sys_common::thread::start_thread
66: std::sys::unix::thread::Thread::new::thread_start
67: start_thread
68: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/estr-subtyping.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"fn wants_uniq(x: String) { }","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `has_slice`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/estr-subtyping.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"fn wants_uniq(x: String) { }","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `has_slice`\n"}
{"message":"#2 [typeck_item_bodies] type-checking all item bodies","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/estr-subtyping.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"fn wants_uniq(x: String) { }","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [typeck_item_bodies] type-checking all item bodies\n"}
end of query stack
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/estr-subtyping.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/existential_types/no_revealing_outside_defining_module.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/existential_types/no_revealing_outside_defining_module.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/existential_types/no_revealing_outside_defining_module/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/existential_types/no_revealing_outside_defining_module/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc::infer::InferCtxt::probe
27: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_return_type
28: rustc_typeck::check::FnCtxt::suggest_ref_or_into
29: rustc_typeck::check::demand::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::demand_coerce_diag
30: rustc_typeck::check::demand::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::demand_coerce
31: rustc_typeck::check::FnCtxt::check_decl_local
32: rustc_typeck::check::FnCtxt::check_stmt
33: rustc_typeck::check::FnCtxt::check_block_with_expected
34: rustc_typeck::check::FnCtxt::check_expr_kind
35: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
36: rustc_typeck::check::FnCtxt::check_return_expr
37: rustc_typeck::check::check_fn
38: rustc::ty::context::GlobalCtxt::enter_local
39: rustc_typeck::check::typeck_tables_of
40: rustc::ty::query::__query_compute::typeck_tables_of
41: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
42: rustc::dep_graph::graph::DepGraph::with_task_impl
43: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
44: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners
45: rustc_typeck::check::typeck_item_bodies
46: rustc::ty::query::__query_compute::typeck_item_bodies
47: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_item_bodies<'tcx>>::compute
48: rustc::dep_graph::graph::DepGraph::with_task_impl
49: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
50: rustc::util::common::time
51: rustc_typeck::check_crate
52: <std::thread::local::LocalKey<T>>::with
53: rustc::ty::context::TyCtxt::create_and_enter
54: rustc_driver::driver::compile_input
55: rustc_driver::run_compiler_with_pool
56: <scoped_tls::ScopedKey<T>>::set
57: rustc_driver::run_compiler
58: rustc_driver::monitor::{{closure}}
59: __rust_maybe_catch_panic
60: <F as alloc::boxed::FnBox<A>>::call_box
61: std::sys_common::thread::start_thread
62: std::sys::unix::thread::Thread::new::thread_start
63: start_thread
64: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/existential_types/no_revealing_outside_defining_module.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"#![feature(existential_type)]","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `bomp2`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/existential_types/no_revealing_outside_defining_module.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"#![feature(existential_type)]","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `bomp2`\n"}
{"message":"#2 [typeck_item_bodies] type-checking all item bodies","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/existential_types/no_revealing_outside_defining_module.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"#![feature(existential_type)]","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [typeck_item_bodies] type-checking all item bodies\n"}
end of query stack
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/existential_types/no_revealing_outside_defining_module.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/extern/extern-types-distinct-types.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/extern/extern-types-distinct-types.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/extern/extern-types-distinct-types/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/extern/extern-types-distinct-types/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc::infer::InferCtxt::probe
27: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_return_type
28: rustc_typeck::check::FnCtxt::suggest_ref_or_into
29: rustc_typeck::check::FnCtxt::suggest_mismatched_types_on_tail
30: <rustc_typeck::check::coercion::CoerceMany<'gcx, 'tcx, 'exprs, E>>::report_return_mismatched_types
31: <rustc_typeck::check::coercion::CoerceMany<'gcx, 'tcx, 'exprs, E>>::coerce_inner
32: rustc_typeck::check::FnCtxt::check_block_with_expected
33: rustc_typeck::check::FnCtxt::check_expr_kind
34: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
35: rustc_typeck::check::FnCtxt::check_return_expr
36: rustc_typeck::check::check_fn
37: rustc::ty::context::GlobalCtxt::enter_local
38: rustc_typeck::check::typeck_tables_of
39: rustc::ty::query::__query_compute::typeck_tables_of
40: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
41: rustc::dep_graph::graph::DepGraph::with_task_impl
42: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
43: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners
44: rustc_typeck::check::typeck_item_bodies
45: rustc::ty::query::__query_compute::typeck_item_bodies
46: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_item_bodies<'tcx>>::compute
47: rustc::dep_graph::graph::DepGraph::with_task_impl
48: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
49: rustc::util::common::time
50: rustc_typeck::check_crate
51: <std::thread::local::LocalKey<T>>::with
52: rustc::ty::context::TyCtxt::create_and_enter
53: rustc_driver::driver::compile_input
54: rustc_driver::run_compiler_with_pool
55: <scoped_tls::ScopedKey<T>>::set
56: rustc_driver::run_compiler
57: rustc_driver::monitor::{{closure}}
58: __rust_maybe_catch_panic
59: <F as alloc::boxed::FnBox<A>>::call_box
60: std::sys_common::thread::start_thread
61: std::sys::unix::thread::Thread::new::thread_start
62: start_thread
63: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/extern/extern-types-distinct-types.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"#![feature(extern_types)]","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `foo`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/extern/extern-types-distinct-types.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"#![feature(extern_types)]","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `foo`\n"}
{"message":"#2 [typeck_item_bodies] type-checking all item bodies","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/extern/extern-types-distinct-types.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"#![feature(extern_types)]","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [typeck_item_bodies] type-checking all item bodies\n"}
end of query stack
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/extern/extern-types-distinct-types.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/float-literal-inference-restrictions.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/float-literal-inference-restrictions.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/float-literal-inference-restrictions/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/float-literal-inference-restrictions/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc::infer::InferCtxt::probe
27: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_return_type
28: rustc_typeck::check::FnCtxt::suggest_ref_or_into
29: rustc_typeck::check::demand::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::demand_coerce_diag
30: rustc_typeck::check::demand::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::demand_coerce
31: rustc_typeck::check::FnCtxt::check_decl_local
32: rustc_typeck::check::FnCtxt::check_stmt
33: rustc_typeck::check::FnCtxt::check_block_with_expected
34: rustc_typeck::check::FnCtxt::check_expr_kind
35: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
36: rustc_typeck::check::FnCtxt::check_return_expr
37: rustc_typeck::check::check_fn
38: rustc::ty::context::GlobalCtxt::enter_local
39: rustc_typeck::check::typeck_tables_of
40: rustc::ty::query::__query_compute::typeck_tables_of
41: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
42: rustc::dep_graph::graph::DepGraph::with_task_impl
43: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
44: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners
45: rustc_typeck::check::typeck_item_bodies
46: rustc::ty::query::__query_compute::typeck_item_bodies
47: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_item_bodies<'tcx>>::compute
48: rustc::dep_graph::graph::DepGraph::with_task_impl
49: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
50: rustc::util::common::time
51: rustc_typeck::check_crate
52: <std::thread::local::LocalKey<T>>::with
53: rustc::ty::context::TyCtxt::create_and_enter
54: rustc_driver::driver::compile_input
55: rustc_driver::run_compiler_with_pool
56: <scoped_tls::ScopedKey<T>>::set
57: rustc_driver::run_compiler
58: rustc_driver::monitor::{{closure}}
59: __rust_maybe_catch_panic
60: <F as alloc::boxed::FnBox<A>>::call_box
61: std::sys_common::thread::start_thread
62: std::sys::unix::thread::Thread::new::thread_start
63: start_thread
64: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/float-literal-inference-restrictions.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"fn main() {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `main`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/float-literal-inference-restrictions.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"fn main() {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `main`\n"}
{"message":"#2 [typeck_item_bodies] type-checking all item bodies","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/float-literal-inference-restrictions.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"fn main() {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [typeck_item_bodies] type-checking all item bodies\n"}
end of query stack
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/float-literal-inference-restrictions.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/fn/fn-item-type.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/fn/fn-item-type.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/fn/fn-item-type/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/fn/fn-item-type/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc::infer::InferCtxt::probe
27: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_return_type
28: rustc_typeck::check::FnCtxt::suggest_ref_or_into
29: rustc_typeck::check::demand::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::demand_coerce_diag
30: rustc_typeck::check::demand::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::demand_coerce
31: rustc_typeck::check::FnCtxt::check_argument_types
32: rustc_typeck::check::callee::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::confirm_builtin_call
33: rustc_typeck::check::callee::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::check_call
34: rustc_typeck::check::FnCtxt::check_expr_kind
35: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
36: rustc_typeck::check::FnCtxt::check_stmt
37: rustc_typeck::check::FnCtxt::check_block_with_expected
38: rustc_typeck::check::FnCtxt::check_expr_kind
39: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
40: rustc_typeck::check::FnCtxt::check_return_expr
41: rustc_typeck::check::check_fn
42: rustc::ty::context::GlobalCtxt::enter_local
43: rustc_typeck::check::typeck_tables_of
44: rustc::ty::query::__query_compute::typeck_tables_of
45: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
46: rustc::dep_graph::graph::DepGraph::with_task_impl
47: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
48: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners
49: rustc_typeck::check::typeck_item_bodies
50: rustc::ty::query::__query_compute::typeck_item_bodies
51: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_item_bodies<'tcx>>::compute
52: rustc::dep_graph::graph::DepGraph::with_task_impl
53: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
54: rustc::util::common::time
55: rustc_typeck::check_crate
56: <std::thread::local::LocalKey<T>>::with
57: rustc::ty::context::TyCtxt::create_and_enter
58: rustc_driver::driver::compile_input
59: rustc_driver::run_compiler_with_pool
60: <scoped_tls::ScopedKey<T>>::set
61: rustc_driver::run_compiler
62: rustc_driver::monitor::{{closure}}
63: __rust_maybe_catch_panic
64: <F as alloc::boxed::FnBox<A>>::call_box
65: std::sys_common::thread::start_thread
66: std::sys::unix::thread::Thread::new::thread_start
67: start_thread
68: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/fn/fn-item-type.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// Test that the types of distinct fn items are not compatible by","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `main`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/fn/fn-item-type.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// Test that the types of distinct fn items are not compatible by","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `main`\n"}
{"message":"#2 [typeck_item_bodies] type-checking all item bodies","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/fn/fn-item-type.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// Test that the types of distinct fn items are not compatible by","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [typeck_item_bodies] type-checking all item bodies\n"}
end of query stack
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/fn/fn-item-type.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/fn/fn-bad-block-type.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/fn/fn-bad-block-type.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/fn/fn-bad-block-type/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/fn/fn-bad-block-type/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc::infer::InferCtxt::probe
27: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_return_type
28: rustc_typeck::check::FnCtxt::suggest_ref_or_into
29: rustc_typeck::check::FnCtxt::suggest_mismatched_types_on_tail
30: <rustc_typeck::check::coercion::CoerceMany<'gcx, 'tcx, 'exprs, E>>::report_return_mismatched_types
31: <rustc_typeck::check::coercion::CoerceMany<'gcx, 'tcx, 'exprs, E>>::coerce_inner
32: rustc_typeck::check::FnCtxt::check_block_with_expected
33: rustc_typeck::check::FnCtxt::check_expr_kind
34: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
35: rustc_typeck::check::FnCtxt::check_return_expr
36: rustc_typeck::check::check_fn
37: rustc::ty::context::GlobalCtxt::enter_local
38: rustc_typeck::check::typeck_tables_of
39: rustc::ty::query::__query_compute::typeck_tables_of
40: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
41: rustc::dep_graph::graph::DepGraph::with_task_impl
42: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
43: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners
44: rustc_typeck::check::typeck_item_bodies
45: rustc::ty::query::__query_compute::typeck_item_bodies
46: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_item_bodies<'tcx>>::compute
47: rustc::dep_graph::graph::DepGraph::with_task_impl
48: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
49: rustc::util::common::time
50: rustc_typeck::check_crate
51: <std::thread::local::LocalKey<T>>::with
52: rustc::ty::context::TyCtxt::create_and_enter
53: rustc_driver::driver::compile_input
54: rustc_driver::run_compiler_with_pool
55: <scoped_tls::ScopedKey<T>>::set
56: rustc_driver::run_compiler
57: rustc_driver::monitor::{{closure}}
58: __rust_maybe_catch_panic
59: <F as alloc::boxed::FnBox<A>>::call_box
60: std::sys_common::thread::start_thread
61: std::sys::unix::thread::Thread::new::thread_start
62: start_thread
63: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/fn/fn-bad-block-type.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// error-pattern:mismatched types","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `f`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/fn/fn-bad-block-type.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// error-pattern:mismatched types","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `f`\n"}
{"message":"#2 [typeck_item_bodies] type-checking all item bodies","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/fn/fn-bad-block-type.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// error-pattern:mismatched types","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [typeck_item_bodies] type-checking all item bodies\n"}
end of query stack
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/fn/fn-bad-block-type.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/explore-issue-38412.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/explore-issue-38412.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/explore-issue-38412/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/explore-issue-38412/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"use of unstable library feature 'unstable_undeclared' (see issue #38412)","code":{"code":"E0658","explanation":"\nAn unstable feature was used.\n\nErroneous code example:\n\n```compile_fail,E658\n#[repr(u128)] // error: use of unstable library feature 'repr128'\nenum Foo {\n Bar(u64),\n}\n```\n\nIf you're using a stable or a beta version of rustc, you won't be able to use\nany unstable features. In order to do so, please switch to a nightly version of\nrustc (by using rustup).\n\nIf you're using a nightly version of rustc, just add the corresponding feature\nto be able to use it:\n\n```\n#![feature(repr128)]\n\n#[repr(u128)] // ok!\nenum Foo {\n Bar(u64),\n}\n```\n"},"level":"error","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/explore-issue-38412.rs","byte_start":673,"byte_end":701,"line_start":21,"line_end":21,"column_start":63,"column_end":91,"is_primary":true,"text":[{"text":" let Record { a_stable_pub: _, a_unstable_declared_pub: _, a_unstable_undeclared_pub: _, .. } =","highlight_start":63,"highlight_end":91}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"add #![feature(unstable_undeclared)] to the crate attributes to enable","code":null,"level":"help","spans":[],"children":[],"rendered":null}],"rendered":"error[E0658]: use of unstable library feature 'unstable_undeclared' (see issue #38412)\n --> /home/centril/programming/rust/src/test/ui/explore-issue-38412.rs:21:63\n |\nLL | let Record { a_stable_pub: _, a_unstable_declared_pub: _, a_unstable_undeclared_pub: _, .. } =\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n |\n = help: add #![feature(unstable_undeclared)] to the crate attributes to enable\n\n"}
{"message":"use of unstable library feature 'unstable_undeclared' (see issue #38412)","code":{"code":"E0658","explanation":"\nAn unstable feature was used.\n\nErroneous code example:\n\n```compile_fail,E658\n#[repr(u128)] // error: use of unstable library feature 'repr128'\nenum Foo {\n Bar(u64),\n}\n```\n\nIf you're using a stable or a beta version of rustc, you won't be able to use\nany unstable features. In order to do so, please switch to a nightly version of\nrustc (by using rustup).\n\nIf you're using a nightly version of rustc, just add the corresponding feature\nto be able to use it:\n\n```\n#![feature(repr128)]\n\n#[repr(u128)] // ok!\nenum Foo {\n Bar(u64),\n}\n```\n"},"level":"error","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/explore-issue-38412.rs","byte_start":913,"byte_end":940,"line_start":30,"line_end":30,"column_start":5,"column_end":32,"is_primary":true,"text":[{"text":" r.a_unstable_undeclared_pub; //~ ERROR use of unstable library feature","highlight_start":5,"highlight_end":32}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"add #![feature(unstable_undeclared)] to the crate attributes to enable","code":null,"level":"help","spans":[],"children":[],"rendered":null}],"rendered":"error[E0658]: use of unstable library feature 'unstable_undeclared' (see issue #38412)\n --> /home/centril/programming/rust/src/test/ui/explore-issue-38412.rs:30:5\n |\nLL | r.a_unstable_undeclared_pub; //~ ERROR use of unstable library feature\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^\n |\n = help: add #![feature(unstable_undeclared)] to the crate attributes to enable\n\n"}
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc_typeck::check::method::probe::ProbeContext::pick
27: rustc::infer::InferCtxt::probe
28: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_name
29: rustc_typeck::check::method::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::method_exists
30: rustc_typeck::check::FnCtxt::check_expr_kind
31: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
32: rustc_typeck::check::FnCtxt::check_stmt
33: rustc_typeck::check::FnCtxt::check_block_with_expected
34: rustc_typeck::check::FnCtxt::check_expr_kind
35: rustc_typeck::check::FnCtxt::check_expr_with_expectation_and_needs
36: rustc_typeck::check::FnCtxt::check_return_expr
37: rustc_typeck::check::check_fn
38: rustc::ty::context::GlobalCtxt::enter_local
39: rustc_typeck::check::typeck_tables_of
40: rustc::ty::query::__query_compute::typeck_tables_of
41: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute
42: rustc::dep_graph::graph::DepGraph::with_task_impl
43: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
44: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners
45: rustc_typeck::check::typeck_item_bodies
46: rustc::ty::query::__query_compute::typeck_item_bodies
47: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_item_bodies<'tcx>>::compute
48: rustc::dep_graph::graph::DepGraph::with_task_impl
49: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
50: rustc::util::common::time
51: rustc_typeck::check_crate
52: <std::thread::local::LocalKey<T>>::with
53: rustc::ty::context::TyCtxt::create_and_enter
54: rustc_driver::driver::compile_input
55: rustc_driver::run_compiler_with_pool
56: <scoped_tls::ScopedKey<T>>::set
57: rustc_driver::run_compiler
58: rustc_driver::monitor::{{closure}}
59: __rust_maybe_catch_panic
60: <F as alloc::boxed::FnBox<A>>::call_box
61: std::sys_common::thread::start_thread
62: std::sys::unix::thread::Thread::new::thread_start
63: start_thread
64: __clone
query stack during panic:
{"message":"#0 [all_traits] fetching all foreign and local traits","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/explore-issue-38412.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// aux-build:pub_and_stability.rs","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#0 [all_traits] fetching all foreign and local traits\n"}
{"message":"#1 [typeck_tables_of] processing `main`","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/explore-issue-38412.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// aux-build:pub_and_stability.rs","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#1 [typeck_tables_of] processing `main`\n"}
{"message":"#2 [typeck_item_bodies] type-checking all item bodies","code":null,"level":"","spans":[{"file_name":"/home/centril/programming/rust/src/test/ui/explore-issue-38412.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// aux-build:pub_and_stability.rs","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"#2 [typeck_item_bodies] type-checking all item bodies\n"}
end of query stack
{"message":"aborting due to 3 previous errors","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to 3 previous errors\n\n"}
{"message":"For more information about this error, try `rustc --explain E0658`.","code":null,"level":"","spans":[],"children":[],"rendered":"For more information about this error, try `rustc --explain E0658`.\n"}
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.34.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
------------------------------------------
thread '[ui] ui/explore-issue-38412.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3295:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:209
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::begin_panic
6: compiletest::runtest::ProcRes::fatal
7: compiletest::runtest::TestCx::fatal_proc_rec
8: compiletest::runtest::TestCx::check_correct_failure_status
9: compiletest::runtest::TestCx::run_revision
10: compiletest::runtest::run
11: <F as alloc::boxed::FnBox<A>>::call_box
12: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1468
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/liballoc/boxed.rs:734
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:92
14: test::run_test::run_test_inner::{{closure}}
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panicking.rs:276
at /rustc/d1add97236b64048294692d91fe82b601577dd1f/src/libstd/panic.rs:388
at src/libtest/lib.rs:1430
---- [ui] ui/fully-qualified-type/fully-qualified-type-name1.rs stdout ----
error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/centril/programming/rust/src/test/ui/fully-qualified-type/fully-qualified-type-name1.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/fully-qualified-type/fully-qualified-type-name1/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/test/ui/fully-qualified-type/fully-qualified-type-name1/auxiliary" "-A" "unused"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
{"message":"src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/hir/def.rs:259: attempted .def_id() on invalid def: NonMacroAttr(Builtin)\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:596:9
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: rustc_errors::Handler::bug
8: rustc::util::bug::opt_span_bug_fmt::{{closure}}
9: rustc::ty::context::tls::with_opt::{{closure}}
10: rustc::ty::context::tls::with_context_opt
11: rustc::ty::context::tls::with_opt
12: rustc::util::bug::opt_span_bug_fmt
13: rustc::util::bug::bug_fmt
14: rustc::hir::def::Def::def_id::{{closure}}
15: rustc::hir::def::Def::def_id
16: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
17: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
18: rustc_typeck::check::method::suggest::compute_all_traits::handle_external_def
19: core::ops::function::FnOnce::call_once
20: rustc::ty::query::__query_compute::all_traits
21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::all_traits<'tcx>>::compute
22: rustc::dep_graph::graph::DepGraph::with_task_impl
23: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_get_with
24: rustc_typeck::check::method::suggest::all_traits
25: rustc_typeck::check::method::probe::ProbeContext::assemble_extension_candidates_for_all_traits
26: rustc::infer::InferCtxt::probe
27: rustc_typeck::check::method::probe::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::probe_for_return_type
28: rustc_typeck::check::FnCtxt::suggest_ref_or_into
29: rustc_typeck::check::demand::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::demand_coerce_diag
30: rustc_typeck::check::demand::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::demand_coerce
31: rustc_typeck::check::FnCtxt::check_expr_kind
32: rustc_typeck::check::FnCtxt::check_e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment