mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 13:03:31 +00:00
Fix some grammar / spelling mistakes
This commit is contained in:
parent
5983d3745a
commit
c0107d2ea6
2 changed files with 3 additions and 3 deletions
|
@ -43,7 +43,7 @@ mod handlers {
|
|||
pub(crate) mod unresolved_module;
|
||||
pub(crate) mod unresolved_proc_macro;
|
||||
|
||||
// The handlers bellow are unusual, the implement the diagnostics as well.
|
||||
// The handlers below are unusual, the implement the diagnostics as well.
|
||||
pub(crate) mod field_shorthand;
|
||||
pub(crate) mod useless_braces;
|
||||
pub(crate) mod unlinked_file;
|
||||
|
|
|
@ -461,9 +461,9 @@ Mind the code--architecture gap: at the moment, we are using fewer feature flags
|
|||
In Rust, it is easy (often too easy) to add serialization to any type by adding `#[derive(Serialize)]`.
|
||||
This easiness is misleading -- serializable types impose significant backwards compatability constraints.
|
||||
If a type is serializable, then it is a part of some IPC boundary.
|
||||
You often don't control the other side of this boundary, so changing serializable types are hard.
|
||||
You often don't control the other side of this boundary, so changing serializable types is hard.
|
||||
|
||||
For this reason, the types in `ide`, `base_db` and bellow are not serializable by design.
|
||||
For this reason, the types in `ide`, `base_db` and below are not serializable by design.
|
||||
If such types need to cross an IPC boundary, then the client of rust-analyzer needs to provide custom, client-specific serialization format.
|
||||
This isolates backwards compatibility and migration concerns to a specific client.
|
||||
|
||||
|
|
Loading…
Reference in a new issue