-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Resolve char
as a primitive even if there is a module in scope
#75318
Conversation
Some changes occurred in intra-doc-links. cc @jyn514 |
return Err(ErrorKind::AnchorFailure(AnchorFailure::Primitive)); | ||
} | ||
return Ok((prim, Some(path_str.to_owned()))); | ||
// This resolved to a module, but we want primitive types to take precedence instead. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should avoid this branch if it's explicitly not specified as a type, yes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh you're right - this should happen if there's no disambiguator or if the disambiguator is type@
, but if there's a different disambiguator we should skip it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be fixed now.
@bors r+ |
📌 Commit 6d2b16fc7e9d82befdd864ec9327883424ac6668 has been approved by |
⌛ Testing commit 6d2b16fc7e9d82befdd864ec9327883424ac6668 with merge f78b2bee99acf60e0086aa75572697d05f35b3b7... |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
💔 Test failed - checks-actions |
This has less surprising behavior when there is a module with the same name as a primitive in scope.
@bors r=manishearth |
📌 Commit b11e2f2 has been approved by |
Rollup of 8 pull requests Successful merges: - rust-lang#74200 (Std panicking unsafe block in unsafe fn) - rust-lang#75286 (Add additional case for Path starts with) - rust-lang#75318 (Resolve `char` as a primitive even if there is a module in scope) - rust-lang#75320 (Detect likely `for foo of bar` JS syntax) - rust-lang#75328 (Cleanup E0749) - rust-lang#75344 (Rename "Important traits" to "Notable traits") - rust-lang#75348 (Move to intra-doc links in library/core/src/time.rs) - rust-lang#75350 (Do not ICE when lowering invalid extern fn with bodies) Failed merges: r? @ghost
Closes #58699.
r? @Manishearth