Skip to content

panic: highlight: type parameter #1 (#1/1) out of range when instantiating, args=[#0] #23124

Description

@matthiaskrgr
pub trait Bar {
    type E: Copy;

    fn foo<T>() -> Self::E;
}

impl<S> Bar for S {
    type E = impl Copy;

    fn foo<T>() -> Self::E {
        || ()
    }
}

rust-analyzer highlight < code.rs

thread 'main' (558236) panicked at /home/matthias/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/ra-ap-rustc_type_ir-0.166.0/src/binder.rs:797:9:
type parameter `#1` (#1/1) out of range when instantiating, args=[#0]
stack backtrace:
   0: __rustc::rust_begin_unwind
             at /rustc/12c36e2539c54397c51d6ea4401defd8768a4f5b/library/std/src/panicking.rs:679:5
   1: core::panicking::panic_fmt
             at /rustc/12c36e2539c54397c51d6ea4401defd8768a4f5b/library/core/src/panicking.rs:80:14
   2: <ra_ap_rustc_type_ir::binder::ArgFolder<hir_ty::next_solver::interner::DbInterner>>::type_param_out_of_range
             at /home/matthias/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/ra-ap-rustc_type_ir-0.166.0/src/binder.rs:797:9
   3: <ra_ap_rustc_type_ir::binder::ArgFolder<hir_ty::next_solver::interner::DbInterner>>::ty_for_param
             at /home/matthias/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/ra-ap-rustc_type_ir-0.166.0/src/binder.rs:775:26
   4: <ra_ap_rustc_type_ir::binder::ArgFolder<hir_ty::next_solver::interner::DbInterner> as ra_ap_rustc_type_ir::fold::TypeFolder<hir_ty::next_solver::interner::DbInterner>>::fold_ty
             at /home/matthias/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/ra-ap-rustc_type_ir-0.166.0/src/binder.rs:746:34
   5: <hir_ty::next_solver::ty::Ty as ra_ap_rustc_type_ir::fold::TypeFoldable<hir_ty::next_solver::interner::DbInterner>>::fold_with::<ra_ap_rustc_type_ir::binder::ArgFolder<hir_ty::next_solver::interner::DbInterner>>
             at /home/matthias/vcs/github/rust-analyzer/crates/hir-ty/src/next_solver/ty.rs:961:16
   6: <hir_ty::next_solver::generic_arg::GenericArg as ra_ap_rustc_type_ir::fold::TypeFoldable<hir_ty::next_solver::interner::DbInterner>>::fold_with::<ra_ap_rustc_type_ir::binder::ArgFolder<hir_ty::next_solver::interner::DbInterner>>
             at /home/matthias/vcs/github/rust-analyzer/crates/hir-ty/src/next_solver/generic_arg.rs:397:44
   7: <hir_ty::next_solver::generic_arg::GenericArgs as ra_ap_rustc_type_ir::fold::TypeFoldable<hir_ty::next_solver::interner::DbInterner>>::fold_with::<ra_ap_rustc_type_ir::binder::ArgFolder<hir_ty::next_solver::interner::DbInterner>>::{closure#0}
             at /home/matthias/vcs/github/rust-analyzer/crates/hir-ty/src/next_solver/interner.rs:256:74
   8: <&mut <hir_ty::next_solver::generic_arg::GenericArgs as ra_ap_rustc_type_ir::fold::TypeFoldable<hir_ty::next_solver::interner::DbInterner>>::fold_with<ra_ap_rustc_type_ir::binder::ArgFolder<hir_ty::next_solver::interner::DbInterner>>::{closure#0} as core::ops::function::FnOnce<(hir_ty::next_solver::generic_arg::GenericArg,)>>::call_once
             at /home/matthias/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:310:21
   9: <core::option::Option<hir_ty::next_solver::generic_arg::GenericArg>>::map::<hir_ty::next_solver::generic_arg::GenericArg, &mut <hir_ty::next_solver::generic_arg::GenericArgs as ra_ap_rustc_type_ir::fold::TypeFoldable<hir_ty::next_solver::interner::DbInterner>>::fold_with<ra_ap_rustc_type_ir::binder::ArgFolder<hir_ty::next_solver::interner::DbInterner>>::{closure#0}>
             at /home/matthias/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/option.rs:1163:29
  10: <core::iter::adapters::map::Map<core::iter::adapters::copied::Copied<core::slice::iter::Iter<hir_ty::next_solver::generic_arg::GenericArg>>, <hir_ty::next_solver::generic_arg::GenericArgs as ra_ap_rustc_type_ir::fold::TypeFoldable<hir_ty::next_solver::interner::DbInterner>>::fold_with<ra_ap_rustc_type_ir::binder::ArgFolder<hir_ty::next_solver::interner::DbInterner>>::{closure#0}> as core::iter::traits::iterator::Iterator>::next
             at /home/matthias/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/iter/adapters/map.rs:107:26
  11: <hir_ty::next_solver::generic_arg::GenericArg as ra_ap_rustc_type_ir::interner::CollectAndApply<hir_ty::next_solver::generic_arg::GenericArg, hir_ty::next_solver::generic_arg::GenericArgs>>::collect_and_apply::<core::iter::adapters::map::Map<core::iter::adapters::copied::Copied<core::slice::iter::Iter<hir_ty::next_solver::generic_arg::GenericArg>>, <hir_ty::next_solver::generic_arg::GenericArgs as ra_ap_rustc_type_ir::fold::TypeFoldable<hir_ty::next_solver::interner::DbInterner>>::fold_with<ra_ap_rustc_type_ir::binder::ArgFolder<hir_ty::next_solver::interner::DbInterner>>::{closure#0}>, <hir_ty::next_solver::generic_arg::GenericArgs>::new_from_iter<core::iter::adapters::map::Map<core::iter::adapters::copied::Copied<core::slice::iter::Iter<hir_ty::next_solver::generic_arg::GenericArg>>, <hir_ty::next_solver::generic_arg::GenericArgs as ra_ap_rustc_type_ir::fold::TypeFoldable<hir_ty::next_solver::interner::DbInterner>>::fold_with<ra_ap_rustc_type_ir::binder::ArgFolder<hir_ty::next_solver::interner::DbInterner>>::{closure#0}>, hir_ty::next_solver::generic_arg::GenericArg>::{closure#0}>
             at /home/matthias/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/ra-ap-rustc_type_ir-0.166.0/src/interner.rs:513:29
  12: <hir_ty::next_solver::generic_arg::GenericArgs>::new_from_iter::<core::iter::adapters::map::Map<core::iter::adapters::copied::Copied<core::slice::iter::Iter<hir_ty::next_solver::generic_arg::GenericArg>>, <hir_ty::next_solver::generic_arg::GenericArgs as ra_ap_rustc_type_ir::fold::TypeFoldable<hir_ty::next_solver::interner::DbInterner>>::fold_with<ra_ap_rustc_type_ir::binder::ArgFolder<hir_ty::next_solver::interner::DbInterner>>::{closure#0}>, hir_ty::next_solver::generic_arg::GenericArg>
             at /home/matthias/vcs/github/rust-analyzer/crates/hir-ty/src/next_solver/interner.rs:109:17
  13: <hir_ty::next_solver::generic_arg::GenericArgs as ra_ap_rustc_type_ir::fold::TypeFoldable<hir_ty::next_solver::interner::DbInterner>>::fold_with::<ra_ap_rustc_type_ir::binder::ArgFolder<hir_ty::next_solver::interner::DbInterner>>
             at /home/matthias/vcs/github/rust-analyzer/crates/hir-ty/src/next_solver/interner.rs:256:17
  14: <hir_ty::next_solver::ty::Ty as ra_ap_rustc_type_ir::fold::TypeSuperFoldable<hir_ty::next_solver::interner::DbInterner>>::super_fold_with::<ra_ap_rustc_type_ir::binder::ArgFolder<hir_ty::next_solver::interner::DbInterner>>
             at /home/matthias/vcs/github/rust-analyzer/crates/hir-ty/src/next_solver/ty.rs:1040:69
  15: <ra_ap_rustc_type_ir::binder::ArgFolder<hir_ty::next_solver::interner::DbInterner> as ra_ap_rustc_type_ir::fold::TypeFolder<hir_ty::next_solver::interner::DbInterner>>::fold_ty
             at /home/matthias/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/ra-ap-rustc_type_ir-0.166.0/src/binder.rs:747:20
  16: <hir_ty::next_solver::ty::Ty as ra_ap_rustc_type_ir::fold::TypeFoldable<hir_ty::next_solver::interner::DbInterner>>::fold_with::<ra_ap_rustc_type_ir::binder::ArgFolder<hir_ty::next_solver::interner::DbInterner>>
             at /home/matthias/vcs/github/rust-analyzer/crates/hir-ty/src/next_solver/ty.rs:961:16
  17: <ra_ap_rustc_type_ir::binder::EarlyBinder<hir_ty::next_solver::interner::DbInterner, hir_ty::next_solver::ty::Ty>>::instantiate::<hir_ty::next_solver::generic_arg::GenericArgs>
             at /home/matthias/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/ra-ap-rustc_type_ir-0.166.0/src/binder.rs:662:38
  18: <hir_ty::infer::InferenceContext>::compute_definition_site_hidden_types
             at /home/matthias/vcs/github/rust-analyzer/crates/hir-ty/src/infer/opaques.rs:112:26
  19: <hir_ty::infer::InferenceContext>::handle_opaque_type_uses
             at /home/matthias/vcs/github/rust-analyzer/crates/hir-ty/src/infer/opaques.rs:30:14
  20: hir_ty::infer::infer_finalize
             at /home/matthias/vcs/github/rust-analyzer/crates/hir-ty/src/infer.rs:267:9
  21: hir_ty::infer::infer_query_with_inspect
             at /home/matthias/vcs/github/rust-analyzer/crates/hir-ty/src/infer.rs:186:5
  22: hir_ty::infer::infer_query
             at /home/matthias/vcs/github/rust-analyzer/crates/hir-ty/src/infer.rs:123:5
  23: <hir_ty::infer::InferenceResult as <hir_ty::infer::InferenceResult>::for_body::InnerTrait_>::for_body_
             at /home/matthias/vcs/github/rust-analyzer/crates/hir-ty/src/infer.rs:1086:9
  24: <<hir_ty::infer::InferenceResult>::for_body::_::for_body__Configuration_ as salsa::function::Configuration>::execute::inner_
             at /home/matthias/vcs/github/rust-analyzer/crates/hir-ty/src/infer.rs:1082:1
  25: <<hir_ty::infer::InferenceResult>::for_body::_::for_body__Configuration_ as salsa::function::Configuration>::execute
             at /home/matthias/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/salsa-macro-rules-0.28.2/src/setup_tracked_fn.rs:350:21
  26: <salsa::function::IngredientImpl<<hir_ty::infer::InferenceResult>::for_body::_::for_body__Configuration_>>::execute_query
             at /home/matthias/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/salsa-0.28.2/src/function/execute.rs:335:25
  27: <salsa::function::IngredientImpl<<hir_ty::infer::InferenceResult>::for_body::_::for_body__Configuration_>>::execute_maybe_iterate
             at /home/matthias/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/salsa-0.28.2/src/function/execute.rs:179:49
  28: <salsa::function::IngredientImpl<<hir_ty::infer::InferenceResult>::for_body::_::for_body__Configuration_>>::execute
             at /home/matthias/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/salsa-0.28.2/src/function/execute.rs:73:22
  29: <salsa::function::IngredientImpl<<hir_ty::infer::InferenceResult>::for_body::_::for_body__Configuration_>>::fetch_cold
             at /home/matthias/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/salsa-0.28.2/src/function/fetch.rs:157:14
  30: <salsa::function::IngredientImpl<<hir_ty::infer::InferenceResult>::for_body::_::for_body__Configuration_>>::refresh_memo
             at /home/matthias/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/salsa-0.28.2/src/function/fetch.rs:69:38
  31: <salsa::function::IngredientImpl<<hir_ty::infer::InferenceResult>::for_body::_::for_body__Configuration_>>::fetch
             at /home/matthias/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/salsa-0.28.2/src/function/fetch.rs:29:25
  32: <hir_ty::infer::InferenceResult>::for_body::for_body_::{closure#0}
             at /home/matthias/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/salsa-macro-rules-0.28.2/src/setup_tracked_fn.rs:110:66
  33: <salsa::attach::Attached>::attach::<dyn hir_ty::db::HirDatabase, &hir_ty::infer::InferenceResult, <hir_ty::infer::InferenceResult>::for_body::for_body_::{closure#0}>
             at /home/matthias/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/salsa-0.28.2/src/attach.rs:88:9
  34: salsa::attach::attach::<&hir_ty::infer::InferenceResult, dyn hir_ty::db::HirDatabase, <hir_ty::infer::InferenceResult>::for_body::for_body_::{closure#0}>::{closure#0}
             at /home/matthias/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/salsa-0.28.2/src/attach.rs:178:15
  35: <std::thread::local::LocalKey<salsa::attach::Attached>>::try_with::<salsa::attach::attach<&hir_ty::infer::InferenceResult, dyn hir_ty::db::HirDatabase, <hir_ty::infer::InferenceResult>::for_body::for_body_::{closure#0}>::{closure#0}, &hir_ty::infer::InferenceResult>
             at /home/matthias/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:464:12
  36: <std::thread::local::LocalKey<salsa::attach::Attached>>::with::<salsa::attach::attach<&hir_ty::infer::InferenceResult, dyn hir_ty::db::HirDatabase, <hir_ty::infer::InferenceResult>::for_body::for_body_::{closure#0}>::{closure#0}, &hir_ty::infer::InferenceResult>
             at /home/matthias/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:428:20
  37: salsa::attach::attach::<&hir_ty::infer::InferenceResult, dyn hir_ty::db::HirDatabase, <hir_ty::infer::InferenceResult>::for_body::for_body_::{closure#0}>
             at /home/matthias/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/salsa-0.28.2/src/attach.rs:176:14
  38: <hir_ty::infer::InferenceResult>::for_body::for_body_
             at /home/matthias/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/salsa-macro-rules-0.28.2/src/setup_tracked_fn.rs:100:13
  39: <hir_ty::infer::InferenceResult>::for_body
             at /home/matthias/vcs/github/rust-analyzer/crates/hir-ty/src/infer.rs:1082:1
  40: <hir_ty::infer::InferenceResult>::of::<hir_def::DefWithBodyId>
             at /home/matthias/vcs/github/rust-analyzer/crates/hir-ty/src/infer.rs:1107:47
  41: <hir::semantics::SemanticsImpl>::with_all_infers_for_store
             at /home/matthias/vcs/github/rust-analyzer/crates/hir/src/semantics.rs:2255:26
  42: <hir::semantics::SemanticsImpl>::get_unsafe_ops
             at /home/matthias/vcs/github/rust-analyzer/crates/hir/src/semantics.rs:1981:14
  43: ide::syntax_highlighting::traverse::{closure#2}
             at /home/matthias/vcs/github/rust-analyzer/crates/ide/src/syntax_highlighting.rs:430:41
  44: <std::collections::hash::map::Entry<hir::ExpressionStoreOwner, std::collections::hash::set::HashSet<hir_expand::files::InFileWrapper<hir_expand::HirFileId, syntax::ptr::AstPtr<either::Either<syntax::ast::generated::nodes::Expr, syntax::ast::generated::nodes::Pat>>>, rustc_hash::FxBuildHasher>>>::or_insert_with::<ide::syntax_highlighting::traverse::{closure#2}>::{closure#0}
             at /home/matthias/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/collections/hash/map.rs:2541:55
  45: <std::collections::hash::map::Entry<hir::ExpressionStoreOwner, std::collections::hash::set::HashSet<hir_expand::files::InFileWrapper<hir_expand::HirFileId, syntax::ptr::AstPtr<either::Either<syntax::ast::generated::nodes::Expr, syntax::ast::generated::nodes::Pat>>>, rustc_hash::FxBuildHasher>>>::or_try_insert_with::<<std::collections::hash::map::Entry<hir::ExpressionStoreOwner, std::collections::hash::set::HashSet<hir_expand::files::InFileWrapper<hir_expand::HirFileId, syntax::ptr::AstPtr<either::Either<syntax::ast::generated::nodes::Expr, syntax::ast::generated::nodes::Pat>>>, rustc_hash::FxBuildHasher>>>::or_insert_with<ide::syntax_highlighting::traverse::{closure#2}>::{closure#0}, !>
             at /home/matthias/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/collections/hash/map.rs:2576:46
  46: <std::collections::hash::map::Entry<hir::ExpressionStoreOwner, std::collections::hash::set::HashSet<hir_expand::files::InFileWrapper<hir_expand::HirFileId, syntax::ptr::AstPtr<either::Either<syntax::ast::generated::nodes::Expr, syntax::ast::generated::nodes::Pat>>>, rustc_hash::FxBuildHasher>>>::or_insert_with::<ide::syntax_highlighting::traverse::{closure#2}>
             at /home/matthias/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/collections/hash/map.rs:2541:14
  47: ide::syntax_highlighting::traverse
             at /home/matthias/vcs/github/rust-analyzer/crates/ide/src/syntax_highlighting.rs:430:18
  48: ide::syntax_highlighting::highlight
             at /home/matthias/vcs/github/rust-analyzer/crates/ide/src/syntax_highlighting.rs:222:5
  49: ide::syntax_highlighting::html::highlight_as_html_with_config
             at /home/matthias/vcs/github/rust-analyzer/crates/ide/src/syntax_highlighting/html.rs:34:21
  50: ide::syntax_highlighting::html::highlight_as_html
             at /home/matthias/vcs/github/rust-analyzer/crates/ide/src/syntax_highlighting/html.rs:60:5
  51: <ide::Analysis>::highlight_as_html::{closure#0}
             at /home/matthias/vcs/github/rust-analyzer/crates/ide/src/lib.rs:778:27
  52: <ide::Analysis>::with_db::<<ide::Analysis>::highlight_as_html::{closure#0}, alloc::string::String>::{closure#0}::{closure#0}
             at /home/matthias/vcs/github/rust-analyzer/crates/ide/src/lib.rs:975:70
  53: std::panicking::catch_unwind::do_call::<<ide::Analysis>::with_db<<ide::Analysis>::highlight_as_html::{closure#0}, alloc::string::String>::{closure#0}::{closure#0}, alloc::string::String>
             at /home/matthias/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panicking.rs:576:43
  54: std::panicking::catch_unwind::<alloc::string::String, <ide::Analysis>::with_db<<ide::Analysis>::highlight_as_html::{closure#0}, alloc::string::String>::{closure#0}::{closure#0}>
             at /home/matthias/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panicking.rs:544:19
  55: std::panic::catch_unwind::<<ide::Analysis>::with_db<<ide::Analysis>::highlight_as_html::{closure#0}, alloc::string::String>::{closure#0}::{closure#0}, alloc::string::String>
             at /home/matthias/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panic.rs:359:14
  56: <salsa::cancelled::Cancelled>::catch::<<ide::Analysis>::with_db<<ide::Analysis>::highlight_as_html::{closure#0}, alloc::string::String>::{closure#0}::{closure#0}, alloc::string::String>
             at /home/matthias/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/salsa-0.28.2/src/cancelled.rs:36:15
  57: <ide::Analysis>::with_db::<<ide::Analysis>::highlight_as_html::{closure#0}, alloc::string::String>::{closure#0}
             at /home/matthias/vcs/github/rust-analyzer/crates/ide/src/lib.rs:975:50
  58: <hir_ty::next_solver::interner::tls_db::Attached>::attach_allow_change::<core::result::Result<alloc::string::String, salsa::cancelled::Cancelled>, <ide::Analysis>::with_db<<ide::Analysis>::highlight_as_html::{closure#0}, alloc::string::String>::{closure#0}>
             at /home/matthias/vcs/github/rust-analyzer/crates/hir-ty/src/next_solver/interner.rs:2482:13
  59: hir_ty::next_solver::interner::tls_db::attach_db_allow_change::<core::result::Result<alloc::string::String, salsa::cancelled::Cancelled>, <ide::Analysis>::with_db<<ide::Analysis>::highlight_as_html::{closure#0}, alloc::string::String>::{closure#0}>::{closure#0}
             at /home/matthias/vcs/github/rust-analyzer/crates/hir-ty/src/next_solver/interner.rs:2505:46
  60: <std::thread::local::LocalKey<hir_ty::next_solver::interner::tls_db::Attached>>::try_with::<hir_ty::next_solver::interner::tls_db::attach_db_allow_change<core::result::Result<alloc::string::String, salsa::cancelled::Cancelled>, <ide::Analysis>::with_db<<ide::Analysis>::highlight_as_html::{closure#0}, alloc::string::String>::{closure#0}>::{closure#0}, core::result::Result<alloc::string::String, salsa::cancelled::Cancelled>>
             at /home/matthias/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:464:12
  61: <std::thread::local::LocalKey<hir_ty::next_solver::interner::tls_db::Attached>>::with::<hir_ty::next_solver::interner::tls_db::attach_db_allow_change<core::result::Result<alloc::string::String, salsa::cancelled::Cancelled>, <ide::Analysis>::with_db<<ide::Analysis>::highlight_as_html::{closure#0}, alloc::string::String>::{closure#0}>::{closure#0}, core::result::Result<alloc::string::String, salsa::cancelled::Cancelled>>
             at /home/matthias/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:428:20
  62: hir_ty::next_solver::interner::tls_db::attach_db_allow_change::<core::result::Result<alloc::string::String, salsa::cancelled::Cancelled>, <ide::Analysis>::with_db<<ide::Analysis>::highlight_as_html::{closure#0}, alloc::string::String>::{closure#0}>
             at /home/matthias/vcs/github/rust-analyzer/crates/hir-ty/src/next_solver/interner.rs:2505:19
  63: <ide::Analysis>::with_db::<<ide::Analysis>::highlight_as_html::{closure#0}, alloc::string::String>
             at /home/matthias/vcs/github/rust-analyzer/crates/ide/src/lib.rs:975:9
  64: <ide::Analysis>::highlight_as_html
             at /home/matthias/vcs/github/rust-analyzer/crates/ide/src/lib.rs:778:14
  65: <rust_analyzer::cli::flags::Highlight>::run
             at /home/matthias/vcs/github/rust-analyzer/crates/rust-analyzer/src/cli/highlight.rs:13:29
  66: rust_analyzer::actual_main
             at /home/matthias/vcs/github/rust-analyzer/crates/rust-analyzer/src/bin/main.rs:73:55
  67: rust_analyzer::main
             at /home/matthias/vcs/github/rust-analyzer/crates/rust-analyzer/src/bin/main.rs:32:9
  68: <fn() -> core::result::Result<std::process::ExitCode, anyhow::Error> as core::ops::function::FnOnce<()>>::call_once
             at /home/matthias/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

rust-analyzer 0.0.0 (67e3c11255 2026-08-11)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions