Correctly compute the set of protocol -> conformance mappings in name lookup.
Correctly compute the set of protocol -> conformance mappings in name lookup.

Getting this wrong caused very, very weird bugs with deduced
associated types. Fixes <rdar://problem/14418181>.


Swift SVN r7018

swiftix/swift.old,slavapestov/swift,JaSpa/swift,tardieu/swift,kusl/swift,dreamsxin/swift,shahmishal/swift,MukeshKumarS/Swift,harlanhaskins/swift,tardieu/swift,devincoughlin/swift,hughbe/swift,parkera/swift,calebd/swift,parkera/swift,LeoShimonaka/swift,alblue/swift,kentya6/swift,gregomni/swift,jmgc/swift,adrfer/swift,OscarSwanros/swift,roambotics/swift,slavapestov/swift,felix91gr/swift,roambotics/swift,IngmarStein/swift,JGiola/swift,slavapestov/swift,milseman/swift,johnno1962d/swift,codestergit/swift,return/swift,aschwaighofer/swift,IngmarStein/swift,calebd/swift,jckarter/swift,allevato/swift,djwbrown/swift,huonw/swift,slavapestov/swift,gregomni/swift,gottesmm/swift,alblue/swift,glessard/swift,Jnosh/swift,amraboelela/swift,kusl/swift,manavgabhawala/swift,JGiola/swift,manavgabhawala/swift,gottesmm/swift,MukeshKumarS/Swift,frootloops/swift,airspeedswift/swift,apple/swift,jopamer/swift,frootloops/swift,xedin/swift,russbishop/swift,sschiau/swift,djwbrown/swift,natecook1000/swift,Jnosh/swift,kusl/swift,deyton/swift,amraboelela/swift,adrfer/swift,parkera/swift,milseman/swift,natecook1000/swift,calebd/swift,LeoShimonaka/swift,djwbrown/swift,CodaFi/swift,bitjammer/swift,atrick/swift,sschiau/swift,mightydeveloper/swift,tinysun212/swift-windows,shajrawi/swift,lorentey/swift,gmilos/swift,hooman/swift,LeoShimonaka/swift,ken0nek/swift,Jnosh/swift,SwiftAndroid/swift,gribozavr/swift,uasys/swift,ahoppen/swift,huonw/swift,jckarter/swift,JGiola/swift,mightydeveloper/swift,IngmarStein/swift,codestergit/swift,cbrentharris/swift,SwiftAndroid/swift,xedin/swift,tkremenek/swift,kentya6/swift,hughbe/swift,xedin/swift,allevato/swift,practicalswift/swift,djwbrown/swift,shahmishal/swift,practicalswift/swift,nathawes/swift,airspeedswift/swift,jckarter/swift,practicalswift/swift,devincoughlin/swift,devincoughlin/swift,gribozavr/swift,stephentyrone/swift,johnno1962d/swift,codestergit/swift,shajrawi/swift,Jnosh/swift,khizkhiz/swift,benlangmuir/swift,amraboelela/swift,rudkx/swift,gmilos/swift,allevato/swift,lorentey/swift,swiftix/swift.old,ben-ng/swift,bitjammer/swift,practicalswift/swift,LeoShimonaka/swift,stephentyrone/swift,gmilos/swift,apple/swift,ahoppen/swift,kstaring/swift,allevato/swift,johnno1962d/swift,arvedviehweger/swift,IngmarStein/swift,russbishop/swift,Ivacker/swift,JaSpa/swift,KrishMunot/swift,danielmartin/swift,hughbe/swift,aschwaighofer/swift,djwbrown/swift,zisko/swift,LeoShimonaka/swift,tardieu/swift,jtbandes/swift,jopamer/swift,stephentyrone/swift,apple/swift,austinzheng/swift,jckarter/swift,gottesmm/swift,jmgc/swift,uasys/swift,huonw/swift,codestergit/swift,xwu/swift,ahoppen/swift,JaSpa/swift,kperryua/swift,ken0nek/swift,apple/swift,jckarter/swift,mightydeveloper/swift,djwbrown/swift,swiftix/swift.old,KrishMunot/swift,KrishMunot/swift,sschiau/swift,swiftix/swift.old,zisko/swift,calebd/swift,hughbe/swift,zisko/swift,hooman/swift,khizkhiz/swift,aschwaighofer/swift,return/swift,jopamer/swift,adrfer/swift,nathawes/swift,lorentey/swift,roambotics/swift,harlanhaskins/swift,brentdax/swift,jckarter/swift,ken0nek/swift,frootloops/swift,xedin/swift,russbishop/swift,gottesmm/swift,JGiola/swift,aschwaighofer/swift,OscarSwanros/swift,hooman/swift,modocache/swift,emilstahl/swift,gmilos/swift,roambotics/swift,MukeshKumarS/Swift,alblue/swift,codestergit/swift,harlanhaskins/swift,harlanhaskins/swift,austinzheng/swift,zisko/swift,ken0nek/swift,milseman/swift,arvedviehweger/swift,practicalswift/swift,xwu/swift,therealbnut/swift,slavapestov/swift,karwa/swift,cbrentharris/swift,rudkx/swift,practicalswift/swift,Ivacker/swift,swiftix/swift,atrick/swift,Ivacker/swift,CodaFi/swift,Ivacker/swift,emilstahl/swift,LeoShimonaka/swift,natecook1000/swift,shahmishal/swift,tkremenek/swift,LeoShimonaka/swift,sdulal/swift,karwa/swift,bitjammer/swift,djwbrown/swift,huonw/swift,huonw/swift,kentya6/swift,return/swift,gmilos/swift,gribozavr/swift,gribozavr/swift,ahoppen/swift,uasys/swift,KrishMunot/swift,sschiau/swift,nathawes/swift,alblue/swift,tkremenek/swift,shahmishal/swift,sdulal/swift,CodaFi/swift,johnno1962d/swift,Jnosh/swift,tjw/swift,deyton/swift,russbishop/swift,mightydeveloper/swift,karwa/swift,kusl/swift,milseman/swift,MukeshKumarS/Swift,swiftix/swift.old,kentya6/swift,cbrentharris/swift,khizkhiz/swift,JaSpa/swift,milseman/swift,jtbandes/swift,sschiau/swift,CodaFi/swift,shahmishal/swift,kentya6/swift,devincoughlin/swift,kstaring/swift,natecook1000/swift,nathawes/swift,johnno1962d/swift,ken0nek/swift,sdulal/swift,MukeshKumarS/Swift,lorentey/swift,modocache/swift,jtbandes/swift,kentya6/swift,tardieu/swift,kstaring/swift,danielmartin/swift,jopamer/swift,tjw/swift,stephentyrone/swift,hooman/swift,modocache/swift,ben-ng/swift,natecook1000/swift,gottesmm/swift,austinzheng/swift,ahoppen/swift,jmgc/swift,shajrawi/swift,danielmartin/swift,hooman/swift,gmilos/swift,tinysun212/swift-windows,aschwaighofer/swift,allevato/swift,atrick/swift,austinzheng/swift,CodaFi/swift,therealbnut/swift,ben-ng/swift,johnno1962d/swift,rudkx/swift,russbishop/swift,ben-ng/swift,jmgc/swift,IngmarStein/swift,JaSpa/swift,harlanhaskins/swift,tardieu/swift,modocache/swift,gottesmm/swift,bitjammer/swift,allevato/swift,uasys/swift,kentya6/swift,emilstahl/swift,swiftix/swift.old,arvedviehweger/swift,zisko/swift,amraboelela/swift,xwu/swift,airspeedswift/swift,adrfer/swift,benlangmuir/swift,airspeedswift/swift,kstaring/swift,gribozavr/swift,CodaFi/swift,felix91gr/swift,brentdax/swift,nathawes/swift,cbrentharris/swift,felix91gr/swift,tjw/swift,modocache/swift,CodaFi/swift,apple/swift,khizkhiz/swift,xwu/swift,airspeedswift/swift,emilstahl/swift,mightydeveloper/swift,SwiftAndroid/swift,kperryua/swift,tkremenek/swift,gregomni/swift,Ivacker/swift,deyton/swift,Ivacker/swift,Ivacker/swift,swiftix/swift,harlanhaskins/swift,manavgabhawala/swift,jmgc/swift,dduan/swift,glessard/swift,ken0nek/swift,roambotics/swift,tjw/swift,deyton/swift,tinysun212/swift-windows,natecook1000/swift,swiftix/swift,emilstahl/swift,uasys/swift,codestergit/swift,felix91gr/swift,return/swift,natecook1000/swift,jtbandes/swift,sschiau/swift,OscarSwanros/swift,bitjammer/swift,dduan/swift,devincoughlin/swift,deyton/swift,sdulal/swift,cbrentharris/swift,lorentey/swift,jopamer/swift,gribozavr/swift,benlangmuir/swift,tinysun212/swift-windows,adrfer/swift,bitjammer/swift,amraboelela/swift,swiftix/swift,tkremenek/swift,shajrawi/swift,cbrentharris/swift,Jnosh/swift,shajrawi/swift,return/swift,benlangmuir/swift,karwa/swift,karwa/swift,stephentyrone/swift,kperryua/swift,MukeshKumarS/Swift,practicalswift/swift,therealbnut/swift,kperryua/swift,harlanhaskins/swift,shahmishal/swift,parkera/swift,mightydeveloper/swift,mightydeveloper/swift,sdulal/swift,kusl/swift,dduan/swift,kstaring/swift,xedin/swift,hughbe/swift,return/swift,ben-ng/swift,Ivacker/swift,OscarSwanros/swift,khizkhiz/swift,arvedviehweger/swift,tkremenek/swift,karwa/swift,atrick/swift,deyton/swift,practicalswift/swift,jmgc/swift,xwu/swift,lorentey/swift,alblue/swift,JaSpa/swift,xwu/swift,jtbandes/swift,austinzheng/swift,tinysun212/swift-windows,jopamer/swift,amraboelela/swift,parkera/swift,roambotics/swift,ben-ng/swift,bitjammer/swift,brentdax/swift,sdulal/swift,kentya6/swift,stephentyrone/swift,swiftix/swift.old,gribozavr/swift,gmilos/swift,hooman/swift,shahmishal/swift,glessard/swift,ken0nek/swift,milseman/swift,kusl/swift,slavapestov/swift,IngmarStein/swift,parkera/swift,SwiftAndroid/swift,alblue/swift,emilstahl/swift,tkremenek/swift,shahmishal/swift,gregomni/swift,SwiftAndroid/swift,frootloops/swift,rudkx/swift,aschwaighofer/swift,danielmartin/swift,danielmartin/swift,glessard/swift,zisko/swift,therealbnut/swift,shajrawi/swift,deyton/swift,OscarSwanros/swift,dduan/swift,calebd/swift,kusl/swift,tinysun212/swift-windows,tardieu/swift,devincoughlin/swift,adrfer/swift,gregomni/swift,dduan/swift,zisko/swift,karwa/swift,manavgabhawala/swift,kusl/swift,mightydeveloper/swift,danielmartin/swift,modocache/swift,emilstahl/swift,devincoughlin/swift,tjw/swift,atrick/swift,arvedviehweger/swift,calebd/swift,JGiola/swift,emilstahl/swift,xwu/swift,benlangmuir/swift,airspeedswift/swift,lorentey/swift,nathawes/swift,hughbe/swift,apple/swift,sdulal/swift,kstaring/swift,swiftix/swift,stephentyrone/swift,brentdax/swift,JaSpa/swift,slavapestov/swift,brentdax/swift,KrishMunot/swift,swiftix/swift,kperryua/swift,kperryua/swift,gottesmm/swift,amraboelela/swift,shajrawi/swift,brentdax/swift,ben-ng/swift,uasys/swift,rudkx/swift,sdulal/swift,danielmartin/swift,frootloops/swift,kperryua/swift,KrishMunot/swift,benlangmuir/swift,manavgabhawala/swift,uasys/swift,austinzheng/swift,IngmarStein/swift,Jnosh/swift,ahoppen/swift,MukeshKumarS/Swift,therealbnut/swift,SwiftAndroid/swift,OscarSwanros/swift,russbishop/swift,modocache/swift,KrishMunot/swift,frootloops/swift,kstaring/swift,atrick/swift,glessard/swift,OscarSwanros/swift,sschiau/swift,dduan/swift,nathawes/swift,lorentey/swift,xedin/swift,airspeedswift/swift,calebd/swift,codestergit/swift,therealbnut/swift,dreamsxin/swift,swiftix/swift,aschwaighofer/swift,cbrentharris/swift,arvedviehweger/swift,xedin/swift,tjw/swift,tjw/swift,sschiau/swift,hughbe/swift,JGiola/swift,khizkhiz/swift,return/swift,therealbnut/swift,karwa/swift,jtbandes/swift,devincoughlin/swift,gribozavr/swift,SwiftAndroid/swift,tardieu/swift,parkera/swift,alblue/swift,jopamer/swift,huonw/swift,shajrawi/swift,felix91gr/swift,cbrentharris/swift,gregomni/swift,manavgabhawala/swift,swiftix/swift.old,adrfer/swift,austinzheng/swift,jckarter/swift,milseman/swift,johnno1962d/swift,khizkhiz/swift,hooman/swift,arvedviehweger/swift,parkera/swift,xedin/swift,allevato/swift,huonw/swift,LeoShimonaka/swift,felix91gr/swift,russbishop/swift,glessard/swift,jmgc/swift,jtbandes/swift,felix91gr/swift,frootloops/swift,manavgabhawala/swift,tinysun212/swift-windows,rudkx/swift,brentdax/swift,dduan/swift