types.attrTag: Remove substSubmodules

I haven't managed to trigger the error, and it turns out that this
method is optional.
Specifically, getSubmodules is unimplemented (and unimplementable),
the tests pass, and we seem to have good location info.

Changed files
-9
lib
-9
lib/types.nix
···
};
})
tags;
-
substSubModules = m:
-
attrTag
-
(mapAttrs
-
(n: opt:
-
opt // {
-
type = (opt.type or types.unspecified).substSubModules m;
-
}
-
)
-
tags);
check = v: isAttrs v && length (attrNames v) == 1 && tags?${head (attrNames v)};
merge = loc: defs:
let