]> Cypherpunks repositories - gostls13.git/commit
cmd/doc: don't bother checking validity of symbols at top level
authorRob Pike <r@golang.org>
Thu, 7 Nov 2019 02:57:19 +0000 (13:57 +1100)
committerRob Pike <r@golang.org>
Thu, 7 Nov 2019 08:25:32 +0000 (08:25 +0000)
commit7a2baa9c48601e65bc8c8ed99d57a0d214b779ef
treeb502cddbabf1eee6d2f09e6c31c4ca63ddda25d4
parentf5949b60676bc253aca36fea91f9542e6d517f9e
cmd/doc: don't bother checking validity of symbols at top level

No need to check as pieces further down do so anyway:

%  go doc '&&.%$^'
doc: symbol && is not a type in package fmt installed in "fmt"
exit status 1
%

Removing this check allows 'go doc sort.interface' or 'go doc
types.type' to discover sort.Interface and go/types.Type.

Easily

Fixes #34656.

Change-Id: I84352e83dd7f91a232f45a44d1a52f019a1a9a06
Reviewed-on: https://go-review.googlesource.com/c/go/+/205778
Reviewed-by: Caleb Spare <cespare@gmail.com>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
src/cmd/doc/main.go