rust/crates
David Tolnay 4461796f33
Fix type inference failure when built with log/kv_unstable
This code is broken by an `impl From<kv::Error> for fmt::Error` in the
log crate when building in a codebase that has the log/kv_unstable
feature enabled.

    $ cargo check --manifest-path crates/ra_hir_def/Cargo.toml
        Checking ra_hir_def v0.1.0
        Finished dev [unoptimized] target(s) in 0.75s

    $ cargo check --manifest-path crates/ra_hir_def/Cargo.toml --features log/kv_unstable
        Checking ra_hir_def v0.1.0
    error[E0282]: type annotations needed for the closure `fn(&str) -> std::result::Result<(), _>`
       --> crates/ra_hir_def/src/path.rs:278:17
        |
    278 |                 f.write_str("::")?;
        |                 ^^^^^^^^^^^^^^^^^^ cannot infer type
        |
    help: give this closure an explicit return type without `_` placeholders
        |
    276 |         let mut add_segment = |s| -> std::result::Result<(), _> {
        |                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2020-06-03 19:06:02 -07:00
..
ra_arena
ra_assists Rename assist 2020-06-01 15:41:16 +02:00
ra_cfg add support of feature flag for runnables #4464 2020-05-23 20:59:18 +02:00
ra_db Fix some clippy perf warnings 2020-05-25 13:35:52 -04:00
ra_flycheck
ra_fmt
ra_hir Add highlight support for unsafe fn calls and raw ptr deref 2020-06-02 18:54:00 -04:00
ra_hir_def Fix type inference failure when built with log/kv_unstable 2020-06-03 19:06:02 -07:00
ra_hir_expand Enable hover and autocomplete docs on macro generated items 2020-06-03 06:46:07 -04:00
ra_hir_ty correctly infer labelled breaks 2020-05-31 11:40:18 +02:00
ra_ide Merge branch 'master' into compute-lazy-assits 2020-06-03 19:26:01 +02:00
ra_ide_db recursively search submodules 2020-05-31 12:05:54 -04:00
ra_mbe
ra_parser Update a comment for the new source organization 2020-05-31 16:04:52 -07:00
ra_proc_macro
ra_proc_macro_srv Fix tests, apply code review proposals 2020-05-31 03:10:23 +03:00
ra_prof
ra_project_model Document rust-project.json 2020-06-03 15:17:26 +02:00
ra_syntax Enable hover and autocomplete docs on macro generated items 2020-06-03 06:46:07 -04:00
ra_text_edit Formalize JoinLines protocol extension 2020-05-21 20:05:33 +02:00
ra_toolchain
ra_tt
rust-analyzer Fix more comments 2020-06-03 19:33:57 +02:00
stdx Use split1 when formatting function signature params 2020-06-03 07:26:15 -04:00
test_utils Use split1 when formatting function signature params 2020-06-03 07:26:15 -04:00