mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 23:12:02 +00:00
Disable doctests
This commit is contained in:
parent
52389657c5
commit
7e2f4b30db
@ -3,3 +3,6 @@ edition = "2018"
|
||||
name = "ra_arena"
|
||||
version = "0.1.0"
|
||||
authors = ["rust-analyzer developers"]
|
||||
|
||||
[lib]
|
||||
doctest = false
|
||||
|
@ -4,6 +4,9 @@ name = "ra_assists"
|
||||
version = "0.1.0"
|
||||
authors = ["rust-analyzer developers"]
|
||||
|
||||
[lib]
|
||||
doctest = false
|
||||
|
||||
[dependencies]
|
||||
format-buf = "1.0.0"
|
||||
join_to_string = "0.1.3"
|
||||
|
@ -4,6 +4,9 @@ name = "ra_batch"
|
||||
version = "0.1.0"
|
||||
authors = ["rust-analyzer developers"]
|
||||
|
||||
[lib]
|
||||
doctest = false
|
||||
|
||||
[dependencies]
|
||||
log = "0.4.5"
|
||||
rustc-hash = "1.0"
|
||||
|
@ -4,6 +4,9 @@ name = "ra_cfg"
|
||||
version = "0.1.0"
|
||||
authors = ["rust-analyzer developers"]
|
||||
|
||||
[lib]
|
||||
doctest = false
|
||||
|
||||
[dependencies]
|
||||
rustc-hash = "1.0.1"
|
||||
|
||||
|
@ -4,6 +4,9 @@ name = "ra_db"
|
||||
version = "0.1.0"
|
||||
authors = ["rust-analyzer developers"]
|
||||
|
||||
[lib]
|
||||
doctest = false
|
||||
|
||||
[dependencies]
|
||||
salsa = "0.13.0"
|
||||
relative-path = "1.0.0"
|
||||
|
@ -5,6 +5,9 @@ version = "0.1.0"
|
||||
authors = ["rust-analyzer developers"]
|
||||
publish = false
|
||||
|
||||
[lib]
|
||||
doctest = false
|
||||
|
||||
[dependencies]
|
||||
itertools = "0.8.0"
|
||||
|
||||
|
@ -4,6 +4,9 @@ name = "ra_hir"
|
||||
version = "0.1.0"
|
||||
authors = ["rust-analyzer developers"]
|
||||
|
||||
[lib]
|
||||
doctest = false
|
||||
|
||||
[dependencies]
|
||||
arrayvec = "0.5.1"
|
||||
log = "0.4.5"
|
||||
|
@ -79,7 +79,7 @@ pub enum TypeCtor {
|
||||
///
|
||||
/// For example the type of `bar` here:
|
||||
///
|
||||
/// ```rust
|
||||
/// ```
|
||||
/// fn foo() -> i32 { 1 }
|
||||
/// let bar = foo; // bar: fn() -> i32 {foo}
|
||||
/// ```
|
||||
@ -89,7 +89,7 @@ pub enum TypeCtor {
|
||||
///
|
||||
/// For example the type of `bar` here:
|
||||
///
|
||||
/// ```rust
|
||||
/// ```
|
||||
/// fn foo() -> i32 { 1 }
|
||||
/// let bar: fn() -> i32 = foo;
|
||||
/// ```
|
||||
|
@ -4,6 +4,9 @@ name = "ra_hir_def"
|
||||
version = "0.1.0"
|
||||
authors = ["rust-analyzer developers"]
|
||||
|
||||
[lib]
|
||||
doctest = false
|
||||
|
||||
[dependencies]
|
||||
log = "0.4.5"
|
||||
once_cell = "1.0.1"
|
||||
|
@ -165,7 +165,7 @@ where
|
||||
/// crate::foo!();
|
||||
/// ```
|
||||
///
|
||||
/// Well, this code compiles, bacause the plain path `foo` in `use` is searched
|
||||
/// Well, this code compiles, because the plain path `foo` in `use` is searched
|
||||
/// in the legacy textual scope only.
|
||||
/// ```rust
|
||||
/// macro_rules! foo { () => {} }
|
||||
|
@ -4,6 +4,9 @@ name = "ra_hir_expand"
|
||||
version = "0.1.0"
|
||||
authors = ["rust-analyzer developers"]
|
||||
|
||||
[lib]
|
||||
doctest = false
|
||||
|
||||
[dependencies]
|
||||
log = "0.4.5"
|
||||
|
||||
|
@ -4,6 +4,9 @@ name = "ra_ide_api"
|
||||
version = "0.1.0"
|
||||
authors = ["rust-analyzer developers"]
|
||||
|
||||
[lib]
|
||||
doctest = false
|
||||
|
||||
[features]
|
||||
wasm = []
|
||||
|
||||
|
@ -4,6 +4,9 @@ name = "ra_lsp_server"
|
||||
version = "0.1.0"
|
||||
authors = ["rust-analyzer developers"]
|
||||
|
||||
[lib]
|
||||
doctest = false
|
||||
|
||||
[dependencies]
|
||||
threadpool = "1.7.1"
|
||||
relative-path = "1.0.0"
|
||||
|
@ -4,6 +4,9 @@ name = "ra_mbe"
|
||||
version = "0.1.0"
|
||||
authors = ["rust-analyzer developers"]
|
||||
|
||||
[lib]
|
||||
doctest = false
|
||||
|
||||
[dependencies]
|
||||
ra_syntax = { path = "../ra_syntax" }
|
||||
ra_parser = { path = "../ra_parser" }
|
||||
@ -14,4 +17,3 @@ log = "0.4.5"
|
||||
|
||||
[dev-dependencies]
|
||||
test_utils = { path = "../test_utils" }
|
||||
|
||||
|
@ -5,5 +5,8 @@ version = "0.1.0"
|
||||
authors = ["rust-analyzer developers"]
|
||||
publish = false
|
||||
|
||||
[lib]
|
||||
doctest = false
|
||||
|
||||
[dependencies]
|
||||
drop_bomb = "0.1.4"
|
||||
|
@ -5,6 +5,9 @@ version = "0.1.0"
|
||||
authors = ["rust-analyzer developers"]
|
||||
publish = false
|
||||
|
||||
[lib]
|
||||
doctest = false
|
||||
|
||||
[dependencies]
|
||||
once_cell = "1.0.1"
|
||||
itertools = "0.8.0"
|
||||
|
@ -4,6 +4,9 @@ name = "ra_project_model"
|
||||
version = "0.1.0"
|
||||
authors = ["rust-analyzer developers"]
|
||||
|
||||
[lib]
|
||||
doctest = false
|
||||
|
||||
[dependencies]
|
||||
log = "0.4.5"
|
||||
rustc-hash = "1.0"
|
||||
|
@ -7,6 +7,9 @@ license = "MIT OR Apache-2.0"
|
||||
description = "Comment and whitespace preserving parser for the Rust langauge"
|
||||
repository = "https://github.com/rust-analyzer/rust-analyzer"
|
||||
|
||||
[lib]
|
||||
doctest = false
|
||||
|
||||
[dependencies]
|
||||
itertools = "0.8.0"
|
||||
rowan = "0.6.1"
|
||||
|
@ -5,6 +5,9 @@ version = "0.1.0"
|
||||
authors = ["rust-analyzer developers"]
|
||||
publish = false
|
||||
|
||||
[lib]
|
||||
doctest = false
|
||||
|
||||
[dependencies]
|
||||
text_unit = "0.1.6"
|
||||
|
||||
|
@ -4,6 +4,9 @@ name = "ra_tt"
|
||||
version = "0.1.0"
|
||||
authors = ["rust-analyzer developers"]
|
||||
|
||||
[lib]
|
||||
doctest = false
|
||||
|
||||
[dependencies]
|
||||
# ideally, `serde` should be enabled by `ra_lsp_server`, but we enable it here
|
||||
# to reduce number of compilations
|
||||
|
@ -4,6 +4,9 @@ name = "ra_vfs_glob"
|
||||
version = "0.1.0"
|
||||
authors = ["rust-analyzer developers"]
|
||||
|
||||
[lib]
|
||||
doctest = false
|
||||
|
||||
[dependencies]
|
||||
ra_vfs = "0.5.0"
|
||||
globset = "0.4.4"
|
||||
|
@ -4,6 +4,9 @@ name = "test_utils"
|
||||
version = "0.1.0"
|
||||
authors = ["rust-analyzer developers"]
|
||||
|
||||
[lib]
|
||||
doctest = false
|
||||
|
||||
[dependencies]
|
||||
difference = "2.0.0"
|
||||
text_unit = "0.1.2"
|
||||
|
@ -4,7 +4,7 @@
|
||||
//! See <https://matklad.github.io/2018/06/18/a-trick-for-test-maintenance.html>
|
||||
//! for details, but the TL;DR is that you write your test as
|
||||
//!
|
||||
//! ```rust,no_run
|
||||
//! ```
|
||||
//! #[test]
|
||||
//! fn test_foo() {
|
||||
//! covers!(test_foo);
|
||||
@ -13,7 +13,7 @@
|
||||
//!
|
||||
//! and in the code under test you write
|
||||
//!
|
||||
//! ```rust,no_run
|
||||
//! ```
|
||||
//! # use test_utils::tested_by;
|
||||
//! # fn some_condition() -> bool { true }
|
||||
//! fn foo() {
|
||||
|
Loading…
Reference in New Issue
Block a user