about summary refs log tree commit diff
path: root/src/libsyntax/print
diff options
context:
space:
mode:
authorOliver Schneider <git-no-reply-9879165716479413131@oli-obk.de>2018-03-30 13:06:34 +0200
committerOliver Schneider <git-no-reply-9879165716479413131@oli-obk.de>2018-04-07 09:24:35 +0200
commit679657b863c2a53a3052d8af9defbce48e12db10 (patch)
treeff837586031384aec5febe548a17d1152bacd204 /src/libsyntax/print
parentee1014e50570e4572980e2496634cbb0eac768dd (diff)
downloadrust-679657b863c2a53a3052d8af9defbce48e12db10.tar.gz
rust-679657b863c2a53a3052d8af9defbce48e12db10.zip
Inject the `compiler_builtins` crate whenever the `core` crate is injected
Diffstat (limited to 'src/libsyntax/print')
-rw-r--r--src/libsyntax/print/pprust.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/print/pprust.rs b/src/libsyntax/print/pprust.rs
index 8d42206c5cc..8168db19058 100644
--- a/src/libsyntax/print/pprust.rs
+++ b/src/libsyntax/print/pprust.rs
@@ -94,7 +94,7 @@ pub fn print_crate<'a>(cm: &'a CodeMap,
                        is_expanded: bool) -> io::Result<()> {
     let mut s = State::new_from_input(cm, sess, filename, input, out, ann, is_expanded);
 
-    if is_expanded && !std_inject::injected_crate_name().is_none() {
+    if is_expanded && std_inject::injected_crate_name().is_some() {
         // We need to print `#![no_std]` (and its feature gate) so that
         // compiling pretty-printed source won't inject libstd again.
         // However we don't want these attributes in the AST because