Azure / Azure/azure-sdk-tools

[Rust APIView] Result is rendered without resolving azure_core::Result import

Open
#15,434 0 comments 0 reactions 0 assignees View on GitHub
APIView customer-reported question Rust
Dominant language
C#
Stars
135
Forks
260
Avg merge
3d 1h
Merged PRs (30d)
143

Description

**Bad code snippet**
```rust
pub fn new(tenant_id: &str, client_id: String, secret: Secret, options: Option) -> Result> {}
```

**What should happen**
APIView should resolve the imported Rust result type and render it as `azure_core::Result`, since `Result` in this context is an alias/import of `azure_core::Result` rather than the unqualified standard/library type. The current rendering makes it look unresolved or ambiguous.

**Good code snippet**
```rust
pub fn new(tenant_id: &str, client_id: String, secret: Secret, options: Option) -> azure_core::Result> {}
```

Contributor guide

Open the contributing guide

Research direction

Start in the APIView Rust parsing and import-resolution path, using the bad and good code snippets in this issue as the reproduction. Trace how the imported Result type is rendered, then verify that the output qualifies it as azure_core::Result rather than leaving it unqualified or ambiguous.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.