rust icon indicating copy to clipboard operation
rust copied to clipboard

Migrate rustc_resolve to use SessionDiagnostic

Open rajputrajat opened this issue 1 year ago • 21 comments

crate a somewhat on larger size, so plz allow some time to get it finished.

rajputrajat avatar Aug 29 '22 17:08 rajputrajat

rustc_error_messages was changed

cc @davidtwco, @compiler-errors, @JohnTitor, @estebank, @TaKO8Ki

rustbot avatar Aug 29 '22 17:08 rustbot

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @fee1-dead (or someone else) soon.

Please see the contribution instructions for more information.

rust-highfive avatar Aug 29 '22 17:08 rust-highfive

@rajputrajat, can you please remove all of these merge commits? We have a no merge commit policy.

compiler-errors avatar Aug 29 '22 17:08 compiler-errors

The job x86_64-gnu-llvm-13 failed! Check out the build log: (web) (plain)

Click to see the possible cause of the failure (guessed by this bot)
Check compiletest suite=ui mode=ui (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)

running 13442 tests
........................................................................................ 88/13442
....................................................F.....................iiiiiiii.iiiii 176/13442
i....................i.................i....F.....F..................................... 264/13442
........................................................................................ 440/13442
........................................................................................ 528/13442
........................................................................................ 616/13442
........................................................................................ 704/13442
---
........................................................................................ 2552/13442
........................................................................................ 2640/13442
........................................................................................ 2728/13442
........................................................................................ 2816/13442
........................................F............................................... 2904/13442
.....................FF....F.........................................F.................. 2992/13442
........................................................................................ 3168/13442
........................................................................................ 3256/13442
.........................................................iiiii.......................... 3344/13442
.........................................................iiiii.......................... 3344/13442
..........................................................................F.F........... 3432/13442
........................................................................................ 3608/13442
........................................................................................ 3608/13442
.........F......................F............................F..F...F..F...F......F..FF. 3696/13442
F....................................................................................... 3784/13442
.........i.............................................................................. 3960/13442
........................................................................ii.............. 4048/13442
........................................................................................ 4136/13442
........................................................................................ 4136/13442
..................................i...F................................................. 4224/13442
........................................................................................ 4400/13442
........F............................................................................... 4488/13442
............................F........................................................... 4576/13442
........................................................................................ 4664/13442
........................................................................................ 4664/13442
.................................F...F.................FF..FF........................... 4752/13442
..............................................................................F......... 4840/13442
...................................................F.................................... 4928/13442
........................................................................................ 5104/13442
.............................................................................i.......... 5192/13442
........................................................i............................... 5280/13442
........................................................................................ 5368/13442
........................................................................................ 5368/13442
........................................................................................ 5456/13442
........................................................................................ 5544/13442
........................................................................................ 5632/13442
........................................................................................ 5720/13442
........................................................................................ 5808/13442
.......................................................................................F 5896/13442
....................F................................................................... 5984/13442
....FF.........F........................................................................ 6072/13442
...............................F.........................FF............................. 6160/13442
........................................................................................ 6248/13442
....................F..............................................F.................... 6336/13442
.............................................i.....................................F.... 6424/13442
.........................................i.............................................. 6600/13442
.........................................i.............................................. 6600/13442
........F..............F..............................F................................. 6688/13442
..................i.....F...........................F.....................ii.ii........i 6776/13442
...................................................................................F.... 6952/13442
........................................i....i.........................................i 7040/13442
..................i.............i....................................................... 7128/13442
..i..................................................................................... 7216/13442
---
........................................................................................ 7744/13442
.............................................ii......................................... 7832/13442
........................................................................................ 7920/13442
........................................................................................ 8008/13442
.........F..............................F..................ii................i....i..ii. 8096/13442
........................................................................................ 8272/13442
........................................................................................ 8360/13442
........................................................................................ 8448/13442
........................................................................................ 8536/13442
........................................................................................ 8536/13442
...............i...i.i..F.........................................................ii.... 8624/13442
........................................................................................ 8712/13442
iiii....F...................F........................................................... 8800/13442
....................F..........................................i........................ 8976/13442
........................................................................................ 9064/13442
...........................................................i............................ 9152/13442
.......F................................................................................ 9240/13442
---
................F..............................................................ii....... 9944/13442
.F......i............................................................................... 10032/13442
........................................................................................ 10120/13442
........................................................................................ 10208/13442
.......................................................F................................ 10296/13442
....................................F........................FFF........................ 10384/13442
............F......................................................F.F.................. 10472/13442
....................................................................F................... 10560/13442
..................iiiii...i....i.i...................................................... 10736/13442
...........................................................................i............ 10824/13442
.....................................................................................iii 10912/13442
iii.i..iiiiii.i......................................................................... 11000/13442
iii.i..iiiiii.i......................................................................... 11000/13442
....................................................F..F................................ 11088/13442
........................................................................................ 11264/13442
........................................................................................ 11352/13442
........................................................................................ 11440/13442
........................................................................................ 11528/13442
........................................................................................ 11528/13442
........................................................................................ 11616/13442
........................................................................................ 11704/13442
...........................................................................F............ 11792/13442
.F.........................................................i.......i.........i....i..... 11880/13442
................i....................................................................... 11968/13442
........................................................................................ 12056/13442
.............................................................F.......................... 12144/13442
...............................................F..............................F......... 12232/13442
........................................................................................ 12408/13442
........................................................................................ 12496/13442
......................................................................................i. 12584/13442
........................................................................................ 12672/13442
---
failures:

---- [ui] src/test/ui/array-slice-vec/subslice-only-once-semantic-restriction.rs stdout ----

