]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_resolve/src/late/diagnostics.rs
Rollup merge of #107608 - P1n3appl3:master, r=tmandry
[rust.git] / compiler / rustc_resolve / src / late / diagnostics.rs
index 37beff37c1fb9d988c33ae968afa86fb96370603..cee0a7f3c203d8e4eeb871f99f978ccfac100839 100644 (file)
@@ -1343,7 +1343,7 @@ fn smart_resolve_context_dependent_help(
                     "!",
                     Applicability::MaybeIncorrect,
                 );
-                if path_str == "try" && span.rust_2015() {
+                if path_str == "try" && span.is_rust_2015() {
                     err.note("if you want the `try` keyword, you need Rust 2018 or later");
                 }
             }