X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Flibrustc_lint%2Fnonstandard_style.rs;h=40781b0771d89d72a0161bb83ed933f54b21aeb2;hb=30c669819342dc09d6bd29dc72d0ff85381b71d2;hp=56d204f15d935897bc36d68324032baf38256f36;hpb=e3cc48a4ce96c93d42f9329c2dbc695c1cb1177b;p=rust.git diff --git a/src/librustc_lint/nonstandard_style.rs b/src/librustc_lint/nonstandard_style.rs index 56d204f15d9..40781b0771d 100644 --- a/src/librustc_lint/nonstandard_style.rs +++ b/src/librustc_lint/nonstandard_style.rs @@ -121,7 +121,7 @@ fn check_item(&mut self, cx: &LateContext, it: &hir::Item) { let has_repr_c = it.attrs .iter() .any(|attr| { - attr::find_repr_attrs(cx.tcx.sess.diagnostic(), attr) + attr::find_repr_attrs(&cx.tcx.sess.parse_sess, attr) .iter() .any(|r| r == &attr::ReprC) });