error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit status: 101
command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/array-slice-vec/subslice-only-once-semantic-restriction.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/array-slice-vec/subslice-only-once-semantic-restriction" "-A" "unused" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/array-slice-vec/subslice-only-once-semantic-restriction/auxiliary"
stdout: none
--- stderr -------------------------------
thread 'rustc' panicked at 'identifier: "resolve_ident_bound_more_than_once_in_same_pattern", attr: None, args: FluentArgs([("identifier", String("tail"))]), errors: [ResolverError(Reference(Message { id: "identifier", attribute: None }))]', compiler/rustc_errors/src/translation.rs:91:17
stack backtrace:
   0:     0x7f386ecbb12c - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::haef0e57182cff27e
   1:     0x7f386ed23da8 - core::fmt::write::h8f3832efb8012fdd
   2:     0x7f386ecab901 - std::io::Write::write_fmt::hac773a8b3e6facb1
   3:     0x7f386ecbe11e - std::panicking::default_hook::{{closure}}::h8fcc2d90b9b7cafd
   4:     0x7f386ecbdde7 - std::panicking::default_hook::h04c83f4486ad61ea
   5:     0x7f386f64db34 - rustc_driver[38c78fe59485a0c]::DEFAULT_HOOK::{closure#0}::{closure#0}
   6:     0x7f386ecbe8d1 - std::panicking::rust_panic_with_hook::h0ebd4e41cd9767ec
   7:     0x7f386ecbe6f7 - std::panicking::begin_panic_handler::{{closure}}::h661558e3dbb67af8
   8:     0x7f386ecbb6a4 - std::sys_common::backtrace::__rust_end_short_backtrace::h37a58d6b6c3875b8
   9:     0x7f386ecbe3c2 - rust_begin_unwind
  10:     0x7f386ec6ee43 - core::panicking::panic_fmt::hcad844cb234ec812
  11:     0x7f387232eb9a - <rustc_errors[159519190c68e216]::emitter::EmitterWriter as rustc_errors[159519190c68e216]::translation::Translate>::translate_message
  12:     0x7f3872323f42 - <rustc_errors[159519190c68e216]::emitter::EmitterWriter>::emit_message_default
  13:     0x7f3872321a5d - <rustc_errors[159519190c68e216]::emitter::EmitterWriter as rustc_errors[159519190c68e216]::emitter::Emitter>::emit_diagnostic
  14:     0x7f38723398a2 - <rustc_errors[159519190c68e216]::json::Diagnostic>::from_errors_diagnostic
  15:     0x7f38723382bc - <rustc_errors[159519190c68e216]::json::JsonEmitter as rustc_errors[159519190c68e216]::emitter::Emitter>::emit_diagnostic
  16:     0x7f387237eb68 - <rustc_errors[159519190c68e216]::HandlerInner>::emit_diagnostic
  17:     0x7f387237a846 - <rustc_errors[159519190c68e216]::ErrorGuaranteed as rustc_errors[159519190c68e216]::diagnostic_builder::EmissionGuarantee>::diagnostic_builder_emit_producing_guarantee
  18:     0x7f3870418568 - <rustc_resolve[53eaf68e0605af1d]::Resolver>::report_error
  19:     0x7f3870394c47 - <rustc_resolve[53eaf68e0605af1d]::late::LateResolutionVisitor>::fresh_binding
  20:     0x7f38704d8034 - <rustc_ast[851e558ea592c76c]::ast::Pat>::walk::<<rustc_resolve[53eaf68e0605af1d]::late::LateResolutionVisitor>::resolve_pattern_inner::{closure#0}>
  21:     0x7f38704d848c - <rustc_ast[851e558ea592c76c]::ast::Pat>::walk::<<rustc_resolve[53eaf68e0605af1d]::late::LateResolutionVisitor>::resolve_pattern_inner::{closure#0}>
  22:     0x7f38703948a6 - <rustc_resolve[53eaf68e0605af1d]::late::LateResolutionVisitor>::resolve_pattern_top
  23:     0x7f387035a602 - <rustc_resolve[53eaf68e0605af1d]::late::LateResolutionVisitor as rustc_ast[851e558ea592c76c]::visit::Visitor>::visit_arm
  24:     0x7f387045d39a - rustc_ast[851e558ea592c76c]::visit::walk_expr::<rustc_resolve[53eaf68e0605af1d]::late::LateResolutionVisitor>
  25:     0x7f387039be71 - <rustc_resolve[53eaf68e0605af1d]::late::LateResolutionVisitor>::resolve_expr
  26:     0x7f387035aa1f - <rustc_resolve[53eaf68e0605af1d]::late::LateResolutionVisitor as rustc_ast[851e558ea592c76c]::visit::Visitor>::visit_block
  27:     0x7f387036d74f - <rustc_resolve[53eaf68e0605af1d]::late::LateResolutionVisitor as rustc_ast[851e558ea592c76c]::visit::Visitor>::visit_fn::{closure#1}::{closure#0}
  28:     0x7f38703679fc - <rustc_resolve[53eaf68e0605af1d]::late::LateResolutionVisitor as rustc_ast[851e558ea592c76c]::visit::Visitor>::visit_fn
  29:     0x7f38704613be - rustc_ast[851e558ea592c76c]::visit::walk_item::<rustc_resolve[53eaf68e0605af1d]::late::LateResolutionVisitor>
  30:     0x7f38703801f1 - <rustc_resolve[53eaf68e0605af1d]::late::LateResolutionVisitor>::resolve_item
  31:     0x7f3870359f07 - <rustc_resolve[53eaf68e0605af1d]::late::LateResolutionVisitor as rustc_ast[851e558ea592c76c]::visit::Visitor>::visit_item
  32:     0x7f3870447c5d - rustc_ast[851e558ea592c76c]::visit::walk_crate::<rustc_resolve[53eaf68e0605af1d]::late::LateResolutionVisitor>
  33:     0x7f387042874e - <rustc_resolve[53eaf68e0605af1d]::Resolver>::late_resolve_crate
  34:     0x7f38703eac85 - <rustc_session[593e660ae94605db]::session::Session>::time::<(), <rustc_resolve[53eaf68e0605af1d]::Resolver>::resolve_crate::{closure#0}>
  35:     0x7f386f7a0a78 - rustc_interface[678d2d04e4bf5942]::passes::configure_and_expand
  36:     0x7f386f7ec936 - <rustc_interface[678d2d04e4bf5942]::passes::boxed_resolver::BoxedResolver>::access::<<rustc_interface[678d2d04e4bf5942]::queries::Queries>::expansion::{closure#0}::{closure#0}, core[65c727f087702ea3]::result::Result<rustc_ast[851e558ea592c76c]::ast::Crate, rustc_errors[159519190c68e216]::ErrorGuaranteed>>
  37:     0x7f386f7885e6 - <rustc_interface[678d2d04e4bf5942]::queries::Queries>::expansion
  38:     0x7f386f655b77 - <rustc_interface[678d2d04e4bf5942]::interface::Compiler>::enter::<rustc_driver[38c78fe59485a0c]::run_compiler::{closure#1}::{closure#2}, core[65c727f087702ea3]::result::Result<core[65c727f087702ea3]::option::Option<rustc_interface[678d2d04e4bf5942]::queries::Linker>, rustc_errors[159519190c68e216]::ErrorGuaranteed>>
  39:     0x7f386f638475 - rustc_span[3969291980c0babf]::with_source_map::<core[65c727f087702ea3]::result::Result<(), rustc_errors[159519190c68e216]::ErrorGuaranteed>, rustc_interface[678d2d04e4bf5942]::interface::create_compiler_and_run<core[65c727f087702ea3]::result::Result<(), rustc_errors[159519190c68e216]::ErrorGuaranteed>, rustc_driver[38c78fe59485a0c]::run_compiler::{closure#1}>::{closure#1}>
  40:     0x7f386f670e51 - rustc_interface[678d2d04e4bf5942]::interface::create_compiler_and_run::<core[65c727f087702ea3]::result::Result<(), rustc_errors[159519190c68e216]::ErrorGuaranteed>, rustc_driver[38c78fe59485a0c]::run_compiler::{closure#1}>
  41:     0x7f386f63a4b2 - <scoped_tls[c3b2fd947603b8d7]::ScopedKey<rustc_span[3969291980c0babf]::SessionGlobals>>::set::<rustc_interface[678d2d04e4bf5942]::interface::run_compiler<core[65c727f087702ea3]::result::Result<(), rustc_errors[159519190c68e216]::ErrorGuaranteed>, rustc_driver[38c78fe59485a0c]::run_compiler::{closure#1}>::{closure#0}, core[65c727f087702ea3]::result::Result<(), rustc_errors[159519190c68e216]::ErrorGuaranteed>>
  42:     0x7f386f6b0459 - std[f086a7a38219cd93]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[678d2d04e4bf5942]::util::run_in_thread_pool_with_globals<rustc_interface[678d2d04e4bf5942]::interface::run_compiler<core[65c727f087702ea3]::result::Result<(), rustc_errors[159519190c68e216]::ErrorGuaranteed>, rustc_driver[38c78fe59485a0c]::run_compiler::{closure#1}>::{closure#0}, core[65c727f087702ea3]::result::Result<(), rustc_errors[159519190c68e216]::ErrorGuaranteed>>::{closure#0}, core[65c727f087702ea3]::result::Result<(), rustc_errors[159519190c68e216]::ErrorGuaranteed>>
  43:     0x7f386f63cb1e - std[f086a7a38219cd93]::panicking::try::<core[65c727f087702ea3]::result::Result<(), rustc_errors[159519190c68e216]::ErrorGuaranteed>, core[65c727f087702ea3]::panic::unwind_safe::AssertUnwindSafe<<std[f086a7a38219cd93]::thread::Builder>::spawn_unchecked_<rustc_interface[678d2d04e4bf5942]::util::run_in_thread_pool_with_globals<rustc_interface[678d2d04e4bf5942]::interface::run_compiler<core[65c727f087702ea3]::result::Result<(), rustc_errors[159519190c68e216]::ErrorGuaranteed>, rustc_driver[38c78fe59485a0c]::run_compiler::{closure#1}>::{closure#0}, core[65c727f087702ea3]::result::Result<(), rustc_errors[159519190c68e216]::ErrorGuaranteed>>::{closure#0}, core[65c727f087702ea3]::result::Result<(), rustc_errors[159519190c68e216]::ErrorGuaranteed>>::{closure#1}::{closure#0}>>
  44:     0x7f386f6b4a90 - <<std[f086a7a38219cd93]::thread::Builder>::spawn_unchecked_<rustc_interface[678d2d04e4bf5942]::util::run_in_thread_pool_with_globals<rustc_interface[678d2d04e4bf5942]::interface::run_compiler<core[65c727f087702ea3]::result::Result<(), rustc_errors[159519190c68e216]::ErrorGuaranteed>, rustc_driver[38c78fe59485a0c]::run_compiler::{closure#1}>::{closure#0}, core[65c727f087702ea3]::result::Result<(), rustc_errors[159519190c68e216]::ErrorGuaranteed>>::{closure#0}, core[65c727f087702ea3]::result::Result<(), rustc_errors[159519190c68e216]::ErrorGuaranteed>>::{closure#1} as core[65c727f087702ea3]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  45:     0x7f386eccb645 - std::sys::unix::thread::Thread::new::thread_start::ha0dece557faac109
  46:     0x7f386ea67b43 - <unknown>
  47:     0x7f386eaf9a00 - <unknown>
  48:                0x0 - <unknown>
error: internal compiler error: unexpected panic

note: the compiler unexpectedly panicked. this is a bug.


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

note: rustc 1.65.0-nightly (39670d110 2022-08-29) running on x86_64-unknown-linux-gnu

note: compiler flags: -Z threads=1 -C codegen-units=1 -Z ui-testing -Z deduplicate-diagnostics=no -C strip=debuginfo -C prefer-dynamic -C rpath -C debuginfo=0
query stack during panic:
end of query stack
------------------------------------------



---- [ui] src/test/ui/asm/type-check-1.rs stdout ----

error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit status: 101
command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/asm/type-check-1.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/asm/type-check-1" "-A" "unused" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/asm/type-check-1/auxiliary"
stdout: none
--- stderr -------------------------------
thread 'rustc' panicked at 'identifier: "resolve_attempt_to_use_non_constant_value_in_constant_with_suggestion", attr: None, args: FluentArgs([("current", String("let")), ("ident", String("x")), ("suggestion", String("const"))]), errors: [ResolverError(Reference(Message { id: "suggestion", attribute: None })), ResolverError(Reference(Message { id: "current", attribute: None }))]', compiler/rustc_errors/src/translation.rs:91:17
stack backtrace:
   0:     0x7f087cb6f12c - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::haef0e57182cff27e
   1:     0x7f087cbd7da8 - core::fmt::write::h8f3832efb8012fdd
   2:     0x7f087cb5f901 - std::io::Write::write_fmt::hac773a8b3e6facb1
   3:     0x7f087cb7211e - std::panicking::default_hook::{{closure}}::h8fcc2d90b9b7cafd
   4:     0x7f087cb71de7 - std::panicking::default_hook::h04c83f4486ad61ea
   5:     0x7f087d501b34 - rustc_driver[38c78fe59485a0c]::DEFAULT_HOOK::{closure#0}::{closure#0}
   6:     0x7f087cb728d1 - std::panicking::rust_panic_with_hook::h0ebd4e41cd9767ec
   7:     0x7f087cb726f7 - std::panicking::begin_panic_handler::{{closure}}::h661558e3dbb67af8
   8:     0x7f087cb6f6a4 - std::sys_common::backtrace::__rust_end_short_backtrace::h37a58d6b6c3875b8
   9:     0x7f087cb723c2 - rust_begin_unwind
  10:     0x7f087cb22e43 - core::panicking::panic_fmt::hcad844cb234ec812
  11:     0x7f08801e2b9a - <rustc_errors[159519190c68e216]::emitter::EmitterWriter as rustc_errors[159519190c68e216]::translation::Translate>::translate_message
  12:     0x7f08801d372c - <rustc_errors[159519190c68e216]::emitter::EmitterWriter as rustc_errors[159519190c68e216]::emitter::Emitter>::primary_span_formatted
  13:     0x7f08801d56fb - <rustc_errors[159519190c68e216]::emitter::EmitterWriter as rustc_errors[159519190c68e216]::emitter::Emitter>::emit_diagnostic
  14:     0x7f08801ed8a2 - <rustc_errors[159519190c68e216]::json::Diagnostic>::from_errors_diagnostic
  15:     0x7f08801ec2bc - <rustc_errors[159519190c68e216]::json::JsonEmitter as rustc_errors[159519190c68e216]::emitter::Emitter>::emit_diagnostic
  16:     0x7f0880232b68 - <rustc_errors[159519190c68e216]::HandlerInner>::emit_diagnostic
  17:     0x7f088022e846 - <rustc_errors[159519190c68e216]::ErrorGuaranteed as rustc_errors[159519190c68e216]::diagnostic_builder::EmissionGuarantee>::diagnostic_builder_emit_producing_guarantee
  18:     0x7f087e2cc568 - <rustc_resolve[53eaf68e0605af1d]::Resolver>::report_error
  19:     0x7f087e2f2fdb - <rustc_resolve[53eaf68e0605af1d]::Resolver>::resolve_ident_in_lexical_scope
  20:     0x7f087e2d87c3 - <rustc_resolve[53eaf68e0605af1d]::Resolver>::resolve_path_with_ribs
  21:     0x7f087e2499fb - <rustc_resolve[53eaf68e0605af1d]::late::LateResolutionVisitor>::smart_resolve_path_fragment
  22:     0x7f087e249469 - <rustc_resolve[53eaf68e0605af1d]::late::LateResolutionVisitor>::smart_resolve_path
  23:     0x7f087e24fe66 - <rustc_resolve[53eaf68e0605af1d]::late::LateResolutionVisitor>::resolve_expr
  24:     0x7f087e24ecd6 - <rustc_resolve[53eaf68e0605af1d]::late::LateResolutionVisitor>::resolve_inline_const
  25:     0x7f087e229926 - <rustc_resolve[53eaf68e0605af1d]::late::LateResolutionVisitor as rustc_ast[851e558ea592c76c]::visit::Visitor>::visit_inline_asm
  26:     0x7f087e24fe71 - <rustc_resolve[53eaf68e0605af1d]::late::LateResolutionVisitor>::resolve_expr
  27:     0x7f087e20ea1f - <rustc_resolve[53eaf68e0605af1d]::late::LateResolutionVisitor as rustc_ast[851e558ea592c76c]::visit::Visitor>::visit_block
  28:     0x7f087e24fe3c - <rustc_resolve[53eaf68e0605af1d]::late::LateResolutionVisitor>::resolve_expr
  29:     0x7f087e20ea1f - <rustc_resolve[53eaf68e0605af1d]::late::LateResolutionVisitor as rustc_ast[851e558ea592c76c]::visit::Visitor>::visit_block
  30:     0x7f087e22174f - <rustc_resolve[53eaf68e0605af1d]::late::LateResolutionVisitor as rustc_ast[851e558ea592c76c]::visit::Visitor>::visit_fn::{closure#1}::{closure#0}
  31:     0x7f087e21b9fc - <rustc_resolve[53eaf68e0605af1d]::late::LateResolutionVisitor as rustc_ast[851e558ea592c76c]::visit::Visitor>::visit_fn
  32:     0x7f087e3153be - rustc_ast[851e558ea592c76c]::visit::walk_item::<rustc_resolve[53eaf68e0605af1d]::late::LateResolutionVisitor>
  33:     0x7f087e2341f1 - <rustc_resolve[53eaf68e0605af1d]::late::LateResolutionVisitor>::resolve_item
  34:     0x7f087e20df07 - <rustc_resolve[53eaf68e0605af1d]::late::LateResolutionVisitor as rustc_ast[851e558ea592c76c]::visit::Visitor>::visit_item
  35:     0x7f087e2fbc5d - rustc_ast[851e558ea592c76c]::visit::walk_crate::<rustc_resolve[53eaf68e0605af1d]::late::LateResolutionVisitor>
  36:     0x7f087e2dc74e - <rustc_resolve[53eaf68e0605af1d]::Resolver>::late_resolve_crate
  37:     0x7f087e29ec85 - <rustc_session[593e660ae94605db]::session::Session>::time::<(), <rustc_resolve[53eaf68e0605af1d]::Resolver>::resolve_crate::{closure#0}>
  38:     0x7f087d654a78 - rustc_interface[678d2d04e4bf5942]::passes::configure_and_expand
  39:     0x7f087d6a0936 - <rustc_interface[678d2d04e4bf5942]::passes::boxed_resolver::BoxedResolver>::access::<<rustc_interface[678d2d04e4bf5942]::queries::Queries>::expansion::{closure#0}::{closure#0}, core[65c727f087702ea3]::result::Result<rustc_ast[851e558ea592c76c]::ast::Crate, rustc_errors[159519190c68e216]::ErrorGuaranteed>>
  40:     0x7f087d63c5e6 - <rustc_interface[678d2d04e4bf5942]::queries::Queries>::expansion
  41:     0x7f087d509b77 - <rustc_interface[678d2d04e4bf5942]::interface::Compiler>::enter::<rustc_driver[38c78fe59485a0c]::run_compiler::{closure#1}::{closure#2}, core[65c727f087702ea3]::result::Result<core[65c727f087702ea3]::option::Option<rustc_interface[678d2d04e4bf5942]::queries::Linker>, rustc_errors[159519190c68e216]::ErrorGuaranteed>>
  42:     0x7f087d4ec475 - rustc_span[3969291980c0babf]::with_source_map::<core[65c727f087702ea3]::result::Result<(), rustc_errors[159519190c68e216]::ErrorGuaranteed>, rustc_interface[678d2d04e4bf5942]::interface::create_compiler_and_run<core[65c727f087702ea3]::result::Result<(), rustc_errors[159519190c68e216]::ErrorGuaranteed>, rustc_driver[38c78fe59485a0c]::run_compiler::{closure#1}>::{closure#1}>
  43:     0x7f087d524e51 - rustc_interface[678d2d04e4bf5942]::interface::create_compiler_and_run::<core[65c727f087702ea3]::result::Result<(), rustc_errors[159519190c68e216]::ErrorGuaranteed>, rustc_driver[38c78fe59485a0c]::run_compiler::{closure#1}>
  44:     0x7f087d4ee4b2 - <scoped_tls[c3b2fd947603b8d7]::ScopedKey<rustc_span[3969291980c0babf]::SessionGlobals>>::set::<rustc_interface[678d2d04e4bf5942]::interface::run_compiler<core[65c727f087702ea3]::result::Result<(), rustc_errors[159519190c68e216]::ErrorGuaranteed>, rustc_driver[38c78fe59485a0c]::run_compiler::{closure#1}>::{closure#0}, core[65c727f087702ea3]::result::Result<(), rustc_errors[159519190c68e216]::ErrorGuaranteed>>
  45:     0x7f087d564459 - std[f086a7a38219cd93]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[678d2d04e4bf5942]::util::run_in_thread_pool_with_globals<rustc_interface[678d2d04e4bf5942]::interface::run_compiler<core[65c727f087702ea3]::result::Result<(), rustc_errors[159519190c68e216]::ErrorGuaranteed>, rustc_driver[38c78fe59485a0c]::run_compiler::{closure#1}>::{closure#0}, core[65c727f087702ea3]::result::Result<(), rustc_errors[159519190c68e216]::ErrorGuaranteed>>::{closure#0}, core[65c727f087702ea3]::result::Result<(), rustc_errors[159519190c68e216]::ErrorGuaranteed>>
  46:     0x7f087d4f0b1e - std[f086a7a38219cd93]::panicking::try::<core[65c727f087702ea3]::result::Result<(), rustc_errors[159519190c68e216]::ErrorGuaranteed>, core[65c727f087702ea3]::panic::unwind_safe::AssertUnwindSafe<<std[f086a7a38219cd93]::thread::Builder>::spawn_unchecked_<rustc_interface[678d2d04e4bf5942]::util::run_in_thread_pool_with_globals<rustc_interface[678d2d04e4bf5942]::interface::run_compiler<core[65c727f087702ea3]::result::Result<(), rustc_errors[159519190c68e216]::ErrorGuaranteed>, rustc_driver[38c78fe59485a0c]::run_compiler::{closure#1}>::{closure#0}, core[65c727f087702ea3]::result::Result<(), rustc_errors[159519190c68e216]::ErrorGuaranteed>>::{closure#0}, core[65c727f087702ea3]::result::Result<(), rustc_errors[159519190c68e216]::ErrorGuaranteed>>::{closure#1}::{closure#0}>>
  47:     0x7f087d568a90 - <<std[f086a7a38219cd93]::thread::Builder>::spawn_unchecked_<rustc_interface[678d2d04e4bf5942]::util::run_in_thread_pool_with_globals<rustc_interface[678d2d04e4bf5942]::interface::run_compiler<core[65c727f087702ea3]::result::Result<(), rustc_errors[159519190c68e216]::ErrorGuaranteed>, rustc_driver[38c78fe59485a0c]::run_compiler::{closure#1}>::{closure#0}, core[65c727f087702ea3]::result::Result<(), rustc_errors[159519190c68e216]::ErrorGuaranteed>>::{closure#0}, core[65c727f087702ea3]::result::Result<(), rustc_errors[159519190c68e216]::ErrorGuaranteed>>::{closure#1} as core[65c727f087702ea3]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  48:     0x7f087cb7f645 - std::sys::unix::thread::Thread::new::thread_start::ha0dece557faac109
  49:     0x7f087c91bb43 - <unknown>
  50:     0x7f087c9ada00 - <unknown>
  51:                0x0 - <unknown>
error: internal compiler error: unexpected panic

note: the compiler unexpectedly panicked. this is a bug.


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

note: rustc 1.65.0-nightly (39670d110 2022-08-29) running on x86_64-unknown-linux-gnu

note: compiler flags: -Z threads=1 -C codegen-units=1 -Z ui-testing -Z deduplicate-diagnostics=no -C strip=debuginfo -C prefer-dynamic -C rpath -C debuginfo=0
query stack during panic:
end of query stack
------------------------------------------



---- [ui] src/test/ui/asm/x86_64/parse-error.rs stdout ----

error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit status: 101
command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/asm/x86_64/parse-error.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/asm/x86_64/parse-error" "-A" "unused" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/asm/x86_64/parse-error/auxiliary"
stdout: none
--- stderr -------------------------------
error: requires at least a template string argument
   |
LL |         asm!();
   |         ^^^^^^

---
   |
LL |         asm!("{}" foo);
   |                   ^^^ expected `,`

error: expected operand, clobber_abi, options, or additional template string
   |
LL |         asm!("{}", foo);
LL |         asm!("{}", foo);
   |                    ^^^ expected operand, clobber_abi, options, or additional template string
error: expected `(`, found `foo`
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:19:23
   |
LL |         asm!("{}", in foo);
LL |         asm!("{}", in foo);
   |                       ^^^ expected `(`

error: expected `)`, found `foo`
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:21:27
   |
LL |         asm!("{}", in(reg foo));
   |                           ^^^ expected `)`
error: expected expression, found end of macro arguments
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:23:27
   |
   |
LL |         asm!("{}", in(reg));

error: expected register class or explicit register
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:25:26
   |
   |
LL |         asm!("{}", inout(=) foo => bar);

error: expected expression, found end of macro arguments
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:27:37
   |
   |
LL |         asm!("{}", inout(reg) foo =>);


error: expected one of `!`, `,`, `.`, `::`, `?`, `{`, or an operator, found `=>`
   |
   |
LL |         asm!("{}", in(reg) foo => bar);
   |                                ^^ expected one of 7 possible tokens
error: expected a path for argument to `sym`
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:31:24
   |
   |
LL |         asm!("{}", sym foo + bar);


error: expected one of `)`, `att_syntax`, `may_unwind`, `nomem`, `noreturn`, `nostack`, `preserves_flags`, `pure`, `raw`, or `readonly`, found `foo`
   |
   |
LL |         asm!("", options(foo));
   |                          ^^^ expected one of 10 possible tokens

error: expected one of `)` or `,`, found `foo`
   |
   |
LL |         asm!("", options(nomem foo));
   |                                ^^^ expected one of `)` or `,`

error: expected one of `)`, `att_syntax`, `may_unwind`, `nomem`, `noreturn`, `nostack`, `preserves_flags`, `pure`, `raw`, or `readonly`, found `foo`
   |
   |
LL |         asm!("", options(nomem, foo));
   |                                 ^^^ expected one of 10 possible tokens
error: arguments are not allowed after options
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:39:31
   |
LL |         asm!("{}", options(), const foo);
LL |         asm!("{}", options(), const foo);
   |                    ---------  ^^^^^^^^^ argument
   |                    |
   |                    previous options

error: at least one abi must be provided as an argument to `clobber_abi`
   |
   |
LL |         asm!("", clobber_abi());

error: expected string literal
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:44:30
   |
   |
LL |         asm!("", clobber_abi(foo));


error: expected one of `)` or `,`, found `foo`
   |
   |
LL |         asm!("", clobber_abi("C" foo));
   |                                  ^^^ expected one of `)` or `,`
error: expected string literal
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:48:35
   |
   |
LL |         asm!("", clobber_abi("C", foo));

error: arguments are not allowed after clobber_abi
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:50:38
   |
   |
LL |         asm!("{}", clobber_abi("C"), const foo);
   |                    ----------------  ^^^^^^^^^ argument
   |                    clobber_abi

error: clobber_abi is not allowed after options
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:53:29
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:53:29
   |
LL |         asm!("", options(), clobber_abi("C"));
   |                  ---------  ^^^^^^^^^^^^^^^^
   |                  options

error: clobber_abi is not allowed after options
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:55:31
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:55:31
   |
LL |         asm!("{}", options(), clobber_abi("C"), const foo);
   |                    ---------  ^^^^^^^^^^^^^^^^
   |                    options

error: duplicate argument named `a`
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:57:36
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:57:36
   |
LL |         asm!("{a}", a = const foo, a = const bar);
   |                     -------------  ^^^^^^^^^^^^^ duplicate argument
   |                     previously here

error: argument never used
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:57:36
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:57:36
   |
LL |         asm!("{a}", a = const foo, a = const bar);
   |                                    ^^^^^^^^^^^^^ argument never used
   |
   = help: if this argument is intentionally unused, consider using it in an asm comment: `"/* {1} */"`
error: explicit register arguments cannot have names
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:62:18
   |
   |
LL |         asm!("", a = in("eax") foo);

error: named arguments cannot follow explicit register arguments
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:64:36
   |
   |
LL |         asm!("{a}", in("eax") foo, a = const bar);
   |                     -------------  ^^^^^^^^^^^^^ named argument
   |                     explicit register argument

error: named arguments cannot follow explicit register arguments
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:67:36
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:67:36
   |
LL |         asm!("{a}", in("eax") foo, a = const bar);
   |                     -------------  ^^^^^^^^^^^^^ named argument
   |                     explicit register argument

error: positional arguments cannot follow named arguments or explicit register arguments
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:70:36
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:70:36
   |
LL |         asm!("{1}", in("eax") foo, const bar);
   |                     -------------  ^^^^^^^^^ positional argument
   |                     explicit register argument


error: expected one of `clobber_abi`, `const`, `in`, `inlateout`, `inout`, `lateout`, `options`, `out`, or `sym`, found `""`
   |
   |
LL |         asm!("", options(), "");
   |                             ^^ expected one of 9 possible tokens

error: expected one of `clobber_abi`, `const`, `in`, `inlateout`, `inout`, `lateout`, `options`, `out`, or `sym`, found `"{}"`
   |
   |
LL |         asm!("{}", in(reg) foo, "{}", out(reg) foo);
   |                                 ^^^^ expected one of 9 possible tokens
error: asm template must be a string literal
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:77:14
   |
   |
LL |         asm!(format!("{{{}}}", 0), in(reg) foo);
   |
   = note: this error originates in the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info)

error: asm template must be a string literal
error: asm template must be a string literal
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:79:21
   |
LL |         asm!("{1}", format!("{{{}}}", 0), in(reg) foo, out(reg) bar);
   |
   = note: this error originates in the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info)


error: _ cannot be used for input operands
   |
   |
LL |         asm!("{}", in(reg) _);


error: _ cannot be used for input operands
   |
   |
LL |         asm!("{}", inout(reg) _);


error: _ cannot be used for input operands
   |
   |
LL |         asm!("{}", inlateout(reg) _);

error: requires at least a template string argument
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:92:1
   |
   |
LL | global_asm!();

error: asm template must be a string literal
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:94:13
   |
   |
LL | global_asm!(FOO);

error: expected token: `,`
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:96:18
   |
   |
LL | global_asm!("{}" FOO);
   |                  ^^^ expected `,`
error: expected operand, options, or additional template string
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:98:19
   |
   |
LL | global_asm!("{}", FOO);
   |                   ^^^ expected operand, options, or additional template string
error: expected expression, found end of macro arguments
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:100:24
   |
   |
LL | global_asm!("{}", const);


error: expected one of `,`, `.`, `?`, or an operator, found `FOO`
   |
   |
LL | global_asm!("{}", const(reg) FOO);
   |                              ^^^ expected one of `,`, `.`, `?`, or an operator

error: expected one of `)`, `att_syntax`, or `raw`, found `FOO`
   |
   |
LL | global_asm!("", options(FOO));
   |                         ^^^ expected one of `)`, `att_syntax`, or `raw`

error: expected one of `)`, `att_syntax`, or `raw`, found `nomem`
   |
   |
LL | global_asm!("", options(nomem FOO));
   |                         ^^^^^ expected one of `)`, `att_syntax`, or `raw`

error: expected one of `)`, `att_syntax`, or `raw`, found `nomem`
   |
   |
LL | global_asm!("", options(nomem, FOO));
   |                         ^^^^^ expected one of `)`, `att_syntax`, or `raw`
error: arguments are not allowed after options
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:110:30
   |
   |
LL | global_asm!("{}", options(), const FOO);
   |                   ---------  ^^^^^^^^^ argument
   |                   previous options

error: expected string literal
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:112:29
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:112:29
   |
LL | global_asm!("", clobber_abi(FOO));


error: expected one of `)` or `,`, found `FOO`
   |
   |
LL | global_asm!("", clobber_abi("C" FOO));
   |                                 ^^^ expected one of `)` or `,`
error: expected string literal
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:116:34
   |
   |
LL | global_asm!("", clobber_abi("C", FOO));

error: arguments are not allowed after clobber_abi
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:118:37
   |
   |
LL | global_asm!("{}", clobber_abi("C"), const FOO);
   |                   ----------------  ^^^^^^^^^ argument
   |                   clobber_abi


error: `clobber_abi` cannot be used with `global_asm!`
   |
   |
LL | global_asm!("{}", clobber_abi("C"), const FOO);

error: clobber_abi is not allowed after options
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:121:28
   |
   |
LL | global_asm!("", options(), clobber_abi("C"));
   |                 ---------  ^^^^^^^^^^^^^^^^
   |                 options

error: clobber_abi is not allowed after options
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:123:30
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:123:30
   |
LL | global_asm!("{}", options(), clobber_abi("C"), const FOO);
   |                   ---------  ^^^^^^^^^^^^^^^^
   |                   options


error: `clobber_abi` cannot be used with `global_asm!`
   |
   |
LL | global_asm!("", clobber_abi("C"), clobber_abi("C"));

error: duplicate argument named `a`
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:127:35
   |
   |
LL | global_asm!("{a}", a = const FOO, a = const BAR);
   |                    -------------  ^^^^^^^^^^^^^ duplicate argument
   |                    previously here

error: argument never used
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:127:35
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:127:35
   |
LL | global_asm!("{a}", a = const FOO, a = const BAR);
   |                                   ^^^^^^^^^^^^^ argument never used
   |
   = help: if this argument is intentionally unused, consider using it in an asm comment: `"/* {1} */"`

error: expected one of `clobber_abi`, `const`, `options`, or `sym`, found `""`
   |
   |
LL | global_asm!("", options(), "");
   |                            ^^ expected one of `clobber_abi`, `const`, `options`, or `sym`

error: expected one of `clobber_abi`, `const`, `options`, or `sym`, found `"{}"`
   |
   |
LL | global_asm!("{}", const FOO, "{}", const FOO);
   |                              ^^^^ expected one of `clobber_abi`, `const`, `options`, or `sym`
error: asm template must be a string literal
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:134:13
   |
   |
LL | global_asm!(format!("{{{}}}", 0), const FOO);
   |
   = note: this error originates in the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info)

error: asm template must be a string literal
error: asm template must be a string literal
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:136:20
   |
LL | global_asm!("{1}", format!("{{{}}}", 0), const FOO, const BAR);
   |
   = note: this error originates in the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info)


thread 'rustc' panicked at 'identifier: "resolve_attempt_to_use_non_constant_value_in_constant_with_suggestion", attr: None, args: FluentArgs([("current", String("let")), ("ident", String("foo")), ("suggestion", String("const"))]), errors: [ResolverError(Reference(Message { id: "suggestion", attribute: None })), ResolverError(Reference(Message { id: "current", attribute: None }))]', compiler/rustc_errors/src/translation.rs:91:17
stack backtrace:
   0:     0x7f70bc16212c - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::haef0e57182cff27e
   1:     0x7f70bc1cada8 - core::fmt::write::h8f3832efb8012fdd
   2:     0x7f70bc152901 - std::io::Write::write_fmt::hac773a8b3e6facb1
   3:     0x7f70bc16511e - std::panicking::default_hook::{{closure}}::h8fcc2d90b9b7cafd
   4:     0x7f70bc164de7 - std::panicking::default_hook::h04c83f4486ad61ea
   5:     0x7f70bcaf4b34 - rustc_driver[38c78fe59485a0c]::DEFAULT_HOOK::{closure#0}::{closure#0}
   6:     0x7f70bc1658d1 - std::panicking::rust_panic_with_hook::h0ebd4e41cd9767ec
   7:     0x7f70bc1656f7 - std::panicking::begin_panic_handler::{{closure}}::h661558e3dbb67af8
   8:     0x7f70bc1626a4 - std::sys_common::backtrace::__rust_end_short_backtrace::h37a58d6b6c3875b8
   9:     0x7f70bc1653c2 - rust_begin_unwind
  10:     0x7f70bc115e43 - core::panicking::panic_fmt::hcad844cb234ec812
  11:     0x7f70bf7d5b9a - <rustc_errors[159519190c68e216]::emitter::EmitterWriter as rustc_errors[159519190c68e216]::translation::Translate>::translate_message
  12:     0x7f70bf7c672c - <rustc_errors[159519190c68e216]::emitter::EmitterWriter as rustc_errors[159519190c68e216]::emitter::Emitter>::primary_span_formatted
  13:     0x7f70bf7c86fb - <rustc_errors[159519190c68e216]::emitter::EmitterWriter as rustc_errors[159519190c68e216]::emitter::Emitter>::emit_diagnostic
  14:     0x7f70bf7e08a2 - <rustc_errors[159519190c68e216]::json::Diagnostic>::from_errors_diagnostic
  15:     0x7f70bf7df2bc - <rustc_errors[159519190c68e216]::json::JsonEmitter as rustc_errors[159519190c68e216]::emitter::Emitter>::emit_diagnostic
  16:     0x7f70bf825b68 - <rustc_errors[159519190c68e216]::HandlerInner>::emit_diagnostic
  17:     0x7f70bf821846 - <rustc_errors[159519190c68e216]::ErrorGuaranteed as rustc_errors[159519190c68e216]::diagnostic_builder::EmissionGuarantee>::diagnostic_builder_emit_producing_guarantee
  18:     0x7f70bd8bf568 - <rustc_resolve[53eaf68e0605af1d]::Resolver>::report_error
  19:     0x7f70bd8e5fdb - <rustc_resolve[53eaf68e0605af1d]::Resolver>::resolve_ident_in_lexical_scope
  20:     0x7f70bd8cb7c3 - <rustc_resolve[53eaf68e0605af1d]::Resolver>::resolve_path_with_ribs
  21:     0x7f70bd83c9fb - <rustc_resolve[53eaf68e0605af1d]::late::LateResolutionVisitor>::smart_resolve_path_fragment
  22:     0x7f70bd83c469 - <rustc_resolve[53eaf68e0605af1d]::late::LateResolutionVisitor>::smart_resolve_path
  23:     0x7f70bd842e66 - <rustc_resolve[53eaf68e0605af1d]::late::LateResolutionVisitor>::resolve_expr
  24:     0x7f70bd841cd6 - <rustc_resolve[53eaf68e0605af1d]::late::LateResolutionVisitor>::resolve_inline_const
  25:     0x7f70bd81c926 - <rustc_resolve[53eaf68e0605af1d]::late::LateResolutionVisitor as rustc_ast[851e558ea592c76c]::visit::Visitor>::visit_inline_asm
  26:     0x7f70bd842e71 - <rustc_resolve[53eaf68e0605af1d]::late::LateResolutionVisitor>::resolve_expr
  27:     0x7f70bd801a1f - <rustc_resolve[53eaf68e0605af1d]::late::LateResolutionVisitor as rustc_ast[851e558ea592c76c]::visit::Visitor>::visit_block
  28:     0x7f70bd842e3c - <rustc_resolve[53eaf68e0605af1d]::late::LateResolutionVisitor>::resolve_expr
  29:     0x7f70bd801a1f - <rustc_resolve[53eaf68e0605af1d]::late::LateResolutionVisitor as rustc_ast[851e558ea592c76c]::visit::Visitor>::visit_block
  30:     0x7f70bd81474f - <rustc_resolve[53eaf68e0605af1d]::late::LateResolutionVisitor as rustc_ast[851e558ea592c76c]::visit::Visitor>::visit_fn::{closure#1}::{closure#0}
  31:     0x7f70bd80e9fc - <rustc_resolve[53eaf68e0605af1d]::late::LateResolutionVisitor as rustc_ast[851e558ea592c76c]::visit::Visitor>::visit_fn
  32:     0x7f70bd9083be - rustc_ast[851e558ea592c76c]::visit::walk_item::<rustc_resolve[53eaf68e0605af1d]::late::LateResolutionVisitor>
  33:     0x7f70bd8271f1 - <rustc_resolve[53eaf68e0605af1d]::late::LateResolutionVisitor>::resolve_item
  34:     0x7f70bd800f07 - <rustc_resolve[53eaf68e0605af1d]::late::LateResolutionVisitor as rustc_ast[851e558ea592c76c]::visit::Visitor>::visit_item
  35:     0x7f70bd8eec5d - rustc_ast[851e558ea592c76c]::visit::walk_crate::<rustc_resolve[53eaf68e0605af1d]::late::LateResolutionVisitor>
  36:     0x7f70bd8cf74e - <rustc_resolve[53eaf68e0605af1d]::Resolver>::late_resolve_crate
  37:     0x7f70bd891c85 - <rustc_session[593e660ae94605db]::session::Session>::time::<(), <rustc_resolve[53eaf68e0605af1d]::Resolver>::resolve_crate::{closure#0}>
  38:     0x7f70bcc47a78 - rustc_interface[678d2d04e4bf5942]::passes::configure_and_expand
  39:     0x7f70bcc93936 - <rustc_interface[678d2d04e4bf5942]::passes::boxed_resolver::BoxedResolver>::access::<<rustc_interface[678d2d04e4bf5942]::queries::Queries>::expansion::{closure#0}::{closure#0}, core[65c727f087702ea3]::result::Result<rustc_ast[851e558ea592c76c]::ast::Crate, rustc_errors[159519190c68e216]::ErrorGuaranteed>>
  40:     0x7f70bcc2f5e6 - <rustc_interface[678d2d04e4bf5942]::queries::Queries>::expansion
  41:     0x7f70bcafcb77 - <rustc_interface[678d2d04e4bf5942]::interface::Compiler>::enter::<rustc_driver[38c78fe59485a0c]::run_compiler::{closure#1}::{closure#2}, core[65c727f087702ea3]::result::Result<core[65c727f087702ea3]::option::Option<rustc_interface[678d2d04e4bf5942]::queries::Linker>, rustc_errors[159519190c68e216]::ErrorGuaranteed>>
  42:     0x7f70bcadf475 - rustc_span[3969291980c0babf]::with_source_map::<core[65c727f087702ea3]::result::Result<(), rustc_errors[159519190c68e216]::ErrorGuaranteed>, rustc_interface[678d2d04e4bf5942]::interface::create_compiler_and_run<core[65c727f087702ea3]::result::Result<(), rustc_errors[159519190c68e216]::ErrorGuaranteed>, rustc_driver[38c78fe59485a0c]::run_compiler::{closure#1}>::{closure#1}>
  43:     0x7f70bcb17e51 - rustc_interface[678d2d04e4bf5942]::interface::create_compiler_and_run::<core[65c727f087702ea3]::result::Result<(), rustc_errors[159519190c68e216]::ErrorGuaranteed>, rustc_driver[38c78fe59485a0c]::run_compiler::{closure#1}>
  44:     0x7f70bcae14b2 - <scoped_tls[c3b2fd947603b8d7]::ScopedKey<rustc_span[3969291980c0babf]::SessionGlobals>>::set::<rustc_interface[678d2d04e4bf5942]::interface::run_compiler<core[65c727f087702ea3]::result::Result<(), rustc_errors[159519190c68e216]::ErrorGuaranteed>, rustc_driver[38c78fe59485a0c]::run_compiler::{closure#1}>::{closure#0}, core[65c727f087702ea3]::result::Result<(), rustc_errors[159519190c68e216]::ErrorGuaranteed>>
  45:     0x7f70bcb57459 - std[f086a7a38219cd93]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[678d2d04e4bf5942]::util::run_in_thread_pool_with_globals<rustc_interface[678d2d04e4bf5942]::interface::run_compiler<core[65c727f087702ea3]::result::Result<(), rustc_errors[159519190c68e216]::ErrorGuaranteed>, rustc_driver[38c78fe59485a0c]::run_compiler::{closure#1}>::{closure#0}, core[65c727f087702ea3]::result::Result<(), rustc_errors[159519190c68e216]::ErrorGuaranteed>>::{closure#0}, core[65c727f087702ea3]::result::Result<(), rustc_errors[159519190c68e216]::ErrorGuaranteed>>
  46:     0x7f70bcae3b1e - std[f086a7a38219cd93]::panicking::try::<core[65c727f087702ea3]::result::Result<(), rustc_errors[159519190c68e216]::ErrorGuaranteed>, core[65c727f087702ea3]::panic::unwind_safe::AssertUnwindSafe<<std[f086a7a38219cd93]::thread::Builder>::spawn_unchecked_<rustc_interface[678d2d04e4bf5942]::util::run_in_thread_pool_with_globals<rustc_interface[678d2d04e4bf5942]::interface::run_compiler<core[65c727f087702ea3]::result::Result<(), rustc_errors[159519190c68e216]::ErrorGuaranteed>, rustc_driver[38c78fe59485a0c]::run_compiler::{closure#1}>::{closure#0}, core[65c727f087702ea3]::result::Result<(), rustc_errors[159519190c68e216]::ErrorGuaranteed>>::{closure#0}, core[65c727f087702ea3]::result::Result<(), rustc_errors[159519190c68e216]::ErrorGuaranteed>>::{closure#1}::{closure#0}>>
  47:     0x7f70bcb5ba90 - <<std[f086a7a38219cd93]::thread::Builder>::spawn_unchecked_<rustc_interface[678d2d04e4bf5942]::util::run_in_thread_pool_with_globals<rustc_interface[678d2d04e4bf5942]::interface::run_compiler<core[65c727f087702ea3]::result::Result<(), rustc_errors[159519190c68e216]::ErrorGuaranteed>, rustc_driver[38c78fe59485a0c]::run_compiler::{closure#1}>::{closure#0}, core[65c727f087702ea3]::result::Result<(), rustc_errors[159519190c68e216]::ErrorGuaranteed>>::{closure#0}, core[65c727f087702ea3]::result::Result<(), rustc_errors[159519190c68e216]::ErrorGuaranteed>>::{closure#1} as core[65c727f087702ea3]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  48:     0x7f70bc172645 - std::sys::unix::thread::Thread::new::thread_start::ha0dece557faac109
  49:     0x7f70bbf0eb43 - <unknown>
  50:     0x7f70bbfa0a00 - <unknown>
  51:                0x0 - <unknown>
error: internal compiler error: unexpected panic

note: the compiler unexpectedly panicked. this is a bug.


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

note: rustc 1.65.0-nightly (39670d110 2022-08-29) running on x86_64-unknown-linux-gnu

note: compiler flags: -Z threads=1 -C codegen-units=1 -Z ui-testing -Z deduplicate-diagnostics=no -C strip=debuginfo -C prefer-dynamic -C rpath -C debuginfo=0
query stack during panic:
end of query stack
error: aborting due to 59 previous errors


For more information about this error, try `rustc --explain E0435`.
------------------------------------------


---- [ui] src/test/ui/capture1.rs stdout ----

error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit status: 101
command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/capture1.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/capture1" "-A" "unused" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/capture1/auxiliary"
stdout: none
--- stderr -------------------------------
thread 'rustc' panicked at 'identifier: "resolve_cannot_capture_dynamic_environment_in_fn_item", attr: Some("help"), args: FluentArgs([("closure_hint", String("|| { ... }"))]), errors: [ResolverError(Reference(Message { id: "closure_hint", attribute: None }))]', compiler/rustc_errors/src/translation.rs:91:17
stack backtrace:
   0:     0x7f7588dc012c - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::haef0e57182cff27e
   1:     0x7f7588e28da8 - core::fmt::write::h8f3832efb8012fdd
   2:     0x7f7588db0901 - std::io::Write::write_fmt::hac773a8b3e6facb1
   3:     0x7f7588dc311e - std::panicking::default_hook::{{closure}}::h8fcc2d90b9b7cafd
   4:     0x7f7588dc2de7 - std::panicking::default_hook::h04c83f4486ad61ea
   5:     0x7f7589752b34 - rustc_driver[38c78fe59485a0c]::DEFAULT_HOOK::{closure#0}::{closure#0}
   6:     0x7f7588dc38d1 - std::panicking::rust_panic_with_hook::h0ebd4e41cd9767ec
   7:     0x7f7588dc36f7 - std::panicking::begin_panic_handler::{{closure}}::h661558e3dbb67af8
   8:     0x7f7588dc06a4 - std::sys_common::backtrace::__rust_end_short_backtrace::h37a58d6b6c3875b8
   9:     0x7f7588dc33c2 - rust_begin_unwind
  10:     0x7f7588d73e43 - core::panicking::panic_fmt::hcad844cb234ec812
  11:     0x7f758c433b9a - <rustc_errors[159519190c68e216]::emitter::EmitterWriter as rustc_errors[159519190c68e216]::translation::Translate>::translate_message
  12:     0x7f758c428f42 - <rustc_errors[159519190c68e216]::emitter::EmitterWriter>::emit_message_default
  13:     0x7f758c426c49 - <rustc_errors[159519190c68e216]::emitter::EmitterWriter as rustc_errors[159519190c68e216]::emitter::Emitter>::emit_diagnostic
  14:     0x7f758c43e8a2 - <rustc_errors[159519190c68e216]::json::Diagnostic>::from_errors_diagnostic
  15:     0x7f758c43d2bc - <rustc_errors[159519190c68e216]::json::JsonEmitter as rustc_errors[159519190c68e216]::emitter::Emitter>::emit_diagnostic
  16:     0x7f758c483b68 - <rustc_errors[159519190c68e216]::HandlerInner>::emit_diagnostic
  17:     0x7f758c47f846 - <rustc_errors[159519190c68e216]::ErrorGuaranteed as rustc_errors[159519190c68e216]::diagnostic_builder::EmissionGuarantee>::diagnostic_builder_emit_producing_guarantee
  18:     0x7f758a51d568 - <rustc_resolve[53eaf68e0605af1d]::Resolver>::report_error
  19:     0x7f758a543e95 - <rustc_resolve[53eaf68e0605af1d]::Resolver>::resolve_ident_in_lexical_scope
  20:     0x7f758a5297c3 - <rustc_resolve[53eaf68e0605af1d]::Resolver>::resolve_path_with_ribs
  21:     0x7f758a49a9fb - <rustc_resolve[53eaf68e0605af1d]::late::LateResolutionVisitor>::smart_resolve_path_fragment
  22:     0x7f758a49a469 - <rustc_resolve[53eaf68e0605af1d]::late::LateResolutionVisitor>::smart_resolve_path
  23:     0x7f758a4a0e66 - <rustc_resolve[53eaf68e0605af1d]::late::LateResolutionVisitor>::resolve_expr
  24:     0x7f758a4a0e71 - <rustc_resolve[53eaf68e0605af1d]::late::LateResolutionVisitor>::resolve_expr
  25:     0x7f758a45fa1f - <rustc_resolve[53eaf68e0605af1d]::late::LateResolutionVisitor as rustc_ast[851e558ea592c76c]::visit::Visitor>::visit_block
  26:     0x7f758a47274f - <rustc_resolve[53eaf68e0605af1d]::late::LateResolutionVisitor as rustc_ast[851e558ea592c76c]::visit::Visitor>::visit_fn::{closure#1}::{closure#0}
  27:     0x7f758a46c9fc - <rustc_resolve[53eaf68e0605af1d]::late::LateResolutionVisitor as rustc_ast[851e558ea592c76c]::visit::Visitor>::visit_fn
  28:     0x7f758a5663be - rustc_ast[851e558ea592c76c]::visit::walk_item::<rustc_resolve[53eaf68e0605af1d]::late::LateResolutionVisitor>
  29:     0x7f758a4851f1 - <rustc_resolve[53eaf68e0605af1d]::late::LateResolutionVisitor>::resolve_item
  30:     0x7f758a45ef07 - <rustc_resolve[53eaf68e0605af1d]::late::LateResolutionVisitor as rustc_ast[851e558ea592c76c]::visit::Visitor>::visit_item
  31:     0x7f758a45fa1f - <rustc_resolve[53eaf68e0605af1d]::late::LateResolutionVisitor as rustc_ast[851e558ea592c76c]::visit::Visitor>::visit_block
  32:     0x7f758a47274f - <rustc_resolve[53eaf68e0605af1d]::late::LateResolutionVisitor as rustc_ast[851e558ea592c76c]::visit::Visitor>::visit_fn::{closure#1}::{closure#0}
  33:     0x7f758a46c9fc - <rustc_resolve[53eaf68e0605af1d]::late::LateResolutionVisitor as rustc_ast[851e558ea592c76c]::visit::Visitor>::visit_fn
  34:     0x7f758a5663be - rustc_ast[851e558ea592c76c]::visit::walk_item::<rustc_resolve[53eaf68e0605af1d]::late::LateResolutionVisitor>
  35:     0x7f758a4851f1 - <rustc_resolve[53eaf68e0605af1d]::late::LateResolutionVisitor>::resolve_item
  36:     0x7f758a45ef07 - <rustc_resolve[53eaf68e0605af1d]::late::LateResolutionVisitor as rustc_ast[851e558ea592c76c]::visit::Visitor>::visit_item
  37:     0x7f758a54cc5d - rustc_ast[851e558ea592c76c]::visit::walk_crate::<rustc_resolve[53eaf68e0605af1d]::late::LateResolutionVisitor>
  38:     0x7f758a52d74e - <rustc_resolve[53eaf68e0605af1d]::Resolver>::late_resolve_crate
  39:     0x7f758a4efc85 - <rustc_session[593e660ae94605db]::session::Session>::time::<(), <rustc_resolve[53eaf68e0605af1d]::Resolver>::resolve_crate::{closure#0}>

rust-log-analyzer avatar Aug 29 '22 19:08 rust-log-analyzer

@rajputrajat -- I think you need to do something like git pull --rebase $REMOTE master where $REMOTE is the git remote corresponding to upstream, i.e. the rust-lang/rust repo (not your fork).

compiler-errors avatar Aug 29 '22 19:08 compiler-errors

Yes. I will update this as you suggested. Being a first timer, I did read this comment somewhere on some other PR but didn't understand it then.

Thanks!

rajputrajat avatar Aug 30 '22 01:08 rajputrajat

r? @davidtwco

fee1-dead avatar Aug 30 '22 04:08 fee1-dead

:umbrella: The latest upstream changes (presumably #101249) made this pull request unmergeable. Please resolve the merge conflicts.

bors avatar Sep 01 '22 01:09 bors

Some changes occurred in src/tools/cargo

cc @ehuss

The Miri submodule was changed

cc @rust-lang/miri

rustbot avatar Sep 03 '22 19:09 rustbot

The job mingw-check failed! Check out the build log: (web) (plain)

Click to see the possible cause of the failure (guessed by this bot)
    Checking rustc_ast_lowering v0.0.0 (/checkout/compiler/rustc_ast_lowering)
    Checking rustc_monomorphize v0.0.0 (/checkout/compiler/rustc_monomorphize)
    Checking rustc_save_analysis v0.0.0 (/checkout/compiler/rustc_save_analysis)
    Checking rustc_resolve v0.0.0 (/checkout/compiler/rustc_resolve)
error: `#[label]` is not a valid attribute
    |
203 |     #[label]
    |     ^
    |
    |
    = help: only `primary_span`, `applicability` and `skip_arg` are valid field attributes
error: unreachable statement
   --> compiler/rustc_resolve/src/errors.rs:199:10
    |
199 |   #[derive(SessionSubdiagnostic)]
---
95  | |             i: $crate::macros::TokenStream
96  | |         ) -> $crate::macros::TokenStream {
    | |________________________________________- in this expansion of `#[derive(SessionSubdiagnostic)]`
    |
    = note: `-D unreachable-code` implied by `-D warnings`
error: could not compile `rustc_resolve` due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
error: could not compile `rustc_resolve` due to 2 previous errors
Build completed unsuccessfully in 0:02:05

rust-log-analyzer avatar Sep 03 '22 20:09 rust-log-analyzer

The job x86_64-gnu-tools failed! Check out the build log: (web) (plain)

Click to see the possible cause of the failure (guessed by this bot)
   |
81 |     alloc_range, AllocRange, InterpResult, MPlaceTy, ScalarMaybeUninit,
   |                                                      ^^^^^^^^^^^^^^^^^ no `ScalarMaybeUninit` in `interpret`

thread 'rustc' panicked at 'identifier: "resolve_method_not_member_of_trait", attr: None, args: FluentArgs([("candidate", String("use_addr_for_alignment_check")), ("method", String("force_int_for_alignment_check")), ("trait_", String("Machine"))]), errors: [ResolverError(Reference(Message { id: "method", attribute: None })), ResolverError(Reference(Message { id: "trait_", attribute: None }))]', compiler/rustc_errors/src/translation.rs:91:17
   0:     0x7f90687f0e1e - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h45e40bb98de4c3d3
   1:     0x7f9068855b69 - core::fmt::write::ha1e5e5dbace7054c
   2:     0x7f90687e20b1 - std::io::Write::write_fmt::h0eb9acc595520ad1
   2:     0x7f90687e20b1 - std::io::Write::write_fmt::h0eb9acc595520ad1
   3:     0x7f90687f3cc8 - std::panicking::default_hook::{{closure}}::hb6ba27abd886302e
   4:     0x7f90687f3a2a - std::panicking::default_hook::hcd0c9c568b145db7
   5:     0x7f9069148374 - rustc_driver[4f490e714d838722]::DEFAULT_HOOK::{closure#0}::{closure#0}
   6:     0x7f90687f446a - std::panicking::rust_panic_with_hook::hc536d219ea67c000
   7:     0x7f90687f4297 - std::panicking::begin_panic_handler::{{closure}}::h0c69c3728168ba0e
   8:     0x7f90687f13bc - std::sys_common::backtrace::__rust_end_short_backtrace::h29215c2c0ff08de0
   9:     0x7f90687f3f62 - rust_begin_unwind
  10:     0x7f90687aacc3 - core::panicking::panic_fmt::hea72d0dde7d5a73e
  11:     0x7f906c60a62f - <rustc_errors[36b66c2fc792656]::emitter::EmitterWriter as rustc_errors[36b66c2fc792656]::translation::Translate>::translate_message
  12:     0x7f906c5fddee - <rustc_errors[36b66c2fc792656]::emitter::EmitterWriter>::emit_message_default
  13:     0x7f906c602ae8 - <rustc_errors[36b66c2fc792656]::emitter::EmitterWriter>::emit_messages_default
  14:     0x7f906c5fbc7a - <rustc_errors[36b66c2fc792656]::emitter::EmitterWriter as rustc_errors[36b66c2fc792656]::emitter::Emitter>::emit_diagnostic
  15:     0x7f906c6157dc - <rustc_errors[36b66c2fc792656]::json::Diagnostic>::from_errors_diagnostic
  16:     0x7f906c613a1c - <rustc_errors[36b66c2fc792656]::json::JsonEmitter as rustc_errors[36b66c2fc792656]::emitter::Emitter>::emit_diagnostic
  17:     0x7f906c66bc20 - <rustc_errors[36b66c2fc792656]::HandlerInner>::emit_diagnostic
  18:     0x7f906c666916 - <rustc_errors[36b66c2fc792656]::ErrorGuaranteed as rustc_errors[36b66c2fc792656]::diagnostic_builder::EmissionGuarantee>::diagnostic_builder_emit_producing_guarantee
  19:     0x7f906a17e9d8 - <rustc_resolve[bf4a07c12856838a]::Resolver>::report_error
  20:     0x7f906a0e7bdb - <rustc_resolve[bf4a07c12856838a]::late::LateResolutionVisitor>::resolve_impl_item
  21:     0x7f906a0d492e - <rustc_resolve[bf4a07c12856838a]::late::LateResolutionVisitor>::resolve_item
  22:     0x7f906a0a6563 - <rustc_resolve[bf4a07c12856838a]::late::LateResolutionVisitor as rustc_ast[122c12a20a8fbf89]::visit::Visitor>::visit_item
  23:     0x7f906a1e0a8a - rustc_ast[122c12a20a8fbf89]::visit::walk_item::<rustc_resolve[bf4a07c12856838a]::late::LateResolutionVisitor>
  24:     0x7f906a0cb0d4 - <rustc_resolve[bf4a07c12856838a]::late::LateResolutionVisitor>::resolve_item
  25:     0x7f906a0a6563 - <rustc_resolve[bf4a07c12856838a]::late::LateResolutionVisitor as rustc_ast[122c12a20a8fbf89]::visit::Visitor>::visit_item
  26:     0x7f906a194469 - <rustc_resolve[bf4a07c12856838a]::Resolver>::late_resolve_crate
  27:     0x7f906a14a4a1 - <rustc_session[2b101afcea94c708]::session::Session>::time::<(), <rustc_resolve[bf4a07c12856838a]::Resolver>::resolve_crate::{closure#0}>
  28:     0x7f90692f0fbc - <rustc_interface[192311701cb9680e]::passes::boxed_resolver::BoxedResolver>::access::<<rustc_interface[192311701cb9680e]::queries::Queries>::expansion::{closure#0}::{closure#0}, core[c05275981590265e]::result::Result<rustc_ast[122c12a20a8fbf89]::ast::Crate, rustc_errors[36b66c2fc792656]::ErrorGuaranteed>>
  29:     0x7f90692b9a6d - <rustc_interface[192311701cb9680e]::queries::Queries>::expansion
  30:     0x7f9069152fbf - <rustc_interface[192311701cb9680e]::interface::Compiler>::enter::<rustc_driver[4f490e714d838722]::run_compiler::{closure#1}::{closure#2}, core[c05275981590265e]::result::Result<core[c05275981590265e]::option::Option<rustc_interface[192311701cb9680e]::queries::Linker>, rustc_errors[36b66c2fc792656]::ErrorGuaranteed>>
  31:     0x7f9069130e52 - rustc_span[d84aeba3e80e3890]::with_source_map::<core[c05275981590265e]::result::Result<(), rustc_errors[36b66c2fc792656]::ErrorGuaranteed>, rustc_interface[192311701cb9680e]::interface::create_compiler_and_run<core[c05275981590265e]::result::Result<(), rustc_errors[36b66c2fc792656]::ErrorGuaranteed>, rustc_driver[4f490e714d838722]::run_compiler::{closure#1}>::{closure#1}>
  32:     0x7f9069154d44 - rustc_interface[192311701cb9680e]::interface::create_compiler_and_run::<core[c05275981590265e]::result::Result<(), rustc_errors[36b66c2fc792656]::ErrorGuaranteed>, rustc_driver[4f490e714d838722]::run_compiler::{closure#1}>
  33:     0x7f906912a0b1 - <scoped_tls[fccb67263abf41ed]::ScopedKey<rustc_span[d84aeba3e80e3890]::SessionGlobals>>::set::<rustc_interface[192311701cb9680e]::interface::run_compiler<core[c05275981590265e]::result::Result<(), rustc_errors[36b66c2fc792656]::ErrorGuaranteed>, rustc_driver[4f490e714d838722]::run_compiler::{closure#1}>::{closure#0}, core[c05275981590265e]::result::Result<(), rustc_errors[36b66c2fc792656]::ErrorGuaranteed>>
  34:     0x7f90691ea810 - std[bc53bdb3d4e0c2d1]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[192311701cb9680e]::util::run_in_thread_pool_with_globals<rustc_interface[192311701cb9680e]::interface::run_compiler<core[c05275981590265e]::result::Result<(), rustc_errors[36b66c2fc792656]::ErrorGuaranteed>, rustc_driver[4f490e714d838722]::run_compiler::{closure#1}>::{closure#0}, core[c05275981590265e]::result::Result<(), rustc_errors[36b66c2fc792656]::ErrorGuaranteed>>::{closure#0}, core[c05275981590265e]::result::Result<(), rustc_errors[36b66c2fc792656]::ErrorGuaranteed>>
  35:     0x7f90691ec0a8 - <<std[bc53bdb3d4e0c2d1]::thread::Builder>::spawn_unchecked_<rustc_interface[192311701cb9680e]::util::run_in_thread_pool_with_globals<rustc_interface[192311701cb9680e]::interface::run_compiler<core[c05275981590265e]::result::Result<(), rustc_errors[36b66c2fc792656]::ErrorGuaranteed>, rustc_driver[4f490e714d838722]::run_compiler::{closure#1}>::{closure#0}, core[c05275981590265e]::result::Result<(), rustc_errors[36b66c2fc792656]::ErrorGuaranteed>>::{closure#0}, core[c05275981590265e]::result::Result<(), rustc_errors[36b66c2fc792656]::ErrorGuaranteed>>::{closure#1} as core[c05275981590265e]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  36:     0x7f9068800255 - std::sys::unix::thread::Thread::new::thread_start::h166f452f4cbe9a52
  37:     0x7f90685a3b43 - <unknown>
  38:     0x7f9068635a00 - <unknown>
  39:                0x0 - <unknown>
error: internal compiler error: unexpected panic

note: the compiler unexpectedly panicked. this is a bug.


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

note: rustc 1.65.0-nightly (06dc5cf1c 2022-09-03) running on x86_64-unknown-linux-gnu

note: compiler flags: --crate-type lib -C opt-level=3 -C embed-bitcode=no -C debuginfo=0 -C debug-assertions=on -Z unstable-options -C symbol-mangling-version=v0 -Z unstable-options -Z macro-backtrace -C link-args=-Wl,-z,origin -C link-args=-Wl,-rpath,$ORIGIN/../lib -C split-debuginfo=off -Z binary-dep-depinfo -Z tls-model=initial-exec
note: some of the compiler flags provided by cargo are hidden

query stack during panic:
end of query stack
---
This PR updated 'src/tools/miri', verifying if status is 'test-pass'...

We detected that this PR updated 'miri', but its tests failed.

If you do intend to update 'miri', please check the error messages above and
commit another update.

If you do NOT intend to update 'miri', please ensure you did not accidentally
change the submodule at 'src/tools/miri'. You may ask your reviewer for the

rust-log-analyzer avatar Sep 03 '22 21:09 rust-log-analyzer

The job x86_64-gnu-llvm-13 failed! Check out the build log: (web) (plain)

Click to see the possible cause of the failure (guessed by this bot)
Check compiletest suite=ui mode=ui (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)

running 13471 tests
........................................................................................ 88/13471
....................................................F.....................iiiiiiiiiiiiii 176/13471
.....................i.................i......F....F.................................... 264/13471
........................................................................................ 440/13471
........................................................................................ 528/13471
........................................................................................ 616/13471
........................................................................................ 704/13471
---
........................................................................................ 2552/13471
........................................................................................ 2640/13471
........................................................................................ 2728/13471
........................................................................................ 2816/13471
....................................................F................................... 2904/13471
...................................FFF.............................................F.... 2992/13471
.......i................................................................................ 3168/13471
........................................................................................ 3256/13471
.......................................................................iiiii............ 3344/13471
........................................................................................ 3432/13471
........................................................................................ 3432/13471
.F..F................................................................................... 3520/13471
........................................................................................ 3608/13471
.......................F.........................F............................F......F.F 3696/13471
FFF.....F...F..FF....................................................................... 3784/13471
.i..........i..........i................................................................ 3960/13471
......................................................................................ii 4048/13471
........................................................................................ 4136/13471
........................................................................................ 4136/13471
................................................i...F................................... 4224/13471
........................................................................................ 4400/13471
.......................F................................................................ 4488/13471
............................................F........................................... 4576/13471
........................................................................................ 4664/13471
........................................................................................ 4664/13471
................................................F..F..................F.FF.F............ 4752/13471
........................................................................................ 4840/13471
.....F...........................................................F...................... 4928/13471
........................................................................................ 5016/13471
.................................................................F.......F.............. 5104/13471
.......i..................................................................i............. 5280/13471
........................................................................................ 5368/13471
........................................................................................ 5456/13471
........................................................................................ 5544/13471
........................................................................................ 5544/13471
........................................................................................ 5632/13471
........................................................................................ 5720/13471
........................................................................................ 5808/13471
........................................................................................ 5896/13471
....................F.................F................................................. 5984/13471
.......................F.F......F....................................................... 6072/13471
...............................................F.............................F.F........ 6160/13471
........................................................................................ 6248/13471
......................................F................................................F 6336/13471
.............F.......................................................................... 6512/13471
...........................................................i............................ 6600/13471
...........................................................i............................ 6600/13471
..........................F.............F...............................F............... 6688/13471
....................................i.....F..........................F.................. 6776/13471
........................................................................................ 6952/13471
.................F.........................................i...i........................ 7040/13471
.................i..................i.............i..................................... 7128/13471
....................i................................................................... 7216/13471
---
........................................................................................ 7744/13471
.................................................................ii..................... 7832/13471
........................................................................................ 7920/13471
........................................................................................ 8008/13471
...............................F...............................F.................ii..... 8096/13471
........................................................................................ 8272/13471
........................................................................................ 8360/13471
........................................................................................ 8448/13471
........................................................................................ 8536/13471
........................................................................................ 8536/13471
.......................................i..ii......F..................................... 8624/13471
..................ii.................................................................... 8712/13471
........................iiii.....F..................F................................... 8800/13471
...................i..................................F................................i 8976/13471
........................................................................................ 9064/13471
....................................................................................i... 9152/13471
............................F........................................................... 9240/13471
---
..........................................F............................................. 9944/13471
..............ii........F......i........................................................ 10032/13471
........................................................................................ 10120/13471
........................................................................................ 10208/13471
.................................................................................F...... 10296/13471
................................................................F.................FF...F 10384/13471
..........................................F............................................. 10472/13471
....F..F................................................................................ 10560/13471
....F................................................................................... 10648/13471
........................................................................................ 10824/13471
..........i............................................................................. 10912/13471
....................iiiiii.i..iiiiii.i.................................................. 11000/13471
............................................................................FF.......... 11088/13471
---
........................................................................................ 11528/13471
........................................................................................ 11616/13471
........................................................................................ 11704/13471
........................................................................................ 11792/13471
................F..........F..........................................................i. 11880/13471
........................................................................................ 12056/13471
........................................................................................ 12144/13471
........................................................................................ 12144/13471
....F.....................................................................F............. 12232/13471
..................F..................................................................... 12320/13471
........................................................................................ 12496/13471
........................................................................................ 12584/13471
.........................i.............................................................. 12672/13471
......................................................................F................. 12760/13471
......................................................................F................. 12760/13471
........................................................................................ 12848/13471
............F........................................................................... 12936/13471
........................................................................................ 13024/13471
........................................................................................ 13112/13471
........................................................................................ 13200/13471
........................................................................................ 13288/13471
...............................F.FF.F.......................................iii......... 13376/13471
.......
failures:

---- [ui] src/test/ui/array-slice-vec/subslice-only-once-semantic-restriction.rs stdout ----
---- [ui] src/test/ui/array-slice-vec/subslice-only-once-semantic-restriction.rs stdout ----

error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit status: 101
command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/array-slice-vec/subslice-only-once-semantic-restriction.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/array-slice-vec/subslice-only-once-semantic-restriction" "-A" "unused" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/array-slice-vec/subslice-only-once-semantic-restriction/auxiliary"
stdout: none
--- stderr -------------------------------
thread 'rustc' panicked at 'identifier: "resolve_ident_bound_more_than_once_in_same_pattern", attr: None, args: FluentArgs([("identifier", String("tail"))]), errors: [ResolverError(Reference(Message { id: "identifier", attribute: None }))]', compiler/rustc_errors/src/translation.rs:91:17
   0:     0x7f2bd97aa15c - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h3aa99dd858e8a758
   1:     0x7f2bd9812c98 - core::fmt::write::hecd54e75f30f9663
   2:     0x7f2bd979a9d1 - std::io::Write::write_fmt::h8988434cba967fd2
   2:     0x7f2bd979a9d1 - std::io::Write::write_fmt::h8988434cba967fd2
   3:     0x7f2bd97ad14e - std::panicking::default_hook::{{closure}}::haa1da06bdd4cfdeb
   4:     0x7f2bd97ace17 - std::panicking::default_hook::hac6cf1535750f7c5
   5:     0x7f2bda16dbd4 - rustc_driver[ee9f1d9dabd2d9ea]::DEFAULT_HOOK::{closure#0}::{closure#0}
   6:     0x7f2bd97ad901 - std::panicking::rust_panic_with_hook::h9901cbb7ff23ab55
   7:     0x7f2bd97ad727 - std::panicking::begin_panic_handler::{{closure}}::h4211a6156a7c84d8
   8:     0x7f2bd97aa6d4 - std::sys_common::backtrace::__rust_end_short_backtrace::he74bf58554f22649
   9:     0x7f2bd97ad3f2 - rust_begin_unwind
  10:     0x7f2bd975de43 - core::panicking::panic_fmt::h187bac1c4ad133a7
  11:     0x7f2bdcedff6a - <rustc_errors[6c22f8d2d30a3209]::emitter::EmitterWriter as rustc_errors[6c22f8d2d30a3209]::translation::Translate>::translate_message
  12:     0x7f2bdced5552 - <rustc_errors[6c22f8d2d30a3209]::emitter::EmitterWriter>::emit_message_default
  13:     0x7f2bdced3072 - <rustc_errors[6c22f8d2d30a3209]::emitter::EmitterWriter as rustc_errors[6c22f8d2d30a3209]::emitter::Emitter>::emit_diagnostic
  14:     0x7f2bdcee8ec6 - <rustc_errors[6c22f8d2d30a3209]::json::Diagnostic>::from_errors_diagnostic
  15:     0x7f2bdcee7abc - <rustc_errors[6c22f8d2d30a3209]::json::JsonEmitter as rustc_errors[6c22f8d2d30a3209]::emitter::Emitter>::emit_diagnostic
  16:     0x7f2bdcf2cea8 - <rustc_errors[6c22f8d2d30a3209]::HandlerInner>::emit_diagnostic
  17:     0x7f2bdcf28b56 - <rustc_errors[6c22f8d2d30a3209]::ErrorGuaranteed as rustc_errors[6c22f8d2d30a3209]::diagnostic_builder::EmissionGuarantee>::diagnostic_builder_emit_producing_guarantee
  18:     0x7f2bdaf51dd8 - <rustc_resolve[c6b27bf52c28fd68]::Resolver>::report_error
  19:     0x7f2bdaecf497 - <rustc_resolve[c6b27bf52c28fd68]::late::LateResolutionVisitor>::fresh_binding
  20:     0x7f2bdb002cb0 - <rustc_ast[b19f54aad5f6fd9b]::ast::Pat>::walk::<<rustc_resolve[c6b27bf52c28fd68]::late::LateResolutionVisitor>::resolve_pattern_inner::{closure#0}>
  21:     0x7f2bdb00343c - <rustc_ast[b19f54aad5f6fd9b]::ast::Pat>::walk::<<rustc_resolve[c6b27bf52c28fd68]::late::LateResolutionVisitor>::resolve_pattern_inner::{closure#0}>
  22:     0x7f2bdaecf0f6 - <rustc_resolve[c6b27bf52c28fd68]::late::LateResolutionVisitor>::resolve_pattern_top
  23:     0x7f2bdae94dc2 - <rustc_resolve[c6b27bf52c28fd68]::late::LateResolutionVisitor as rustc_ast[b19f54aad5f6fd9b]::visit::Visitor>::visit_arm
  24:     0x7f2bdaf96d4a - rustc_ast[b19f54aad5f6fd9b]::visit::walk_expr::<rustc_resolve[c6b27bf52c28fd68]::late::LateResolutionVisitor>
  25:     0x7f2bdaed66c1 - <rustc_resolve[c6b27bf52c28fd68]::late::LateResolutionVisitor>::resolve_expr
  26:     0x7f2bdae951df - <rustc_resolve[c6b27bf52c28fd68]::late::LateResolutionVisitor as rustc_ast[b19f54aad5f6fd9b]::visit::Visitor>::visit_block
  27:     0x7f2bdaea7f04 - <rustc_resolve[c6b27bf52c28fd68]::late::LateResolutionVisitor as rustc_ast[b19f54aad5f6fd9b]::visit::Visitor>::visit_fn::{closure#1}::{closure#0}
  28:     0x7f2bdaea21cc - <rustc_resolve[c6b27bf52c28fd68]::late::LateResolutionVisitor as rustc_ast[b19f54aad5f6fd9b]::visit::Visitor>::visit_fn
  29:     0x7f2bdaf9ad9e - rustc_ast[b19f54aad5f6fd9b]::visit::walk_item::<rustc_resolve[c6b27bf52c28fd68]::late::LateResolutionVisitor>
  30:     0x7f2bdaebaa41 - <rustc_resolve[c6b27bf52c28fd68]::late::LateResolutionVisitor>::resolve_item
  31:     0x7f2bdae946c7 - <rustc_resolve[c6b27bf52c28fd68]::late::LateResolutionVisitor as rustc_ast[b19f54aad5f6fd9b]::visit::Visitor>::visit_item
  32:     0x7f2bdaf810dd - rustc_ast[b19f54aad5f6fd9b]::visit::walk_crate::<rustc_resolve[c6b27bf52c28fd68]::late::LateResolutionVisitor>
  33:     0x7f2bdaf61dce - <rustc_resolve[c6b27bf52c28fd68]::Resolver>::late_resolve_crate
  34:     0x7f2bdaf26435 - <rustc_session[b0411ee4f4f3e222]::session::Session>::time::<(), <rustc_resolve[c6b27bf52c28fd68]::Resolver>::resolve_crate::{closure#0}>
  35:     0x7f2bda2ab7d0 - <rustc_interface[b6eacd79ecd74a10]::passes::boxed_resolver::BoxedResolver>::access::<<rustc_interface[b6eacd79ecd74a10]::queries::Queries>::expansion::{closure#0}::{closure#0}, core[23cec6303e7deeaf]::result::Result<rustc_ast[b19f54aad5f6fd9b]::ast::Crate, rustc_errors[6c22f8d2d30a3209]::ErrorGuaranteed>>
  36:     0x7f2bda2909a6 - <rustc_interface[b6eacd79ecd74a10]::queries::Queries>::expansion
  37:     0x7f2bda1752b0 - <rustc_interface[b6eacd79ecd74a10]::interface::Compiler>::enter::<rustc_driver[ee9f1d9dabd2d9ea]::run_compiler::{closure#1}::{closure#2}, core[23cec6303e7deeaf]::result::Result<core[23cec6303e7deeaf]::option::Option<rustc_interface[b6eacd79ecd74a10]::queries::Linker>, rustc_errors[6c22f8d2d30a3209]::ErrorGuaranteed>>
  38:     0x7f2bda15cc31 - rustc_span[4802920ea0196ebe]::with_source_map::<core[23cec6303e7deeaf]::result::Result<(), rustc_errors[6c22f8d2d30a3209]::ErrorGuaranteed>, rustc_interface[b6eacd79ecd74a10]::interface::create_compiler_and_run<core[23cec6303e7deeaf]::result::Result<(), rustc_errors[6c22f8d2d30a3209]::ErrorGuaranteed>, rustc_driver[ee9f1d9dabd2d9ea]::run_compiler::{closure#1}>::{closure#1}>
  39:     0x7f2bda18c901 - rustc_interface[b6eacd79ecd74a10]::interface::create_compiler_and_run::<core[23cec6303e7deeaf]::result::Result<(), rustc_errors[6c22f8d2d30a3209]::ErrorGuaranteed>, rustc_driver[ee9f1d9dabd2d9ea]::run_compiler::{closure#1}>
  40:     0x7f2bda158662 - <scoped_tls[c7387018addcf5be]::ScopedKey<rustc_span[4802920ea0196ebe]::SessionGlobals>>::set::<rustc_interface[b6eacd79ecd74a10]::interface::run_compiler<core[23cec6303e7deeaf]::result::Result<(), rustc_errors[6c22f8d2d30a3209]::ErrorGuaranteed>, rustc_driver[ee9f1d9dabd2d9ea]::run_compiler::{closure#1}>::{closure#0}, core[23cec6303e7deeaf]::result::Result<(), rustc_errors[6c22f8d2d30a3209]::ErrorGuaranteed>>
  41:     0x7f2bda1d396f - std[d52d74294e7af5c7]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[b6eacd79ecd74a10]::util::run_in_thread_pool_with_globals<rustc_interface[b6eacd79ecd74a10]::interface::run_compiler<core[23cec6303e7deeaf]::result::Result<(), rustc_errors[6c22f8d2d30a3209]::ErrorGuaranteed>, rustc_driver[ee9f1d9dabd2d9ea]::run_compiler::{closure#1}>::{closure#0}, core[23cec6303e7deeaf]::result::Result<(), rustc_errors[6c22f8d2d30a3209]::ErrorGuaranteed>>::{closure#0}, core[23cec6303e7deeaf]::result::Result<(), rustc_errors[6c22f8d2d30a3209]::ErrorGuaranteed>>
  42:     0x7f2bda15ee5e - std[d52d74294e7af5c7]::panicking::try::<core[23cec6303e7deeaf]::result::Result<(), rustc_errors[6c22f8d2d30a3209]::ErrorGuaranteed>, core[23cec6303e7deeaf]::panic::unwind_safe::AssertUnwindSafe<<std[d52d74294e7af5c7]::thread::Builder>::spawn_unchecked_<rustc_interface[b6eacd79ecd74a10]::util::run_in_thread_pool_with_globals<rustc_interface[b6eacd79ecd74a10]::interface::run_compiler<core[23cec6303e7deeaf]::result::Result<(), rustc_errors[6c22f8d2d30a3209]::ErrorGuaranteed>, rustc_driver[ee9f1d9dabd2d9ea]::run_compiler::{closure#1}>::{closure#0}, core[23cec6303e7deeaf]::result::Result<(), rustc_errors[6c22f8d2d30a3209]::ErrorGuaranteed>>::{closure#0}, core[23cec6303e7deeaf]::result::Result<(), rustc_errors[6c22f8d2d30a3209]::ErrorGuaranteed>>::{closure#1}::{closure#0}>>
  43:     0x7f2bda1d5190 - <<std[d52d74294e7af5c7]::thread::Builder>::spawn_unchecked_<rustc_interface[b6eacd79ecd74a10]::util::run_in_thread_pool_with_globals<rustc_interface[b6eacd79ecd74a10]::interface::run_compiler<core[23cec6303e7deeaf]::result::Result<(), rustc_errors[6c22f8d2d30a3209]::ErrorGuaranteed>, rustc_driver[ee9f1d9dabd2d9ea]::run_compiler::{closure#1}>::{closure#0}, core[23cec6303e7deeaf]::result::Result<(), rustc_errors[6c22f8d2d30a3209]::ErrorGuaranteed>>::{closure#0}, core[23cec6303e7deeaf]::result::Result<(), rustc_errors[6c22f8d2d30a3209]::ErrorGuaranteed>>::{closure#1} as core[23cec6303e7deeaf]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  44:     0x7f2bd97ba675 - std::sys::unix::thread::Thread::new::thread_start::hd7a98ba404bbf168
  45:     0x7f2bd9556b43 - <unknown>
  46:     0x7f2bd95e8a00 - <unknown>
  47:                0x0 - <unknown>
error: internal compiler error: unexpected panic

note: the compiler unexpectedly panicked. this is a bug.


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

note: rustc 1.65.0-nightly (7fffa41b3 2022-09-03) running on x86_64-unknown-linux-gnu

note: compiler flags: -Z threads=1 -C codegen-units=1 -Z ui-testing -Z deduplicate-diagnostics=no -C strip=debuginfo -C prefer-dynamic -C rpath -C debuginfo=0
query stack during panic:
end of query stack
------------------------------------------



---- [ui] src/test/ui/asm/type-check-1.rs stdout ----

error: Error: expected failure status (Some(1)) but received status Some(101).
Some tests failed in compiletest suite=ui mode=ui host=x86_64-unknown-linux-gnu target=x86_64-unknown-linux-gnu
Some tests failed in compiletest suite=ui mode=ui host=x86_64-unknown-linux-gnu target=x86_64-unknown-linux-gnu
command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/asm/type-check-1.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/asm/type-check-1" "-A" "unused" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/asm/type-check-1/auxiliary"
stdout: none
--- stderr -------------------------------
thread 'rustc' panicked at 'identifier: "resolve_attempt_to_use_non_constant_value_in_constant_with_suggestion", attr: None, args: FluentArgs([("current", String("let")), ("ident", String("x")), ("suggestion", String("const"))]), errors: [ResolverError(Reference(Message { id: "suggestion", attribute: None })), ResolverError(Reference(Message { id: "current", attribute: None }))]', compiler/rustc_errors/src/translation.rs:91:17
stack backtrace:
   0:     0x7fb5c081215c - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h3aa99dd858e8a758
   1:     0x7fb5c087ac98 - core::fmt::write::hecd54e75f30f9663
   2:     0x7fb5c08029d1 - std::io::Write::write_fmt::h8988434cba967fd2
   3:     0x7fb5c081514e - std::panicking::default_hook::{{closure}}::haa1da06bdd4cfdeb
   4:     0x7fb5c0814e17 - std::panicking::default_hook::hac6cf1535750f7c5
   5:     0x7fb5c11d5bd4 - rustc_driver[ee9f1d9dabd2d9ea]::DEFAULT_HOOK::{closure#0}::{closure#0}
   6:     0x7fb5c0815901 - std::panicking::rust_panic_with_hook::h9901cbb7ff23ab55
   7:     0x7fb5c0815727 - std::panicking::begin_panic_handler::{{closure}}::h4211a6156a7c84d8
   8:     0x7fb5c08126d4 - std::sys_common::backtrace::__rust_end_short_backtrace::he74bf58554f22649
   9:     0x7fb5c08153f2 - rust_begin_unwind
  10:     0x7fb5c07c5e43 - core::panicking::panic_fmt::h187bac1c4ad133a7
  11:     0x7fb5c3f47f6a - <rustc_errors[6c22f8d2d30a3209]::emitter::EmitterWriter as rustc_errors[6c22f8d2d30a3209]::translation::Translate>::translate_message
  12:     0x7fb5c3f38d3c - <rustc_errors[6c22f8d2d30a3209]::emitter::EmitterWriter as rustc_errors[6c22f8d2d30a3209]::emitter::Emitter>::primary_span_formatted
  13:     0x7fb5c3f3ad10 - <rustc_errors[6c22f8d2d30a3209]::emitter::EmitterWriter as rustc_errors[6c22f8d2d30a3209]::emitter::Emitter>::emit_diagnostic
  14:     0x7fb5c3f50ec6 - <rustc_errors[6c22f8d2d30a3209]::json::Diagnostic>::from_errors_diagnostic
  15:     0x7fb5c3f4fabc - <rustc_errors[6c22f8d2d30a3209]::json::JsonEmitter as rustc_errors[6c22f8d2d30a3209]::emitter::Emitter>::emit_diagnostic
  16:     0x7fb5c3f94ea8 - <rustc_errors[6c22f8d2d30a3209]::HandlerInner>::emit_diagnostic
  17:     0x7fb5c3f90b56 - <rustc_errors[6c22f8d2d30a3209]::ErrorGuaranteed as rustc_errors[6c22f8d2d30a3209]::diagnostic_builder::EmissionGuarantee>::diagnostic_builder_emit_producing_guarantee
  18:     0x7fb5c1fb9dd8 - <rustc_resolve[c6b27bf52c28fd68]::Resolver>::report_error
  19:     0x7fb5c1fe03cb - <rustc_resolve[c6b27bf52c28fd68]::Resolver>::resolve_ident_in_lexical_scope
  20:     0x7fb5c1fc5e53 - <rustc_resolve[c6b27bf52c28fd68]::Resolver>::resolve_path_with_ribs
  21:     0x7fb5c1f3824b - <rustc_resolve[c6b27bf52c28fd68]::late::LateResolutionVisitor>::smart_resolve_path_fragment
  22:     0x7fb5c1f37cb9 - <rustc_resolve[c6b27bf52c28fd68]::late::LateResolutionVisitor>::smart_resolve_path
  23:     0x7fb5c1f3e6b6 - <rustc_resolve[c6b27bf52c28fd68]::late::LateResolutionVisitor>::resolve_expr
  24:     0x7fb5c1f3d526 - <rustc_resolve[c6b27bf52c28fd68]::late::LateResolutionVisitor>::resolve_inline_const
  25:     0x7fb5c1f18026 - <rustc_resolve[c6b27bf52c28fd68]::late::LateResolutionVisitor as rustc_ast[b19f54aad5f6fd9b]::visit::Visitor>::visit_inline_asm
  26:     0x7fb5c1f3e6c1 - <rustc_resolve[c6b27bf52c28fd68]::late::LateResolutionVisitor>::resolve_expr
  27:     0x7fb5c1efd1df - <rustc_resolve[c6b27bf52c28fd68]::late::LateResolutionVisitor as rustc_ast[b19f54aad5f6fd9b]::visit::Visitor>::visit_block
  28:     0x7fb5c1f3e68c - <rustc_resolve[c6b27bf52c28fd68]::late::LateResolutionVisitor>::resolve_expr
  29:     0x7fb5c1efd1df - <rustc_resolve[c6b27bf52c28fd68]::late::LateResolutionVisitor as rustc_ast[b19f54aad5f6fd9b]::visit::Visitor>::visit_block
  30:     0x7fb5c1f0ff04 - <rustc_resolve[c6b27bf52c28fd68]::late::LateResolutionVisitor as rustc_ast[b19f54aad5f6fd9b]::visit::Visitor>::visit_fn::{closure#1}::{closure#0}
  31:     0x7fb5c1f0a1cc - <rustc_resolve[c6b27bf52c28fd68]::late::LateResolutionVisitor as rustc_ast[b19f54aad5f6fd9b]::visit::Visitor>::visit_fn
  32:     0x7fb5c2002d9e - rustc_ast[b19f54aad5f6fd9b]::visit::walk_item::<rustc_resolve[c6b27bf52c28fd68]::late::LateResolutionVisitor>
  33:     0x7fb5c1f22a41 - <rustc_resolve[c6b27bf52c28fd68]::late::LateResolutionVisitor>::resolve_item
  34:     0x7fb5c1efc6c7 - <rustc_resolve[c6b27bf52c28fd68]::late::LateResolutionVisitor as rustc_ast[b19f54aad5f6fd9b]::visit::Visitor>::visit_item
  35:     0x7fb5c1fe90dd - rustc_ast[b19f54aad5f6fd9b]::visit::walk_crate::<rustc_resolve[c6b27bf52c28fd68]::late::LateResolutionVisitor>
  36:     0x7fb5c1fc9dce - <rustc_resolve[c6b27bf52c28fd68]::Resolver>::late_resolve_crate
  37:     0x7fb5c1f8e435 - <rustc_session[b0411ee4f4f3e222]::session::Session>::time::<(), <rustc_resolve[c6b27bf52c28fd68]::Resolver>::resolve_crate::{closure#0}>
  38:     0x7fb5c13137d0 - <rustc_interface[b6eacd79ecd74a10]::passes::boxed_resolver::BoxedResolver>::access::<<rustc_interface[b6eacd79ecd74a10]::queries::Queries>::expansion::{closure#0}::{closure#0}, core[23cec6303e7deeaf]::result::Result<rustc_ast[b19f54aad5f6fd9b]::ast::Crate, rustc_errors[6c22f8d2d30a3209]::ErrorGuaranteed>>
  39:     0x7fb5c12f89a6 - <rustc_interface[b6eacd79ecd74a10]::queries::Queries>::expansion
  40:     0x7fb5c11dd2b0 - <rustc_interface[b6eacd79ecd74a10]::interface::Compiler>::enter::<rustc_driver[ee9f1d9dabd2d9ea]::run_compiler::{closure#1}::{closure#2}, core[23cec6303e7deeaf]::result::Result<core[23cec6303e7deeaf]::option::Option<rustc_interface[b6eacd79ecd74a10]::queries::Linker>, rustc_errors[6c22f8d2d30a3209]::ErrorGuaranteed>>
  41:     0x7fb5c11c4c31 - rustc_span[4802920ea0196ebe]::with_source_map::<core[23cec6303e7deeaf]::result::Result<(), rustc_errors[6c22f8d2d30a3209]::ErrorGuaranteed>, rustc_interface[b6eacd79ecd74a10]::interface::create_compiler_and_run<core[23cec6303e7deeaf]::result::Result<(), rustc_errors[6c22f8d2d30a3209]::ErrorGuaranteed>, rustc_driver[ee9f1d9dabd2d9ea]::run_compiler::{closure#1}>::{closure#1}>
  42:     0x7fb5c11f4901 - rustc_interface[b6eacd79ecd74a10]::interface::create_compiler_and_run::<core[23cec6303e7deeaf]::result::Result<(), rustc_errors[6c22f8d2d30a3209]::ErrorGuaranteed>, rustc_driver[ee9f1d9dabd2d9ea]::run_compiler::{closure#1}>
  43:     0x7fb5c11c0662 - <scoped_tls[c7387018addcf5be]::ScopedKey<rustc_span[4802920ea0196ebe]::SessionGlobals>>::set::<rustc_interface[b6eacd79ecd74a10]::interface::run_compiler<core[23cec6303e7deeaf]::result::Result<(), rustc_errors[6c22f8d2d30a3209]::ErrorGuaranteed>, rustc_driver[ee9f1d9dabd2d9ea]::run_compiler::{closure#1}>::{closure#0}, core[23cec6303e7deeaf]::result::Result<(), rustc_errors[6c22f8d2d30a3209]::ErrorGuaranteed>>
  44:     0x7fb5c123b96f - std[d52d74294e7af5c7]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[b6eacd79ecd74a10]::util::run_in_thread_pool_with_globals<rustc_interface[b6eacd79ecd74a10]::interface::run_compiler<core[23cec6303e7deeaf]::result::Result<(), rustc_errors[6c22f8d2d30a3209]::ErrorGuaranteed>, rustc_driver[ee9f1d9dabd2d9ea]::run_compiler::{closure#1}>::{closure#0}, core[23cec6303e7deeaf]::result::Result<(), rustc_errors[6c22f8d2d30a3209]::ErrorGuaranteed>>::{closure#0}, core[23cec6303e7deeaf]::result::Result<(), rustc_errors[6c22f8d2d30a3209]::ErrorGuaranteed>>
  45:     0x7fb5c11c6e5e - std[d52d74294e7af5c7]::panicking::try::<core[23cec6303e7deeaf]::result::Result<(), rustc_errors[6c22f8d2d30a3209]::ErrorGuaranteed>, core[23cec6303e7deeaf]::panic::unwind_safe::AssertUnwindSafe<<std[d52d74294e7af5c7]::thread::Builder>::spawn_unchecked_<rustc_interface[b6eacd79ecd74a10]::util::run_in_thread_pool_with_globals<rustc_interface[b6eacd79ecd74a10]::interface::run_compiler<core[23cec6303e7deeaf]::result::Result<(), rustc_errors[6c22f8d2d30a3209]::ErrorGuaranteed>, rustc_driver[ee9f1d9dabd2d9ea]::run_compiler::{closure#1}>::{closure#0}, core[23cec6303e7deeaf]::result::Result<(), rustc_errors[6c22f8d2d30a3209]::ErrorGuaranteed>>::{closure#0}, core[23cec6303e7deeaf]::result::Result<(), rustc_errors[6c22f8d2d30a3209]::ErrorGuaranteed>>::{closure#1}::{closure#0}>>
  46:     0x7fb5c123d190 - <<std[d52d74294e7af5c7]::thread::Builder>::spawn_unchecked_<rustc_interface[b6eacd79ecd74a10]::util::run_in_thread_pool_with_globals<rustc_interface[b6eacd79ecd74a10]::interface::run_compiler<core[23cec6303e7deeaf]::result::Result<(), rustc_errors[6c22f8d2d30a3209]::ErrorGuaranteed>, rustc_driver[ee9f1d9dabd2d9ea]::run_compiler::{closure#1}>::{closure#0}, core[23cec6303e7deeaf]::result::Result<(), rustc_errors[6c22f8d2d30a3209]::ErrorGuaranteed>>::{closure#0}, core[23cec6303e7deeaf]::result::Result<(), rustc_errors[6c22f8d2d30a3209]::ErrorGuaranteed>>::{closure#1} as core[23cec6303e7deeaf]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  47:     0x7fb5c0822675 - std::sys::unix::thread::Thread::new::thread_start::hd7a98ba404bbf168
  48:     0x7fb5c05beb43 - <unknown>
  49:     0x7fb5c0650a00 - <unknown>
  50:                0x0 - <unknown>
error: internal compiler error: unexpected panic

note: the compiler unexpectedly panicked. this is a bug.


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

note: rustc 1.65.0-nightly (7fffa41b3 2022-09-03) running on x86_64-unknown-linux-gnu

note: compiler flags: -Z threads=1 -C codegen-units=1 -Z ui-testing -Z deduplicate-diagnostics=no -C strip=debuginfo -C prefer-dynamic -C rpath -C debuginfo=0
query stack during panic:
end of query stack
------------------------------------------



---- [ui] src/test/ui/asm/x86_64/parse-error.rs stdout ----

error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit status: 101
command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/asm/x86_64/parse-error.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/asm/x86_64/parse-error" "-A" "unused" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/asm/x86_64/parse-error/auxiliary"
stdout: none
--- stderr -------------------------------
error: requires at least a template string argument
   |
LL |         asm!();
   |         ^^^^^^

---
   |
LL |         asm!("{}" foo);
   |                   ^^^ expected `,`

error: expected operand, clobber_abi, options, or additional template string
   |
LL |         asm!("{}", foo);
LL |         asm!("{}", foo);
   |                    ^^^ expected operand, clobber_abi, options, or additional template string
error: expected `(`, found `foo`
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:19:23
   |
LL |         asm!("{}", in foo);
LL |         asm!("{}", in foo);
   |                       ^^^ expected `(`

error: expected `)`, found `foo`
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:21:27
   |
LL |         asm!("{}", in(reg foo));
   |                           ^^^ expected `)`
error: expected expression, found end of macro arguments
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:23:27
   |
   |
LL |         asm!("{}", in(reg));

error: expected register class or explicit register
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:25:26
   |
   |
LL |         asm!("{}", inout(=) foo => bar);

error: expected expression, found end of macro arguments
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:27:37
   |
   |
LL |         asm!("{}", inout(reg) foo =>);


error: expected one of `!`, `,`, `.`, `::`, `?`, `{`, or an operator, found `=>`
   |
   |
LL |         asm!("{}", in(reg) foo => bar);
   |                                ^^ expected one of 7 possible tokens
error: expected a path for argument to `sym`
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:31:24
   |
   |
LL |         asm!("{}", sym foo + bar);


error: expected one of `)`, `att_syntax`, `may_unwind`, `nomem`, `noreturn`, `nostack`, `preserves_flags`, `pure`, `raw`, or `readonly`, found `foo`
   |
   |
LL |         asm!("", options(foo));
   |                          ^^^ expected one of 10 possible tokens

error: expected one of `)` or `,`, found `foo`
   |
   |
LL |         asm!("", options(nomem foo));
   |                                ^^^ expected one of `)` or `,`

error: expected one of `)`, `att_syntax`, `may_unwind`, `nomem`, `noreturn`, `nostack`, `preserves_flags`, `pure`, `raw`, or `readonly`, found `foo`
   |
   |
LL |         asm!("", options(nomem, foo));
   |                                 ^^^ expected one of 10 possible tokens
error: arguments are not allowed after options
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:39:31
   |
LL |         asm!("{}", options(), const foo);
LL |         asm!("{}", options(), const foo);
   |                    ---------  ^^^^^^^^^ argument
   |                    |
   |                    previous options

error: at least one abi must be provided as an argument to `clobber_abi`
   |
   |
LL |         asm!("", clobber_abi());

error: expected string literal
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:44:30
   |
   |
LL |         asm!("", clobber_abi(foo));


error: expected one of `)` or `,`, found `foo`
   |
   |
LL |         asm!("", clobber_abi("C" foo));
   |                                  ^^^ expected one of `)` or `,`
error: expected string literal
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:48:35
   |
   |
LL |         asm!("", clobber_abi("C", foo));

error: arguments are not allowed after clobber_abi
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:50:38
   |
   |
LL |         asm!("{}", clobber_abi("C"), const foo);
   |                    ----------------  ^^^^^^^^^ argument
   |                    clobber_abi

error: clobber_abi is not allowed after options
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:53:29
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:53:29
   |
LL |         asm!("", options(), clobber_abi("C"));
   |                  ---------  ^^^^^^^^^^^^^^^^
   |                  options

error: clobber_abi is not allowed after options
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:55:31
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:55:31
   |
LL |         asm!("{}", options(), clobber_abi("C"), const foo);
   |                    ---------  ^^^^^^^^^^^^^^^^
   |                    options

error: duplicate argument named `a`
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:57:36
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:57:36
   |
LL |         asm!("{a}", a = const foo, a = const bar);
   |                     -------------  ^^^^^^^^^^^^^ duplicate argument
   |                     previously here

error: argument never used
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:57:36
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:57:36
   |
LL |         asm!("{a}", a = const foo, a = const bar);
   |                                    ^^^^^^^^^^^^^ argument never used
   |
   = help: if this argument is intentionally unused, consider using it in an asm comment: `"/* {1} */"`
error: explicit register arguments cannot have names
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:62:18
   |
   |
LL |         asm!("", a = in("eax") foo);

error: named arguments cannot follow explicit register arguments
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:64:36
   |
   |
LL |         asm!("{a}", in("eax") foo, a = const bar);
   |                     -------------  ^^^^^^^^^^^^^ named argument
   |                     explicit register argument

error: named arguments cannot follow explicit register arguments
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:67:36
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:67:36
   |
LL |         asm!("{a}", in("eax") foo, a = const bar);
   |                     -------------  ^^^^^^^^^^^^^ named argument
   |                     explicit register argument

error: positional arguments cannot follow named arguments or explicit register arguments
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:70:36
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:70:36
   |
LL |         asm!("{1}", in("eax") foo, const bar);
   |                     -------------  ^^^^^^^^^ positional argument
   |                     explicit register argument


error: expected one of `clobber_abi`, `const`, `in`, `inlateout`, `inout`, `lateout`, `options`, `out`, or `sym`, found `""`
   |
   |
LL |         asm!("", options(), "");
   |                             ^^ expected one of 9 possible tokens

error: expected one of `clobber_abi`, `const`, `in`, `inlateout`, `inout`, `lateout`, `options`, `out`, or `sym`, found `"{}"`
   |
   |
LL |         asm!("{}", in(reg) foo, "{}", out(reg) foo);
   |                                 ^^^^ expected one of 9 possible tokens
error: asm template must be a string literal
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:77:14
   |
   |
LL |         asm!(format!("{{{}}}", 0), in(reg) foo);
   |
   = note: this error originates in the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info)

error: asm template must be a string literal
error: asm template must be a string literal
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:79:21
   |
LL |         asm!("{1}", format!("{{{}}}", 0), in(reg) foo, out(reg) bar);
   |
   = note: this error originates in the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info)


error: _ cannot be used for input operands
   |
   |
LL |         asm!("{}", in(reg) _);


error: _ cannot be used for input operands
   |
   |
LL |         asm!("{}", inout(reg) _);


error: _ cannot be used for input operands
   |
   |
LL |         asm!("{}", inlateout(reg) _);

error: requires at least a template string argument
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:92:1
   |
   |
LL | global_asm!();

error: asm template must be a string literal
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:94:13
   |
   |
LL | global_asm!(FOO);

error: expected token: `,`
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:96:18
   |
   |
LL | global_asm!("{}" FOO);
   |                  ^^^ expected `,`
error: expected operand, options, or additional template string
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:98:19
   |
   |
LL | global_asm!("{}", FOO);
   |                   ^^^ expected operand, options, or additional template string
error: expected expression, found end of macro arguments
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:100:24
   |
   |
LL | global_asm!("{}", const);


error: expected one of `,`, `.`, `?`, or an operator, found `FOO`
   |
   |
LL | global_asm!("{}", const(reg) FOO);
   |                              ^^^ expected one of `,`, `.`, `?`, or an operator

error: expected one of `)`, `att_syntax`, or `raw`, found `FOO`
   |
   |
LL | global_asm!("", options(FOO));
   |                         ^^^ expected one of `)`, `att_syntax`, or `raw`

error: expected one of `)`, `att_syntax`, or `raw`, found `nomem`
   |
   |
LL | global_asm!("", options(nomem FOO));
   |                         ^^^^^ expected one of `)`, `att_syntax`, or `raw`

error: expected one of `)`, `att_syntax`, or `raw`, found `nomem`
   |
   |
LL | global_asm!("", options(nomem, FOO));
   |                         ^^^^^ expected one of `)`, `att_syntax`, or `raw`
error: arguments are not allowed after options
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:110:30
   |
   |
LL | global_asm!("{}", options(), const FOO);
   |                   ---------  ^^^^^^^^^ argument
   |                   previous options

error: expected string literal
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:112:29
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:112:29
   |
LL | global_asm!("", clobber_abi(FOO));


error: expected one of `)` or `,`, found `FOO`
   |
   |
LL | global_asm!("", clobber_abi("C" FOO));
   |                                 ^^^ expected one of `)` or `,`
error: expected string literal
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:116:34
   |
   |
LL | global_asm!("", clobber_abi("C", FOO));

error: arguments are not allowed after clobber_abi
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:118:37
   |
   |
LL | global_asm!("{}", clobber_abi("C"), const FOO);
   |                   ----------------  ^^^^^^^^^ argument
   |                   clobber_abi


error: `clobber_abi` cannot be used with `global_asm!`
   |
   |
LL | global_asm!("{}", clobber_abi("C"), const FOO);

error: clobber_abi is not allowed after options
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:121:28
   |
   |
LL | global_asm!("", options(), clobber_abi("C"));
   |                 ---------  ^^^^^^^^^^^^^^^^
   |                 options

error: clobber_abi is not allowed after options
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:123:30
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:123:30
   |
LL | global_asm!("{}", options(), clobber_abi("C"), const FOO);
   |                   ---------  ^^^^^^^^^^^^^^^^
   |                   options


error: `clobber_abi` cannot be used with `global_asm!`
   |
   |
LL | global_asm!("", clobber_abi("C"), clobber_abi("C"));

error: duplicate argument named `a`
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:127:35
   |
   |
LL | global_asm!("{a}", a = const FOO, a = const BAR);
   |                    -------------  ^^^^^^^^^^^^^ duplicate argument
   |                    previously here

error: argument never used
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:127:35
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:127:35
   |
LL | global_asm!("{a}", a = const FOO, a = const BAR);
   |                                   ^^^^^^^^^^^^^ argument never used
   |
   = help: if this argument is intentionally unused, consider using it in an asm comment: `"/* {1} */"`

error: expected one of `clobber_abi`, `const`, `options`, or `sym`, found `""`
   |
   |
LL | global_asm!("", options(), "");
   |                            ^^ expected one of `clobber_abi`, `const`, `options`, or `sym`

error: expected one of `clobber_abi`, `const`, `options`, or `sym`, found `"{}"`
   |
   |
LL | global_asm!("{}", const FOO, "{}", const FOO);
   |                              ^^^^ expected one of `clobber_abi`, `const`, `options`, or `sym`
error: asm template must be a string literal
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:134:13
   |
   |
LL | global_asm!(format!("{{{}}}", 0), const FOO);
   |
   = note: this error originates in the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info)

error: asm template must be a string literal
error: asm template must be a string literal
  --> /checkout/src/test/ui/asm/x86_64/parse-error.rs:136:20
   |
LL | global_asm!("{1}", format!("{{{}}}", 0), const FOO, const BAR);
   |
   = note: this error originates in the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info)


thread 'rustc' panicked at 'identifier: "resolve_attempt_to_use_non_constant_value_in_constant_with_suggestion", attr: None, args: FluentArgs([("current", String("let")), ("ident", String("foo")), ("suggestion", String("const"))]), errors: [ResolverError(Reference(Message { id: "suggestion", attribute: None })), ResolverError(Reference(Message { id: "current", attribute: None }))]', compiler/rustc_errors/src/translation.rs:91:17
   0:     0x7f9688a1015c - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h3aa99dd858e8a758
   1:     0x7f9688a78c98 - core::fmt::write::hecd54e75f30f9663
   1:     0x7f9688a78c98 - core::fmt::write::hecd54e75f30f9663
   2:     0x7f9688a009d1 - std::io::Write::write_fmt::h8988434cba967fd2
   3:     0x7f9688a1314e - std::panicking::default_hook::{{closure}}::haa1da06bdd4cfdeb
   4:     0x7f9688a12e17 - std::panicking::default_hook::hac6cf1535750f7c5
   5:     0x7f96893d3bd4 - rustc_driver[ee9f1d9dabd2d9ea]::DEFAULT_HOOK::{closure#0}::{closure#0}
   6:     0x7f9688a13901 - std::panicking::rust_panic_with_hook::h9901cbb7ff23ab55
   7:     0x7f9688a13727 - std::panicking::begin_panic_handler::{{closure}}::h4211a6156a7c84d8
   8:     0x7f9688a106d4 - std::sys_common::backtrace::__rust_end_short_backtrace::he74bf58554f22649
   9:     0x7f9688a133f2 - rust_begin_unwind
  10:     0x7f96889c3e43 - core::panicking::panic_fmt::h187bac1c4ad133a7
  11:     0x7f968c145f6a - <rustc_errors[6c22f8d2d30a3209]::emitter::EmitterWriter as rustc_errors[6c22f8d2d30a3209]::translation::Translate>::translate_message
  12:     0x7f968c136d3c - <rustc_errors[6c22f8d2d30a3209]::emitter::EmitterWriter as rustc_errors[6c22f8d2d30a3209]::emitter::Emitter>::primary_span_formatted
  13:     0x7f968c138d10 - <rustc_errors[6c22f8d2d30a3209]::emitter::EmitterWriter as rustc_errors[6c22f8d2d30a3209]::emitter::Emitter>::emit_diagnostic
  14:     0x7f968c14eec6 - <rustc_errors[6c22f8d2d30a3209]::json::Diagnostic>::from_errors_diagnostic
  15:     0x7f968c14dabc - <rustc_errors[6c22f8d2d30a3209]::json::JsonEmitter as rustc_errors[6c22f8d2d30a3209]::emitter::Emitter>::emit_diagnostic
  16:     0x7f968c192ea8 - <rustc_errors[6c22f8d2d30a3209]::HandlerInner>::emit_diagnostic
  17:     0x7f968c18eb56 - <rustc_errors[6c22f8d2d30a3209]::ErrorGuaranteed as rustc_errors[6c22f8d2d30a3209]::diagnostic_builder::EmissionGuarantee>::diagnostic_builder_emit_producing_guarantee
  18:     0x7f968a1b7dd8 - <rustc_resolve[c6b27bf52c28fd68]::Resolver>::report_error
  19:     0x7f968a1de3cb - <rustc_resolve[c6b27bf52c28fd68]::Resolver>::resolve_ident_in_lexical_scope
  20:     0x7f968a1c3e53 - <rustc_resolve[c6b27bf52c28fd68]::Resolver>::resolve_path_with_ribs
  21:     0x7f968a13624b - <rustc_resolve[c6b27bf52c28fd68]::late::LateResolutionVisitor>::smart_resolve_path_fragment
  22:     0x7f968a135cb9 - <rustc_resolve[c6b27bf52c28fd68]::late::LateResolutionVisitor>::smart_resolve_path
  23:     0x7f968a13c6b6 - <rustc_resolve[c6b27bf52c28fd68]::late::LateResolutionVisitor>::resolve_expr
  24:     0x7f968a13b526 - <rustc_resolve[c6b27bf52c28fd68]::late::LateResolutionVisitor>::resolve_inline_const
  25:     0x7f968a116026 - <rustc_resolve[c6b27bf52c28fd68]::late::LateResolutionVisitor as rustc_ast[b19f54aad5f6fd9b]::visit::Visitor>::visit_inline_asm
  26:     0x7f968a13c6c1 - <rustc_resolve[c6b27bf52c28fd68]::late::LateResolutionVisitor>::resolve_expr
  27:     0x7f968a0fb1df - <rustc_resolve[c6b27bf52c28fd68]::late::LateResolutionVisitor as rustc_ast[b19f54aad5f6fd9b]::visit::Visitor>::visit_block
  28:     0x7f968a13c68c - <rustc_resolve[c6b27bf52c28fd68]::late::LateResolutionVisitor>::resolve_expr
  29:     0x7f968a0fb1df - <rustc_resolve[c6b27bf52c28fd68]::late::LateResolutionVisitor as rustc_ast[b19f54aad5f6fd9b]::visit::Visitor>::visit_block
  30:     0x7f968a10df04 - <rustc_resolve[c6b27bf52c28fd68]::late::LateResolutionVisitor as rustc_ast[b19f54aad5f6fd9b]::visit::Visitor>::visit_fn::{closure#1}::{closure#0}
  31:     0x7f968a1081cc - <rustc_resolve[c6b27bf52c28fd68]::late::LateResolutionVisitor as rustc_ast[b19f54aad5f6fd9b]::visit::Visitor>::visit_fn
  32:     0x7f968a200d9e - rustc_ast[b19f54aad5f6fd9b]::visit::walk_item::<rustc_resolve[c6b27bf52c28fd68]::late::LateResolutionVisitor>
  33:     0x7f968a120a41 - <rustc_resolve[c6b27bf52c28fd68]::late::LateResolutionVisitor>::resolve_item
  34:     0x7f968a0fa6c7 - <rustc_resolve[c6b27bf52c28fd68]::late::LateResolutionVisitor as rustc_ast[b19f54aad5f6fd9b]::visit::Visitor>::visit_item
  35:     0x7f968a1e70dd - rustc_ast[b19f54aad5f6fd9b]::visit::walk_crate::<rustc_resolve[c6b27bf52c28fd68]::late::LateResolutionVisitor>
  36:     0x7f968a1c7dce - <rustc_resolve[c6b27bf52c28fd68]::Resolver>::late_resolve_crate
  37:     0x7f968a18c435 - <rustc_session[b0411ee4f4f3e222]::session::Session>::time::<(), <rustc_resolve[c6b27bf52c28fd68]::Resolver>::resolve_crate::{closure#0}>
  38:     0x7f96895117d0 - <rustc_interface[b6eacd79ecd74a10]::passes::boxed_resolver::BoxedResolver>::access::<<rustc_interface[b6eacd79ecd74a10]::queries::Queries>::expansion::{closure#0}::{closure#0}, core[23cec6303e7deeaf]::result::Result<rustc_ast[b19f54aad5f6fd9b]::ast::Crate, rustc_errors[6c22f8d2d30a3209]::ErrorGuaranteed>>
  39:     0x7f96894f69a6 - <rustc_interface[b6eacd79ecd74a10]::queries::Queries>::expansion
  40:     0x7f96893db2b0 - <rustc_interface[b6eacd79ecd74a10]::interface::Compiler>::enter::<rustc_driver[ee9f1d9dabd2d9ea]::run_compiler::{closure#1}::{closure#2}, core[23cec6303e7deeaf]::result::Result<core[23cec6303e7deeaf]::option::Option<rustc_interface[b6eacd79ecd74a10]::queries::Linker>, rustc_errors[6c22f8d2d30a3209]::ErrorGuaranteed>>
  41:     0x7f96893c2c31 - rustc_span[4802920ea0196ebe]::with_source_map::<core[23cec6303e7deeaf]::result::Result<(), rustc_errors[6c22f8d2d30a3209]::ErrorGuaranteed>, rustc_interface[b6eacd79ecd74a10]::interface::create_compiler_and_run<core[23cec6303e7deeaf]::result::Result<(), rustc_errors[6c22f8d2d30a3209]::ErrorGuaranteed>, rustc_driver[ee9f1d9dabd2d9ea]::run_compiler::{closure#1}>::{closure#1}>
  42:     0x7f96893f2901 - rustc_interface[b6eacd79ecd74a10]::interface::create_compiler_and_run::<core[23cec6303e7deeaf]::result::Result<(), rustc_errors[6c22f8d2d30a3209]::ErrorGuaranteed>, rustc_driver[ee9f1d9dabd2d9ea]::run_compiler::{closure#1}>
  43:     0x7f96893be662 - <scoped_tls[c7387018addcf5be]::ScopedKey<rustc_span[4802920ea0196ebe]::SessionGlobals>>::set::<rustc_interface[b6eacd79ecd74a10]::interface::run_compiler<core[23cec6303e7deeaf]::result::Result<(), rustc_errors[6c22f8d2d30a3209]::ErrorGuaranteed>, rustc_driver[ee9f1d9dabd2d9ea]::run_compiler::{closure#1}>::{closure#0}, core[23cec6303e7deeaf]::result::Result<(), rustc_errors[6c22f8d2d30a3209]::ErrorGuaranteed>>
  44:     0x7f968943996f - std[d52d74294e7af5c7]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[b6eacd79ecd74a10]::util::run_in_thread_pool_with_globals<rustc_interface[b6eacd79ecd74a10]::interface::run_compiler<core[23cec6303e7deeaf]::result::Result<(), rustc_errors[6c22f8d2d30a3209]::ErrorGuaranteed>, rustc_driver[ee9f1d9dabd2d9ea]::run_compiler::{closure#1}>::{closure#0}, core[23cec6303e7deeaf]::result::Result<(), rustc_errors[6c22f8d2d30a3209]::ErrorGuaranteed>>::{closure#0}, core[23cec6303e7deeaf]::result::Result<(), rustc_errors[6c22f8d2d30a3209]::ErrorGuaranteed>>
  45:     0x7f96893c4e5e - std[d52d74294e7af5c7]::panicking::try::<core[23cec6303e7deeaf]::result::Result<(), rustc_errors[6c22f8d2d30a3209]::ErrorGuaranteed>, core[23cec6303e7deeaf]::panic::unwind_safe::AssertUnwindSafe<<std[d52d74294e7af5c7]::thread::Builder>::spawn_unchecked_<rustc_interface[b6eacd79ecd74a10]::util::run_in_thread_pool_with_globals<rustc_interface[b6eacd79ecd74a10]::interface::run_compiler<core[23cec6303e7deeaf]::result::Result<(), rustc_errors[6c22f8d2d30a3209]::ErrorGuaranteed>, rustc_driver[ee9f1d9dabd2d9ea]::run_compiler::{closure#1}>::{closure#0}, core[23cec6303e7deeaf]::result::Result<(), rustc_errors[6c22f8d2d30a3209]::ErrorGuaranteed>>::{closure#0}, core[23cec6303e7deeaf]::result::Result<(), rustc_errors[6c22f8d2d30a3209]::ErrorGuaranteed>>::{closure#1}::{closure#0}>>
  46:     0x7f968943b190 - <<std[d52d74294e7af5c7]::thread::Builder>::spawn_unchecked_<rustc_interface[b6eacd79ecd74a10]::util::run_in_thread_pool_with_globals<rustc_interface[b6eacd79ecd74a10]::interface::run_compiler<core[23cec6303e7deeaf]::result::Result<(), rustc_errors[6c22f8d2d30a3209]::ErrorGuaranteed>, rustc_driver[ee9f1d9dabd2d9ea]::run_compiler::{closure#1}>::{closure#0}, core[23cec6303e7deeaf]::result::Result<(), rustc_errors[6c22f8d2d30a3209]::ErrorGuaranteed>>::{closure#0}, core[23cec6303e7deeaf]::result::Result<(), rustc_errors[6c22f8d2d30a3209]::ErrorGuaranteed>>::{closure#1} as core[23cec6303e7deeaf]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  47:     0x7f9688a20675 - std::sys::unix::thread::Thread::new::thread_start::hd7a98ba404bbf168
  48:     0x7f96887bcb43 - <unknown>
  49:     0x7f968884ea00 - <unknown>
  50:                0x0 - <unknown>
error: internal compiler error: unexpected panic

note: the compiler unexpectedly panicked. this is a bug.


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

note: rustc 1.65.0-nightly (7fffa41b3 2022-09-03) running on x86_64-unknown-linux-gnu

note: compiler flags: -Z threads=1 -C codegen-units=1 -Z ui-testing -Z deduplicate-diagnostics=no -C strip=debuginfo -C prefer-dynamic -C rpath -C debuginfo=0
query stack during panic:
end of query stack
error: aborting due to 59 previous errors


For more information about this error, try `rustc --explain E0435`.
------------------------------------------


---- [ui] src/test/ui/capture1.rs stdout ----

error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit status: 101
command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/capture1.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/capture1" "-A" "unused" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/capture1/auxiliary"
stdout: none
--- stderr -------------------------------
thread 'rustc' panicked at 'identifier: "resolve_cannot_capture_dynamic_environment_in_fn_item", attr: Some("help"), args: FluentArgs([("closure_hint", String("|| { ... }"))]), errors: [ResolverError(Reference(Message { id: "closure_hint", attribute: None }))]', compiler/rustc_errors/src/translation.rs:91:17
   0:     0x7f98f9f5615c - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h3aa99dd858e8a758
   1:     0x7f98f9fbec98 - core::fmt::write::hecd54e75f30f9663
   2:     0x7f98f9f469d1 - std::io::Write::write_fmt::h8988434cba967fd2
   2:     0x7f98f9f469d1 - std::io::Write::write_fmt::h8988434cba967fd2
   3:     0x7f98f9f5914e - std::panicking::default_hook::{{closure}}::haa1da06bdd4cfdeb
   4:     0x7f98f9f58e17 - std::panicking::default_hook::hac6cf1535750f7c5
   5:     0x7f98fa919bd4 - rustc_driver[ee9f1d9dabd2d9ea]::DEFAULT_HOOK::{closure#0}::{closure#0}
   6:     0x7f98f9f59901 - std::panicking::rust_panic_with_hook::h9901cbb7ff23ab55
   7:     0x7f98f9f59727 - std::panicking::begin_panic_handler::{{closure}}::h4211a6156a7c84d8
   8:     0x7f98f9f566d4 - std::sys_common::backtrace::__rust_end_short_backtrace::he74bf58554f22649
   9:     0x7f98f9f593f2 - rust_begin_unwind
  10:     0x7f98f9f09e43 - core::panicking::panic_fmt::h187bac1c4ad133a7
  11:     0x7f98fd68bf6a - <rustc_errors[6c22f8d2d30a3209]::emitter::EmitterWriter as rustc_errors[6c22f8d2d30a3209]::translation::Translate>::translate_message
  12:     0x7f98fd681552 - <rustc_errors[6c22f8d2d30a3209]::emitter::EmitterWriter>::emit_message_default
  13:     0x7f98fd67f259 - <rustc_errors[6c22f8d2d30a3209]::emitter::EmitterWriter as rustc_errors[6c22f8d2d30a3209]::emitter::Emitter>::emit_diagnostic
  14:     0x7f98fd694ec6 - <rustc_errors[6c22f8d2d30a3209]::json::Diagnostic>::from_errors_diagnostic
  15:     0x7f98fd693abc - <rustc_errors[6c22f8d2d30a3209]::json::JsonEmitter as rustc_errors[6c22f8d2d30a3209]::emitter::Emitter>::emit_diagnostic
  16:     0x7f98fd6d8ea8 - <rustc_errors[6c22f8d2d30a3209]::HandlerInner>::emit_diagnostic
  17:     0x7f98fd6d4b56 - <rustc_errors[6c22f8d2d30a3209]::ErrorGuaranteed as rustc_errors[6c22f8d2d30a3209]::diagnostic_builder::EmissionGuarantee>::diagnostic_builder_emit_producing_guarantee
  18:     0x7f98fb6fddd8 - <rustc_resolve[c6b27bf52c28fd68]::Resolver>::report_error
  19:     0x7f98fb724285 - <rustc_resolve[c6b27bf52c28fd68]::Resolver>::resolve_ident_in_lexical_scope
  20:     0x7f98fb709e53 - <rustc_resolve[c6b27bf52c28fd68]::Resolver>::resolve_path_with_ribs
  21:     0x7f98fb67c24b - <rustc_resolve[c6b27bf52c28fd68]::late::LateResolutionVisitor>::smart_resolve_path_fragment
  22:     0x7f98fb67bcb9 - <rustc_resolve[c6b27bf52c28fd68]::late::LateResolutionVisitor>::smart_resolve_path
  23:     0x7f98fb6826b6 - <rustc_resolve[c6b27bf52c28fd68]::late::LateResolutionVisitor>::resolve_expr
  24:     0x7f98fb6826c1 - <rustc_resolve[c6b27bf52c28fd68]::late::LateResolutionVisitor>::resolve_expr
  25:     0x7f98fb6411df - <rustc_resolve[c6b27bf52c28fd68]::late::LateResolutionVisitor as rustc_ast[b19f54aad5f6fd9b]::visit::Visitor>::visit_block
  26:     0x7f98fb653f04 - <rustc_resolve[c6b27bf52c28fd68]::late::LateResolutionVisitor as rustc_ast[b19f54aad5f6fd9b]::visit::Visitor>::visit_fn::{closure#1}::{closure#0}
  27:     0x7f98fb64e1cc - <rustc_resolve[c6b27bf52c28fd68]::late::LateResolutionVisitor as rustc_ast[b19f54aad5f6fd9b]::visit::Visitor>::visit_fn
  28:     0x7f98fb746d9e - rustc_ast[b19f54aad5f6fd9b]::visit::walk_item::<rustc_resolve[c6b27bf52c28fd68]::late::LateResolutionVisitor>
  29:     0x7f98fb666a41 - <rustc_resolve[c6b27bf52c28fd68]::late::LateResolutionVisitor>::resolve_item
  30:     0x7f98fb6406c7 - <rustc_resolve[c6b27bf52c28fd68]::late::LateResolutionVisitor as rustc_ast[b19f54aad5f6fd9b]::visit::Visitor>::visit_item
  31:     0x7f98fb6411df - <rustc_resolve[c6b27bf52c28fd68]::late::LateResolutionVisitor as rustc_ast[b19f54aad5f6fd9b]::visit::Visitor>::visit_block
  32:     0x7f98fb653f04 - <rustc_resolve[c6b27bf52c28fd68]::late::LateResolutionVisitor as rustc_ast[b19f54aad5f6fd9b]::visit::Visitor>::visit_fn::{closure#1}::{closure#0}
  33:     0x7f98fb64e1cc - <rustc_resolve[c6b27bf52c28fd68]::late::LateResolutionVisitor as rustc_ast[b19f54aad5f6fd9b]::visit::Visitor>::visit_fn
  34:     0x7f98fb746d9e - rustc_ast[b19f54aad5f6fd9b]::visit::walk_item::<rustc_resolve[c6b27bf52c28fd68]::late::LateResolutionVisitor>
  35:     0x7f98fb666a41 - <rustc_resolve[c6b27bf52c28fd68]::late::LateResolutionVisitor>::resolve_item
  36:     0x7f98fb6406c7 - <rustc_resolve[c6b27bf52c28fd68]::late::LateResolutionVisitor as rustc_ast[b19f54aad5f6fd9b]::visit::Visitor>::visit_item
  37:     0x7f98fb72d0dd - rustc_ast[b19f54aad5f6fd9b]::visit::walk_crate::<rustc_resolve[c6b27bf52c28fd68]::late::LateResolutionVisitor>
  38:     0x7f98fb70ddce - <rustc_resolve[c6b27bf52c28fd68]::Resolver>::late_resolve_crate
  39:     0x7f98fb6d2435 - <rustc_session[b0411ee4f4f3e222]::session::Session>::time::<(), <rustc_resolve[c6b27bf52c28fd68]::Resolver>::resolve_crate::{closure#0}>
  40:     0x7f98faa577d0 - <rustc_interface[b6eacd79ecd74a10]::passes::boxed_resolver::BoxedResolver>::access::<<rustc_interface[b6eacd79ecd74a10]::queries::Queries>::expansion::{closure#0}::{closure#0}, core[23cec6303e7deeaf]::result::Result<rustc_ast[b19f54aad5f6fd9b]::ast::Crate, rustc_errors[6c22f8d2d30a3209]::ErrorGuaranteed>>

rust-log-analyzer avatar Sep 03 '22 21:09 rust-log-analyzer

Looks like something went wrong in the rebase, this contains a bunch of changes it shouldn't (submodules, lockfile).

RalfJung avatar Sep 04 '22 12:09 RalfJung

The job mingw-check failed! Check out the build log: (web) (plain)

Click to see the possible cause of the failure (guessed by this bot)

rust-log-analyzer avatar Sep 05 '22 05:09 rust-log-analyzer

You should run ./x.py test src/test/ui locally and try to resolve the test failures as you go - so that the diagnostics you are migrating continue to work :)

davidtwco avatar Sep 22 '22 14:09 davidtwco

You should run ./x.py test src/test/ui locally and try to resolve the test failures as you go - so that the diagnostics you are migrating continue to work :)

yep. working on the failed tests.

rajputrajat avatar Sep 24 '22 09:09 rajputrajat

:umbrella: The latest upstream changes (presumably #102395) made this pull request unmergeable. Please resolve the merge conflicts.

bors avatar Oct 04 '22 07:10 bors

Are you still migrating things or is this ready to be landed?

davidtwco avatar Oct 10 '22 10:10 davidtwco

:umbrella: The latest upstream changes (presumably #102926) made this pull request unmergeable. Please resolve the merge conflicts.

bors avatar Oct 11 '22 20:10 bors

Are you still migrating things or is this ready to be landed?

I am still in the process. There is still a lot of stuff to migrate. Is it possible to merge this migration in parts to minimise the review scope?

rajputrajat avatar Oct 16 '22 23:10 rajputrajat

Are you still migrating things or is this ready to be landed?

I am still in the process. There is still a lot of stuff to migrate. Is it possible to merge this migration in parts to minimise the review scope?

We can merge this in parts if you want.

davidtwco avatar Oct 17 '22 13:10 davidtwco

Hi, I've seen you changed some diagnostic structs in your PR. After #103345, the way we refer to fluent messages changed. They are now in a flat namespace with the same identifier as in the fluent file. For example, parser::cool_thing is now parser_cool_thing and parser::suggestion just suggestion. You should rebase to the latest master and change your fluent message references as described above. Thanks!

Nilstrieb avatar Oct 23 '22 11:10 Nilstrieb

:umbrella: The latest upstream changes (presumably #102233) made this pull request unmergeable. Please resolve the merge conflicts.

bors avatar Oct 29 '22 06:10 bors

Hi, I've seen you changed some diagnostic structs in your PR. After #103345, the way we refer to fluent messages changed. They are now in a flat namespace with the same identifier as in the fluent file. For example, parser::cool_thing is now parser_cool_thing and parser::suggestion just suggestion. You should rebase to the latest master and change your fluent message references as described above. Thanks!

made changes as suggeste. Thanks!

rajputrajat avatar Oct 29 '22 11:10 rajputrajat

Are you still migrating things or is this ready to be landed?

I am still in the process. There is still a lot of stuff to migrate. Is it possible to merge this migration in parts to minimise the review scope?

We can merge this in parts if you want.

Could you initiate merging for this one, if possible, please? There is still one comment opened with this one though, regarding "article" and "participle" being only English specific. But that can be opened separately. I will open separate PR, named as part#2 for newer changes.

Thanks!

rajputrajat avatar Oct 31 '22 06:10 rajputrajat

Some changes occurred in src/librustdoc/clean/types.rs

cc @camelid

Hey! It looks like you've submitted a new PR for the library teams!

If this PR contains changes to any rust-lang/rust public library APIs then please comment with @rustbot label +T-libs-api -T-libs to tag it appropriately. If this PR contains changes to any unstable APIs please edit the PR description to add a link to the relevant API Change Proposal or create one if you haven't already. If you're unsure where your change falls no worries, just leave it as is and the reviewer will take a look and make a decision to forward on if necessary.

Examples of T-libs-api changes:

  • Stabilizing library features
  • Introducing insta-stable changes such as new implementations of existing stable traits on existing stable types
  • Introducing new or changing existing unstable library APIs (excluding permanently unstable features / features without a tracking issue)
  • Changing public documentation in ways that create new stability guarantees
  • Changing observable runtime behavior of library APIs

rustbot avatar Nov 04 '22 19:11 rustbot

This looks good to me, apologies for the delay in reviewing, just one minor comment - would appreciate if you could squash some of the commits too.

Done. Please review.

rajputrajat avatar Nov 04 '22 19:11 rajputrajat

Some changes occurred in src/librustdoc/clean/types.rs

cc @camelid

Hey! It looks like you've submitted a new PR for the library teams!

If this PR contains changes to any rust-lang/rust public library APIs then please comment with @rustbot label +T-libs-api -T-libs to tag it appropriately. If this PR contains changes to any unstable APIs please edit the PR description to add a link to the relevant API Change Proposal or create one if you haven't already. If you're unsure where your change falls no worries, just leave it as is and the reviewer will take a look and make a decision to forward on if necessary.

Examples of T-libs-api changes:

  • Stabilizing library features
  • Introducing insta-stable changes such as new implementations of existing stable traits on existing stable types
  • Introducing new or changing existing unstable library APIs (excluding permanently unstable features / features without a tracking issue)
  • Changing public documentation in ways that create new stability guarantees
  • Changing observable runtime behavior of library APIs

Wrong commits were picked while squashing. corrected!

rajputrajat avatar Nov 04 '22 20:11 rajputrajat

The job mingw-check failed! Check out the build log: (web) (plain)

Click to see the possible cause of the failure (guessed by this bot)
configure: rust.debug-assertions := True
configure: rust.overflow-checks := True
configure: llvm.assertions      := True
configure: dist.missing-tools   := True
configure: build.configure-args := ['--enable-sccache', '--disable-manage-submodu ...
configure: writing `config.toml` in current directory
configure: 
configure: run `python /checkout/x.py --help`
Attempting with retry: make prepare
---
skip untracked path cpu-usage.csv during rustfmt invocations
skip untracked path src/doc/book/ during rustfmt invocations
skip untracked path src/doc/rust-by-example/ during rustfmt invocations
skip untracked path src/llvm-project/ during rustfmt invocations
Diff in /checkout/compiler/rustc_resolve/src/diagnostics.rs at line 6:
 use rustc_ast_pretty::pprust;
 use rustc_data_structures::fx::FxHashSet;
 use rustc_errors::struct_span_err;
-use rustc_errors::{
-    Applicability, Diagnostic, DiagnosticBuilder, ErrorGuaranteed, MultiSpan,
-};
+use rustc_errors::{Applicability, Diagnostic, DiagnosticBuilder, ErrorGuaranteed, MultiSpan};
 use rustc_feature::BUILTIN_ATTRIBUTES;
 use rustc_hir::def::Namespace::{self, *};
 use rustc_hir::def::{self, CtorKind, CtorOf, DefKind, NonMacroAttrKind, PerNS};
Running `"/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/rustfmt" "--config-path" "/checkout" "--edition" "2021" "--unstable-features" "--skip-children" "--check" "/checkout/compiler/rustc_mir_dataflow/src/framework/lattice.rs" "/checkout/compiler/rustc_incremental/src/lib.rs" "/checkout/compiler/rustc_resolve/src/def_collector.rs" "/checkout/compiler/rustc_incremental/src/assert_module_sources.rs" "/checkout/compiler/rustc_resolve/src/effective_visibilities.rs" "/checkout/compiler/rustc_incremental/src/persist/save.rs" "/checkout/compiler/rustc_resolve/src/diagnostics.rs" "/checkout/compiler/rustc_symbol_mangling/src/v0.rs"` failed.
If you're running `tidy`, try again with `--bless`. Or, if you just want to format code, run `./x.py fmt` instead.

rust-log-analyzer avatar Nov 09 '22 09:11 rust-log-analyzer