about summary refs log tree commit diff
path: root/src/test/ui/thinlto
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-03-19 15:16:59 +0100
committerGitHub <noreply@github.com>2019-03-19 15:16:59 +0100
commit1ec1c5da36fc707bacf0c2edfcce7a94e670bcc9 (patch)
tree0ad45b12e33bfb7b5e758b32e72e873755a1be97 /src/test/ui/thinlto
parent05e8051d75348fb593b4cd446c8292c8ff7f2bfd (diff)
parent698bbe52533e8ef07793b6a696cc89015a9dc7f6 (diff)
downloadrust-1ec1c5da36fc707bacf0c2edfcce7a94e670bcc9.tar.gz
rust-1ec1c5da36fc707bacf0c2edfcce7a94e670bcc9.zip
Rollup merge of #59275 - regexident:docs-self, r=joshtriplett
Replaced self-reflective explicit types with clearer `Self` or `Self::…` in stdlib docs

Many docs examples use explicit types instead of the semantically more clear `Self`/`Self::…` aliases.

By using the latter it's clear that the value's type depends on either `Self`, or an associated type of `Self`, instead of some constant type. It's also more consistent (and I'd argue correct), as the current docs aren't really consistent in this, as can be seen from the diff.

This is a best effort PR, as I was basically going through the docs manually, looking for offending examples. I'm sure I missed a few. Gotta start somewhere.
Diffstat (limited to 'src/test/ui/thinlto')
0 files changed, 0 insertions, 0 deletions