]> git.lizzy.rs Git - rust.git/commit
fix "X is not a member of trait Y" span labels
authorAlex Burka <durka42+github@gmail.com>
Mon, 12 Sep 2016 21:47:59 +0000 (17:47 -0400)
committerAlex Burka <durka42@gmail.com>
Tue, 13 Sep 2016 03:13:13 +0000 (03:13 +0000)
commit0a62676c73ce8050941d571427dfb621b004a3b8
treeb8c4ed20f0283bc0fed6840cbd661f24ee2e74b1
parent5531c314a2855aec368e811da6fcd9e98365af51
fix "X is not a member of trait Y" span labels

The span labels for associated types and consts were hardcoded to `Foo`
rather than substituting the name of the trait.

This also normalizes the wording for associated methods', traits', and
consts' span labels.

Fixes #36428.
src/librustc_resolve/lib.rs
src/test/compile-fail/E0407.rs
src/test/compile-fail/E0438.rs