context: produce a nicer panic message for a nil WithValue key

Change-Id: I2e8ae403622ba7131cadaba506100d79613183f1
Reviewed-on: https://go-review.googlesource.com/22601
Reviewed-by: Russ Cox <rsc@golang.org>
Reviewed-by: Andrew Gerrand <adg@golang.org>
diff --git a/src/context/context.go b/src/context/context.go
index da294b1..5184b94 100644
--- a/src/context/context.go
+++ b/src/context/context.go
@@ -428,6 +428,9 @@
 //
 // The provided key must be comparable.
 func WithValue(parent Context, key, val interface{}) Context {
+	if key == nil {
+		panic("nil key")
+	}
 	if !reflect.TypeOf(key).Comparable() {
 		panic("key is not comparable")
 	}