What material is this toilet water supply line?
That is either a painted or plated 1/2" copper line. If it is plated, the plating is failing or failed. Either way take a strip of emery cloth and clean it up before adding the compression fitting