This commit is contained in:
memoryleak47
2018-04-05 13:04:00 +02:00
parent 4be5d360cd
commit 64ddb390ef
3 changed files with 3 additions and 3 deletions

View File

@@ -380,7 +380,7 @@ extern crate compiler_builtins;
// During testing, this crate is not actually the "real" std library, but rather
// it links to the real std library, which was compiled from this same source
// code. So any lang items std defines are conditionally excluded (or else they
// wolud generate duplicate lang item errors), and any globals it defines are
// would generate duplicate lang item errors), and any globals it defines are
// _not_ the globals used by "real" std. So this import, defined only during
// testing gives test-std access to real-std lang items and globals. See #2912
#[cfg(test)] extern crate std as realstd;