about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-03-28 13:35:33 +0100
committerGitHub <noreply@github.com>2019-03-28 13:35:33 +0100
commit4720fcac4c8a9667f8160a67260a080a2553cd58 (patch)
tree0d6a3c59aff79089cf7ba067dd2518a362b33195 /src/libstd/sys/unix/stack_overflow.rs
parentedad34b3d7425248562018cf4234f46d73805dce (diff)
parentf4742f46fe540e289888eec0bac077ff606f63c5 (diff)
downloadrust-4720fcac4c8a9667f8160a67260a080a2553cd58.tar.gz
rust-4720fcac4c8a9667f8160a67260a080a2553cd58.zip
Rollup merge of #59216 - stepnivlk:type_dependent_defs-wrappers, r=oli-obk
Type dependent defs wrappers

First of all, forgive me if something would seem lame to you or I offend some rule (although I tried to read through docs), this is my first PR.

Issue: https://github.com/rust-lang/rust/issues/59094

This PR adds 3 helper methods to `TypeckTables`:
* `opt_type_dependent_def`
* `opt_type_dependent_def_id`
* `type_dependent_def_id`

I didn't add `type_dependent_def` as was proposed in the issue simply because it wasn't used anywhere in the code. Only non-option wrapped`type_dependent_defs()[]` accesses were found in clippy which always called `def_id()` on result.
Speaking of clippy, should I open separate PR in its own repo, given it's used as submodule here?

Sry it took me so long, as I said I'm new here and I had tough week :).
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions