commit | 2dfe7de8b66c17b3f9025766597b8399394527b8 | [log] [tgz] |
---|---|---|
author | Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> | Sun Mar 24 15:39:15 2024 +0100 |
committer | Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> | Sun Mar 24 15:40:26 2024 +0100 |
tree | 97b43a88af4590ab8ddbf08f1b2b6e8840d62035 | |
parent | e265e3d5189513c42d037999d41a696369af9388 [diff] |
Handle panicking like rustc CTFE does Instead of using `core::fmt::format` to format panic messages, which may in turn panic too and cause recursive panics and other messy things, redirect `panic_fmt` to `const_panic_fmt` like CTFE, which in turn goes to `panic_display` and does the things normally. See the tests for the full call stack.
rust-analyzer is a modular compiler frontend for the Rust language. It is a part of a larger rls-2.0 effort to create excellent IDE support for Rust.
https://rust-analyzer.github.io/manual.html#installation
If you want to contribute to rust-analyzer or are just curious about how things work under the hood, check the ./docs/dev folder.
If you want to use rust-analyzer's language server with your editor of choice, check the manual folder. It also contains some tips & tricks to help you be more productive when using rust-analyzer.
See the corresponding sections of the manual.
For usage and troubleshooting requests, please use “IDEs and Editors” category of the Rust forum:
https://users.rust-lang.org/c/ide/14
For questions about development and implementation, join rust-analyzer working group on Zulip:
https://rust-lang.zulipchat.com/#narrow/stream/185405-t-compiler.2Frust-analyzer
rust-analyzer is primarily distributed under the terms of both the MIT license and the Apache License (Version 2.0).
See LICENSE-APACHE and LICENSE-MIT for details.