Skip to content

slog info macro not resolving #6955

@wpbrown

Description

@wpbrown

Rust analyzer nightly (83a2725) is reporting macros not resolving. Right-click go to definition and showing docs is working but it's indicating that it is unresolved at the same time. Stable is working.

Repro:

[package]
name = "slogtest"
version = "0.1.0"
edition = "2018"

[dependencies]
slog = "2.5.2"
slog-term = "2.6.0"
use slog::*;

fn main() {
    let decorator = slog_term::PlainSyncDecorator::new(std::io::stdout());
    let drain = slog_term::FullFormat::new(decorator).build().fuse();

    let root_log = slog::Logger::root(drain, o!("test" => "test"));
    info!(root_log, "test");
}

image

Related reports in #6847

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-macromacro expansionS-actionableSomeone could pick this issue up and work on it right now

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions