mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-15 06:33:58 +00:00
Ban println in lsp_server
This commit is contained in:
parent
c9273828b3
commit
6fbad0619b
2 changed files with 23 additions and 4 deletions
|
@ -1,6 +1,26 @@
|
||||||
//! FIXME: write short doc here
|
//! Implementation of the LSP for rust-analyzer.
|
||||||
|
//!
|
||||||
|
//! This crate takes Rust-specific analysis results from ra_ide_api and
|
||||||
|
//! translates into LSP types.
|
||||||
|
//!
|
||||||
|
//! It also is the root of all state. `world` module defines the bulk of the
|
||||||
|
//! state, and `main_loop` module defines the rules for modifying it.
|
||||||
#![recursion_limit = "512"]
|
#![recursion_limit = "512"]
|
||||||
|
|
||||||
|
#[allow(unused)]
|
||||||
|
macro_rules! println {
|
||||||
|
($($tt:tt)*) => {
|
||||||
|
compile_error!("stdout is locked, use eprintln")
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
#[allow(unused)]
|
||||||
|
macro_rules! print {
|
||||||
|
($($tt:tt)*) => {
|
||||||
|
compile_error!("stdout is locked, use eprint")
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
mod caps;
|
mod caps;
|
||||||
mod cargo_target_spec;
|
mod cargo_target_spec;
|
||||||
mod conv;
|
mod conv;
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
//! FIXME: write short doc here
|
//! `ra_lsp_server` binary
|
||||||
|
|
||||||
use flexi_logger::{Duplicate, Logger};
|
use flexi_logger::{Duplicate, Logger};
|
||||||
use lsp_server::Connection;
|
use lsp_server::Connection;
|
||||||
|
|
||||||
use ra_lsp_server::{show_message, Result, ServerConfig};
|
use ra_lsp_server::{show_message, Result, ServerConfig};
|
||||||
use ra_prof;
|
use ra_prof;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue