Apparently my RFC isn’t really an RFC as I don’t have a clear idea on it, so I’m moving the discussion over here. The RFC in question is: https://github.com/rust-lang/rfcs/pull/170.
What I propose is to provide means to run custom codegen plugins, so that it’s possible to further extend compiling process. There’s a bunch of specific cases, that are not that interesting to be implemented in core rust but still important to other developers; for me personally that’s flexible linking and inline assembly options.