Advertisement
RedstoneHair

rust compiler bug

Dec 1st, 2022
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.19 KB | None | 0 0
  1. error: internal compiler error: compiler\rustc_middle\src\ty\context.rs:703:13: node_type: no type for node `expr {
  2. let res = $crate::fmt::format($crate::__export::format_args!($($arg)*));
  3. res
  4. } (hir_id=HirId { owner: DefId(0:154 ~ opengl_testing[0ecf]::mesh::{impl#1}::draw), local_id: 115 })`
  5.  
  6. thread 'rustc' panicked at 'Box<dyn Any>', /rustc/897e37553bba8b42751c67658967889d11ecd120\compiler\rustc_errors\src\lib.rs:1462:9
  7. stack backtrace:
  8. 0: 0x7ffd1dba8fb2 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h1086ecfa86360858
  9. 1: 0x7ffd1dbe40db - core::fmt::write::hbadbc3de7beb6abb
  10. 2: 0x7ffd1db9b8aa - <std::io::IoSlice as core::fmt::Debug>::fmt::hb7e33fb242ec9ac1
  11. 3: 0x7ffd1dbac5b4 - std::panicking::default_hook::hb8b3ce065b661264
  12. 4: 0x7ffd1dbac1ea - std::panicking::default_hook::hb8b3ce065b661264
  13. 5: 0x7ffd01d925ee - rustc_driver[c6471a3a75cc3305]::describe_lints
  14. 6: 0x7ffd1dbacfb2 - std::panicking::rust_panic_with_hook::h33e40e3f5d3be1f3
  15. 7: 0x7ffd03fd3583 - <rustc_middle[12c473a188441910]::ty::DestructuredConst as core[8087a2e8d825f5e1]::fmt::Debug>::fmt
  16. 8: 0x7ffd03fd2169 - <rustc_middle[12c473a188441910]::ty::DestructuredConst as core[8087a2e8d825f5e1]::fmt::Debug>::fmt
  17. 9: 0x7ffd03ffa8b9 - <rustc_middle[12c473a188441910]::ty::subst::UserSubsts as rustc_middle[12c473a188441910]::ty::context::Lift>::lift_to_tcx
  18. 10: 0x7ffd03fd0a89 - <rustc_middle[12c473a188441910]::ty::DestructuredConst as core[8087a2e8d825f5e1]::fmt::Debug>::fmt
  19. 11: 0x7ffd03fce051 - <rustc_middle[12c473a188441910]::ty::DestructuredConst as core[8087a2e8d825f5e1]::fmt::Debug>::fmt
  20. 12: 0x7ffd03fcd8d2 - <rustc_middle[12c473a188441910]::ty::DestructuredConst as core[8087a2e8d825f5e1]::fmt::Debug>::fmt
  21. 13: 0x7ffd04035687 - <rustc_middle[12c473a188441910]::ty::sty::Binder<rustc_middle[12c473a188441910]::ty::TraitPredicate>>::print_modifiers_and_trait_path
  22. 14: 0x7ffd04036d58 - rustc_middle[12c473a188441910]::util::bug::bug_fmt
  23. 15: 0x7ffd04036cd5 - rustc_middle[12c473a188441910]::util::bug::bug_fmt
  24. 16: 0x7ffd01c6603d - <rustc_middle[12c473a188441910]::ty::context::TypeckResults>::expr_ty_adjusted
  25. 17: 0x7ffd03ecb289 - <rustc_infer[3acbbff32055c339]::infer::InferCtxt as rustc_trait_selection[51ac1f8d3e2d292c]::traits::error_reporting::suggestions::InferCtxtExt>::suggest_fully_qualified_path
  26. 18: 0x7ffd03edbcf7 - <rustc_infer[3acbbff32055c339]::infer::InferCtxt as rustc_trait_selection[51ac1f8d3e2d292c]::traits::error_reporting::InferCtxtPrivExt>::note_obligation_cause
  27. 19: 0x7ffd03ed0418 - <rustc_infer[3acbbff32055c339]::infer::InferCtxt as rustc_trait_selection[51ac1f8d3e2d292c]::traits::error_reporting::InferCtxtExt>::report_selection_error
  28. 20: 0x7ffd03ee019f - <rustc_infer[3acbbff32055c339]::infer::InferCtxt as rustc_trait_selection[51ac1f8d3e2d292c]::traits::error_reporting::InferCtxtPrivExt>::report_fulfillment_error
  29. 21: 0x7ffd03eceb25 - <rustc_infer[3acbbff32055c339]::infer::InferCtxt as rustc_trait_selection[51ac1f8d3e2d292c]::traits::error_reporting::InferCtxtExt>::report_fulfillment_errors
  30. 22: 0x7ffd0123472b - <rustc_typeck[49c87e7593e195a8]::check::fn_ctxt::FnCtxt>::check_call
  31. 23: 0x7ffd01240e40 - <rustc_typeck[49c87e7593e195a8]::check::fn_ctxt::FnCtxt>::demand_coerce
  32. 24: 0x7ffd0124118f - <rustc_typeck[49c87e7593e195a8]::check::fn_ctxt::FnCtxt>::demand_coerce
  33. 25: 0x7ffd0126fb56 - <rustc_typeck[49c87e7593e195a8]::check::fn_ctxt::FnCtxt>::structurally_resolved_type
  34. 26: 0x7ffd01259b8a - <rustc_typeck[49c87e7593e195a8]::check::fn_ctxt::FnCtxt>::structurally_resolved_type
  35. 27: 0x7ffd012410d0 - <rustc_typeck[49c87e7593e195a8]::check::fn_ctxt::FnCtxt>::demand_coerce
  36. 28: 0x7ffd0127f36b - <rustc_typeck[49c87e7593e195a8]::check::fn_ctxt::FnCtxt>::check_struct_path
  37. 29: 0x7ffd01280128 - <rustc_typeck[49c87e7593e195a8]::check::fn_ctxt::FnCtxt>::check_stmt
  38. 30: 0x7ffd01280a8f - <rustc_typeck[49c87e7593e195a8]::check::fn_ctxt::FnCtxt>::check_stmt
  39. 31: 0x7ffd01240f11 - <rustc_typeck[49c87e7593e195a8]::check::fn_ctxt::FnCtxt>::demand_coerce
  40. 32: 0x7ffd012945d0 - <rustc_typeck[49c87e7593e195a8]::check::fn_ctxt::FnCtxt>::resolve_type_vars_in_body
  41. 33: 0x7ffd01241dd1 - <rustc_typeck[49c87e7593e195a8]::check::fn_ctxt::FnCtxt>::demand_coerce
  42. 34: 0x7ffd0128021e - <rustc_typeck[49c87e7593e195a8]::check::fn_ctxt::FnCtxt>::check_stmt
  43. 35: 0x7ffd01280a8f - <rustc_typeck[49c87e7593e195a8]::check::fn_ctxt::FnCtxt>::check_stmt
  44. 36: 0x7ffd01240f11 - <rustc_typeck[49c87e7593e195a8]::check::fn_ctxt::FnCtxt>::demand_coerce
  45. 37: 0x7ffd01242ef4 - <rustc_typeck[49c87e7593e195a8]::check::fn_ctxt::FnCtxt>::demand_coerce
  46. 38: 0x7ffd01280ae0 - <rustc_typeck[49c87e7593e195a8]::check::fn_ctxt::FnCtxt>::check_stmt
  47. 39: 0x7ffd01243858 - <rustc_typeck[49c87e7593e195a8]::check::fn_ctxt::FnCtxt>::demand_coerce
  48. 40: 0x7ffd0128021e - <rustc_typeck[49c87e7593e195a8]::check::fn_ctxt::FnCtxt>::check_stmt
  49. 41: 0x7ffd01280a8f - <rustc_typeck[49c87e7593e195a8]::check::fn_ctxt::FnCtxt>::check_stmt
  50. 42: 0x7ffd01240f11 - <rustc_typeck[49c87e7593e195a8]::check::fn_ctxt::FnCtxt>::demand_coerce
  51. 43: 0x7ffd0124c001 - <rustc_typeck[49c87e7593e195a8]::check::fn_ctxt::FnCtxt>::demand_coerce
  52. 44: 0x7ffd012e9131 - rustc_typeck[49c87e7593e195a8]::check::rvalue_scopes::resolve_rvalue_scopes
  53. 45: 0x7ffd011d82b2 - <rustc_typeck[49c87e7593e195a8]::constrained_generic_params::ParameterCollector as rustc_middle[12c473a188441910]::ty::visit::TypeVisitor>::visit_ty
  54. 46: 0x7ffd012c0384 - <rustc_typeck[49c87e7593e195a8]::check::UnsafetyState>::recurse
  55. 47: 0x7ffd00126ba8 - <rustc_query_impl[9648f954f060bbf5]::queries::is_reachable_non_generic as rustc_query_system[658c00a88212f6cf]::query::config::QueryDescription<rustc_query_impl[9648f954f060bbf5]::plumbing::QueryCtxt>>::execute_query
  56. 48: 0x7ffd0027ffbe - <&[rustc_type_ir[1421f89e31f06786]::Variance] as rustc_serialize[5ba6e6ef117c5717]::serialize::Decodable<rustc_query_impl[9648f954f060bbf5]::on_disk_cache::CacheDecoder>>::decode
  57. 49: 0x7ffd017b9dd0 - <&[(rustc_middle[12c473a188441910]::ty::Predicate, rustc_span[335b190b38ec46cb]::span_encoding::Span)] as rustc_serialize[5ba6e6ef117c5717]::serialize::Decodable<rustc_query_impl[9648f954f060bbf5]::on_disk_cache::CacheDecoder>>::decode
  58. 50: 0x7ffd00172bff - <&[rustc_type_ir[1421f89e31f06786]::Variance] as rustc_serialize[5ba6e6ef117c5717]::serialize::Decodable<rustc_query_impl[9648f954f060bbf5]::on_disk_cache::CacheDecoder>>::decode
  59. 51: 0x7ffd00110421 - <rustc_query_impl[9648f954f060bbf5]::on_disk_cache::CacheEncoder as rustc_serialize[5ba6e6ef117c5717]::serialize::Encoder>::emit_str
  60. 52: 0x7ffd01c51145 - <rustc_middle[12c473a188441910]::ty::context::TyCtxt as rustc_query_system[658c00a88212f6cf]::dep_graph::DepContext>::try_force_from_dep_node
  61. 53: 0x7ffd0183cb22 - <&[(rustc_middle[12c473a188441910]::ty::Predicate, rustc_span[335b190b38ec46cb]::span_encoding::Span)] as rustc_serialize[5ba6e6ef117c5717]::serialize::Decodable<rustc_query_impl[9648f954f060bbf5]::on_disk_cache::CacheDecoder>>::decode
  62. 54: 0x7ffd0183c104 - <&[(rustc_middle[12c473a188441910]::ty::Predicate, rustc_span[335b190b38ec46cb]::span_encoding::Span)] as rustc_serialize[5ba6e6ef117c5717]::serialize::Decodable<rustc_query_impl[9648f954f060bbf5]::on_disk_cache::CacheDecoder>>::decode
  63. 55: 0x7ffd002641c7 - <&[rustc_type_ir[1421f89e31f06786]::Variance] as rustc_serialize[5ba6e6ef117c5717]::serialize::Decodable<rustc_query_impl[9648f954f060bbf5]:: 58: 0x7ffcfff3730a - <rustc_typeck[49c87e7593e195a8]::check::fn_ctxt::FnCtxt>::write_user_type_annotation
  64. 59: 0x7ffcffee4893 - rustc_typeck[49c87e7593e195a8]::check_crate 60: 0x7ffd0060a63f - rustc_interface[9c167b8dd5fe1201]::passes::analysis
  65. 61: 0x7ffd0012830e - <rustc_query_impl[9648f954f060bbf5]::queries::is_reachable_non_generic as rustc_query_system[658c00a88212f6cf]::query::config::QueryDescription<rustc_query_impl[9648f954f060bbf5]::plumbing::QueryCtxt>>::execute_query
  66. 62: 0x7ffd0029d9c3 - <&[rustc_type_ir[1421f89e31f06786]::Variance] as rustc_serialize[5ba6e6ef117c5717]::serialize::Decodable<rustc_query_impl[9648f954f060bbf5]::on_disk_cache::CacheDecoder>>::decode
  67. 63: 0x7ffd00220ca7 - <&[rustc_type_ir[1421f89e31f06786]::Variance] as rustc_serialize[5ba6e6ef117c5717]::serialize::Decodable<rustc_query_impl[9648f954f060bbf5]::on_disk_cache::CacheDecoder>>::decode 64: 0x7ffd002710b6 - <&[rustc_type_ir[1421f89e31f06786]::Variance] as rustc_serialize[5ba6e6ef117c5717]::serialize::Decodable<rustc_query_impl[9648f954f060bbf5]::on_disk_cache::CacheDecoder>>::decode 65: 0x7ffcff70c9d9 - rustc_driver[c6471a3a75cc3305]::args::arg_expand_all
  68. 66: 0x7ffcff6da3a8 - rustc_driver[c6471a3a75cc3305]::main 67: 0x7ffcff70e32a - <rustc_middle[12c473a188441910]::ty::SymbolName as core[8087a2e8d825f5e1]::fmt::Debug>::fmt
  69. 68: 0x7ffcff6f5e60 - rustc_driver[c6471a3a75cc3305]::main 69: 0x7ffcff70d7d7 - <rustc_middle[12c473a188441910]::ty::SymbolName as core[8087a2e8d825f5e1]::fmt::Debug>::fmt
  70. 70: 0x7ffcff6fe109 - rustc_driver[c6471a3a75cc3305]::main
  71. 71: 0x7ffcff6fe56d - rustc_driver[c6471a3a75cc3305]::main
  72. 72: 0x7ffd1dbbd7cc - std::sys::windows::thread::Thread::new::h742bb0c6405f02e2
  73. 73: 0x7ffdb8b9244d - BaseThreadInitThunk
  74. 74: 0x7ffdbab0dfb8 - RtlUserThreadStart
  75.  
  76. note: the compiler unexpectedly panicked. this is a bug.
  77.  
  78. note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md
  79.  
  80. note: rustc 1.65.0 (897e37553 2022-11-02) running on x86_64-pc-windows-msvc
  81.  
  82. note: compiler flags: --crate-type bin -C embed-bitcode=no -C debuginfo=2 -C incremental=[REDACTED]
  83.  
  84. note: some of the compiler flags provided by cargo are hidden
  85.  
  86. query stack during panic:
  87. #0 [typeck] type-checking `mesh::<impl at src\mesh\mod.rs:36:1: 36:37>::draw`
  88. #1 [typeck_item_bodies] type-checking all item bodies
  89. #2 [analysis] running analysis passes on this crate
  90. end of query stack
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement