-
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
rustdoc: prevent ctors from resolving #131224
rustdoc: prevent ctors from resolving #131224
Conversation
rustbot has assigned @GuillaumeGomez. Use |
20380b3
to
c52a0f8
Compare
This comment has been minimized.
This comment has been minimized.
c52a0f8
to
af83c21
Compare
This comment has been minimized.
This comment has been minimized.
af83c21
to
620bd3b
Compare
This comment has been minimized.
This comment has been minimized.
620bd3b
to
253fec4
Compare
Thanks! @bors r+ rollup |
☀️ Test successful - checks-actions |
--> $DIR/disambiguator-mismatch.rs:93:14 | ||
| | ||
LL | /// Link to [field@S::A] | ||
| ^^^^^^^^^^ this link resolved to a unit variant, which is not a field | ||
| ^^^^^^^^^^ this link resolves to the variant `A`, which is not in the value namespace |
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.
this diagnostic change seems like a regression.
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.
Arf indeed. I was too happy about the fix and went too fast over this.
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.
To be clear, I went with an approach where rustdoc mostly pretends that ctors don't exist at all because:
- Having
struct@
andvariant@
check both the type and value ns's would've cause a perf regression. - Adding a
ctor@
disambiguator would've been way too much feature for something that only matters if you do a globuse
shadowing hack.
Finished benchmarking commit (267cf8d): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)Results (primary 1.5%, secondary 4.9%)This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesThis benchmark run did not return any relevant results for this metric. Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 772.86s -> 771.923s (-0.12%) |
…error, r=GuillaumeGomez rustdoc: cleaner errors on disambiguator/namespace mismatches Resolves rust-lang#131224 (review) r? `@jyn514`
Rollup merge of rust-lang#131260 - notriddle:notriddle/disambiguator-error, r=GuillaumeGomez rustdoc: cleaner errors on disambiguator/namespace mismatches Resolves rust-lang#131224 (review) r? `@jyn514`
Fixes #130591