       (funcall load-fn (expand-file-name "packages.el" doom-core-dir))
       (cl-loop for (module . submodule) in (doom--module-pairs)
                for path = (doom-module-path module submodule "packages.el")
-               do
-               (let ((doom--module (cons module submodule)))
-                 (funcall load-fn path t))))))
+               do (funcall load-fn path t)))))
 
 (defun doom-initialize-modules (modules)
   "Adds MODULES to `doom-modules'. MODULES must be in mplist format.

           for path = (doom-module-path module submodule append-file)
           if (file-exists-p path)
           collect path))



(defun doom--display-benchmark ()
  (message "Loaded %s packages in %.03fs"

      (unless loaded-p
        (doom-module-enable module submodule flags))
      `(condition-case-unless-debug ex
           (load! config ,(doom-module-path module submodule) t)
         ('error
          (lwarn 'doom-modules :error
                 "%s in '%s %s' -> %s"
