Rustup to *rustc 1.13.0-nightly (f1f40f850 2016-09-09)*
This commit is contained in:
@@ -57,7 +57,7 @@ pub struct MutexAtomic;
|
||||
impl LateLintPass for MutexAtomic {
|
||||
fn check_expr(&mut self, cx: &LateContext, expr: &Expr) {
|
||||
let ty = cx.tcx.expr_ty(expr);
|
||||
if let ty::TyStruct(_, subst) = ty.sty {
|
||||
if let ty::TyAdt(_, subst) = ty.sty {
|
||||
if match_type(cx, ty, &paths::MUTEX) {
|
||||
let mutex_param = &subst.type_at(0).sty;
|
||||
if let Some(atomic_name) = get_atomic_name(mutex_param) {
|
||||
|
||||
Reference in New Issue
Block a user