diff options
| author | kennytm <kennytm@gmail.com> | 2018-05-06 03:29:19 +0800 |
|---|---|---|
| committer | kennytm <kennytm@gmail.com> | 2018-05-06 03:29:19 +0800 |
| commit | 169f58b712e793ea43b90a6008a21b777bf4102f (patch) | |
| tree | bdadb7958e88286d3f72542f467073255842fce4 /src/libcore/lib.rs | |
| parent | 02f6a0335f99378b2e7d630e00aabdeb57a5bd25 (diff) | |
| download | rust-169f58b712e793ea43b90a6008a21b777bf4102f.tar.gz rust-169f58b712e793ea43b90a6008a21b777bf4102f.zip | |
Added some simple documentation.
Diffstat (limited to 'src/libcore/lib.rs')
| -rw-r--r-- | src/libcore/lib.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libcore/lib.rs b/src/libcore/lib.rs index 37f9dcc7e32..54f35d17974 100644 --- a/src/libcore/lib.rs +++ b/src/libcore/lib.rs @@ -50,6 +50,14 @@ // Since libcore defines many fundamental lang items, all tests live in a // separate crate, libcoretest, to avoid bizarre issues. +// +// Here we explicitly #[cfg]-out this whole crate when testing. If we don't do +// this, both the generated test artifact and the linked libtest (which +// transitively includes libcore) will both define the same set of lang items, +// and this will cause the E0152 "duplicate lang item found" error. See +// discussion in #50466 for details. +// +// This cfg won't affect doc tests. #![cfg(not(test))] #![stable(feature = "core", since = "1.6.0")] |
