         ))))
 
 (defn update-rc-from-ns
-  [state rc {:keys [name require-order require-macros use-macros] :as ast}]
+  [state rc {:keys [name require-order] :as ast}]
   {:pre [(compiler-state? state)]}
   (let [require-order
         (if (= 'cljs.core name)

          (if (identical? peek eof-sentinel)
            (throw (ex-info "file is empty" {:name name}))
            (let [ast (-> (util/parse-ns peek)
                          (rewrite-clojure-requires state))]
              (-> state
                  (update-rc-from-ns rc ast)
                  (assoc :cljc cljc?)))))

        :require-order (into [] (map munge-goog-ns) (.getRequires deps))
        :provides (into #{} (map munge-goog-ns) (.getProvides deps))))))

(defn macros-from-ns-ast [state {:keys [require-macros use-macros]}]
  {:pre [(compiler-state? state)]}
  (into #{} (concat (vals require-macros) (vals use-macros))))

(defn rewrite-ns-aliases
  [{:keys [requires uses require-order] :as ast}
   {:keys [ns-alias-fn] :as state}]
  (let [should-rewrite
