aboutsummaryrefslogtreecommitdiffstats
path: root/components/plugins
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2016-05-26 14:44:07 +0200
committerAnthony Ramine <n.oxyde@gmail.com>2016-05-26 14:44:07 +0200
commitb170acaae2a9fe6dbb397347f8508647c4c6d9e9 (patch)
tree7bda07271846a75d5d590dca4f9f2f08d9680638 /components/plugins
parent7040e2a5f7c71699fcb7d48016ee8f1ab7bef73c (diff)
downloadservo-b170acaae2a9fe6dbb397347f8508647c4c6d9e9.tar.gz
servo-b170acaae2a9fe6dbb397347f8508647c4c6d9e9.zip
Update Rust to 1.10.0-nightly (267cde259 2016-05-25)
Diffstat (limited to 'components/plugins')
-rw-r--r--components/plugins/lints/transmute_type.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/plugins/lints/transmute_type.rs b/components/plugins/lints/transmute_type.rs
index f151439d0c7..cc7acf5c64f 100644
--- a/components/plugins/lints/transmute_type.rs
+++ b/components/plugins/lints/transmute_type.rs
@@ -27,7 +27,7 @@ impl LateLintPass for TransmutePass {
match expr.node {
hir::ExprPath(_, ref path) => {
if path.segments.last()
- .map_or(false, |ref segment| segment.identifier.name.as_str() == "transmute") &&
+ .map_or(false, |ref segment| segment.name.as_str() == "transmute") &&
args.len() == 1 {
let tcx = cx.tcx;
cx.span_lint(TRANSMUTE_TYPE_LINT, ex.span,