mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	Merge pull request #43081 from sttts/sttts-conversion-gen-dup-func-error
Automatic merge from submit-queue conversion-gen: make duplicate func error message readable Before you only got two hex pointer values.
This commit is contained in:
		@@ -162,7 +162,7 @@ func getManualConversionFunctions(context *generator.Context, pkg *types.Package
 | 
			
		||||
			key := conversionPair{inType.Elem, outType.Elem}
 | 
			
		||||
			// We might scan the same package twice, and that's OK.
 | 
			
		||||
			if v, ok := manualMap[key]; ok && v != nil && v.Name.Package != pkg.Path {
 | 
			
		||||
				panic(fmt.Sprintf("duplicate static conversion defined: %#v", key))
 | 
			
		||||
				panic(fmt.Sprintf("duplicate static conversion defined: %s -> %s", key.inType, key.outType))
 | 
			
		||||
			}
 | 
			
		||||
			manualMap[key] = f
 | 
			
		||||
		}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user