]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_mir/src/transform/function_references.rs
Removed test for unhandled case in function_item_references lint
[rust.git] / compiler / rustc_mir / src / transform / function_references.rs
index 8adeac7623bad92d1f89ddf2468481c096b6bc0b..97688c3ea162f0773ada026df57c80226859d4bf 100644 (file)
@@ -164,7 +164,7 @@ fn emit_lint(&self, ident: String, fn_id: DefId, source_info: SourceInfo, span:
         let ret = if fn_sig.output().skip_binder().is_unit() { "" } else { " -> _" };
         self.tcx.struct_span_lint_hir(FUNCTION_ITEM_REFERENCES, lint_root, span, |lint| {
             lint.build(&format!(
-                "cast `{}` with `as {}{}fn({}{}){}` to use it as a pointer",
+                "cast `{}` with `as {}{}fn({}{}){}` to obtain a function pointer",
                 ident,
                 unsafety,
                 abi,