Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some functions do not show examples on hover #15920

Closed
oloko64 opened this issue Nov 17, 2023 · 2 comments
Closed

Some functions do not show examples on hover #15920

oloko64 opened this issue Nov 17, 2023 · 2 comments
Labels
C-bug Category: bug

Comments

@oloko64
Copy link

oloko64 commented Nov 17, 2023

Problem

The functions saturating_mul, saturating_add, abs, etc don´t show the examples, however on the Rust docs they have examples for those functions.

Seems to be related to const fn functions.


On VSCode

image
image


On Rust docs

image


rust-analyzer version: v0.3.1730

rustc version: 1.74.0

relevant settings: Using VSCode on Linux

@oloko64 oloko64 added the C-bug Category: bug label Nov 17, 2023
@dfireBird
Copy link
Contributor

This is not a problem with const functions. The saturating_* methods all use macro call inside the #[doc], which is not supported by the rust-analyzer.

@lnicola
Copy link
Member

lnicola commented Nov 18, 2023

Probably #8092?

@Veykril Veykril closed this as not planned Won't fix, can't repro, duplicate, stale Nov 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug
Projects
None yet
Development

No branches or pull requests

4 participants