rust/src/librustc/infer
Mazdak Farrokhzad 5b6a5801fb
Rollup merge of #64802 - estebank:walk-parents-iterator, r=matthewjasper
Account for tail expressions when pointing at return type

When there's a type mismatch we make an effort to check if it was
caused by a function's return type. This logic now makes sure to
only point at the return type if the error happens in a tail
expression.

Turn `walk_parent_nodes` method into an iterator.

CC #39968, CC #40799.
2019-09-28 05:37:46 +02:00
..
canonical Rename subst::Kind to subst::GenericArg 2019-09-26 11:48:05 +01:00
error_reporting Rename Item.node to Item.kind 2019-09-26 18:21:48 +01:00
higher_ranked Unify all uses of 'gcx and 'tcx. 2019-06-14 18:58:23 +03:00
lexical_region_resolve Update README.md 2019-08-06 04:01:55 +02:00
nll_relate Rename subst::Kind to subst::GenericArg 2019-09-26 11:48:05 +01:00
opaque_types Rollup merge of #64802 - estebank:walk-parents-iterator, r=matthewjasper 2019-09-28 05:37:46 +02:00
outlives Rename subst::Kind to subst::GenericArg 2019-09-26 11:48:05 +01:00
region_constraints normalize use of backticks for compiler messages in remaining modules 2019-07-23 23:09:59 +02:00
at.rs rustc: remove 'x: 'y bounds (except from comments/strings). 2019-06-18 18:10:21 +03:00
combine.rs Rename sty to kind 2019-09-25 15:50:04 +01:00
equate.rs Rename sty to kind 2019-09-25 15:50:04 +01:00
freshen.rs Rename sty to kind 2019-09-25 15:50:04 +01:00
fudge.rs Rename sty to kind 2019-09-25 15:50:04 +01:00
glb.rs Infer consts consistently. Moved some logic into super_combined_consts, 2019-09-22 17:24:09 +12:00
lattice.rs Rename sty to kind 2019-09-25 15:50:04 +01:00
lub.rs Infer consts consistently. Moved some logic into super_combined_consts, 2019-09-22 17:24:09 +12:00
mod.rs Rollup merge of #64781 - Mark-Simulacrum:no-global-tcx, r=eddyb 2019-09-28 05:37:43 +02:00
resolve.rs Rename sty to kind 2019-09-25 15:50:04 +01:00
sub.rs Rename sty to kind 2019-09-25 15:50:04 +01:00
type_variable.rs Rename sty to kind 2019-09-25 15:50:04 +01:00
unify_key.rs Unify all uses of 'gcx and 'tcx. 2019-06-14 18:58:23 +03:00