Svag matchende rim for diffused transistor