Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

panic: Failed to make ast node syntax::ast::generated::nodes::Name from text mod self; #18683

Closed
Veykril opened this issue Dec 13, 2024 · 0 comments · Fixed by #18700
Closed
Assignees
Labels
A-diagnostics diagnostics / error reporting C-bug Category: bug E-easy I-panic

Comments

@Veykril
Copy link
Member

Veykril commented Dec 13, 2024

struct S;
impl S {
    fn f(self) {
        self.self
    }
}
thread 'Worker' panicked at crates\syntax\src\ast\make.rs:117:5:
Failed to make ast node `syntax::ast::generated::nodes::Name` from text mod self;
stack backtrace:
   0: std::panicking::begin_panic_handler
             at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf\library/std\src\panicking.rs:665
   1: core::panicking::panic_fmt
             at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf\library/core\src\panicking.rs:74
   2: syntax::ast::make::name
   3: ide_diagnostics::handlers::unresolved_field::unresolved_field
   4: ide_diagnostics::semantic_diagnostics
   5: ide_diagnostics::full_diagnostics
   6: ra_salsa::Cancelled::catch
   7: rust_analyzer::handlers::request::handle_code_action
   8: core::ops::function::FnOnce::call_once{{vtable.shim}}
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-diagnostics diagnostics / error reporting C-bug Category: bug E-easy I-panic
Projects
None yet
2 participants