- 
                Notifications
    
You must be signed in to change notification settings  - Fork 13.9k
 
Open
Labels
-Zbuild-stdUnstable cargo option: -Zbuild-stdUnstable cargo option: -Zbuild-stdA-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsC-bugCategory: This is a bug.Category: This is a bug.D-invalid-suggestionDiagnostics: A structured suggestion resulting in incorrect code.Diagnostics: A structured suggestion resulting in incorrect code.S-has-mcveStatus: A Minimal Complete and Verifiable Example has been found for this issueStatus: A Minimal Complete and Verifiable Example has been found for this issueT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Description
I tried this code:
https://github.com/suprohub/cos
I expected to see normal work, but
Instead, if i add in random place of my crate f64::PI, it suggests me this problema solution:
error[E0599]: no associated item named `PI` found for type `f64` in the current scope
  --> src/num.rs:77:14
   |
77 |         f64::PI;
   |              ^^ associated item not found in `f64`
   |
   = help: items from traits can only be used if the trait is in scope
help: trait `Float` which provides `PI` is implemented but not in scope; perhaps you want to import it
   |
 1 + use compiler_builtins::math::libm_math::support::float_traits::Float;
   |
No one of my crates use compiler builtins, and my Cargo.lock dont have compiler_builtins too.
Meta
rustc --version --verbose:
noviui@suprohub ~> rustc --version --verbose
rustc 1.90.0 (1159e78c4 2025-09-14)
binary: rustc
commit-hash: 1159e78c4747b02ef996e55082b704c09b970588
commit-date: 2025-09-14
host: x86_64-unknown-linux-gnu
release: 1.90.0
LLVM version: 20.1.8
noviui@suprohub ~> 
i use latest nightly btw.
This issue goes from this issue: #142676.
Metadata
Metadata
Assignees
Labels
-Zbuild-stdUnstable cargo option: -Zbuild-stdUnstable cargo option: -Zbuild-stdA-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsC-bugCategory: This is a bug.Category: This is a bug.D-invalid-suggestionDiagnostics: A structured suggestion resulting in incorrect code.Diagnostics: A structured suggestion resulting in incorrect code.S-has-mcveStatus: A Minimal Complete and Verifiable Example has been found for this issueStatus: A Minimal Complete and Verifiable Example has been found for this issueT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.