Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Rollup of 9 pull requests #133657
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
Uh oh!
There was an error while loading. Please reload this page.
Rollup of 9 pull requests #133657
Changes from 1 commit
47ddcb98bc8adbf5216eed3867174a896e7bcfc8abaddb040687dc19b77d8fab4a23bbf62753f95ff64258936c12cc0ee6917dd82bbce06e259020c906f66f3d881e1d49501c2bf03f13a42fd20066acf7e704afdae019d1914dbebe7c6a371789423d12160e3ef2ffa602cb66d22ff1f2abf827fc4b9644f4f676dcac6ed25ecfd7fa021ad013c18982cde9fa662887dae9ac02c3e6d620cdfcddb6904af6e2a503f56d385394cb64c0eff7e3422fa06532ec8c225f0d9a57d52fcafe5518c620dba9834e3354edff3e7c17fb5ad59151909d6a11a42459a76e5bac1f010e2db73a71c3013cd83e1a089479de1fcf09718b0ed5acf5c1f7fc4e2b0cc14d1378bc1a9e8d404a49b040e94b8ca28787b795dd2837e145df3b24e7196f1015628a2f57f32dc39382622c6219b2a0702996c48696f572cd7ac48b2bbd4c0ea5583965efb6c80a6ee2d86221f6ef5dcebc5e04d63333cce78b762a6615f8a240562a85539cb338dc65c63174ad44be78dabc322cd5f592dd922998f0f94142b583e26c6b6a867527b6069b0597de37ac2ae11cfeb67657dab4163f026c77744120fdb37d3c61871cfc966adeaf685f189af1ca15adf9b5fa8b690f5d0ee565fc4f8552684a4ca55eeeeddb717c3c68c5f0c301f10193a309734acacf48fc3e095e8b1c33f406815d0b46ed717e2f2610cad2dc82d4eae63a6e9ced913fef005c7490ad2ad6e3cb4ac91f2a31a435ed8cf30c277080d815e8a26807e9780c8c38fc1cfab274cf50389b20e99fe775018e225334a8c2dbda285189ae19e470c4f923bab15ca71c8f7201f7022c5bb09b4d7c6467e20094131bd23ba2d1d401a075dc5842dae1bf3ba73166d7e0a3e2bd3bbb67d2f3fac9324c7e565cc8574f37b24360a3c9daca5fb924f0c8e36bff4a26db01e901315b47e4a216a2a2545fd76adf05accdfa1c52d95233f13f28e77349727f6a6d53f0b16005d1cb36dcc11e4817cd6f88299461f42cb2bd2b15b24c4ff78002ded4dfd346929c0df6a01688f28db7ff2ae4846c19d626f6a5bbbc0945fd6b4370fc1395560d668633278ca5a9072cf40dce52b7bc76f1f00c4f3a46e449e16c9e922f46ed9711ee1ce271ff44fbad22e53bc38beabe6dba45391fe97e15d998ff2fce98bf3d10a6825fa483ca9cb2d61fc691e2ba7d6876f3ff618f7185866e5230f225bd30c2ed2470174d72cfeef8666b3ebca155ae27cb04File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
extern_crateon current trait on crate mismatch errorsWhen we encounter an error caused by traits/types of different versions of the same crate, filter out the current crate when collecting spans to add to the context so we don't call `extern_crate` on the `DefId` of the current crate, which is meaningless and ICEs. Produced output with this filter: ``` error[E0277]: the trait bound `foo::Struct: Trait` is not satisfied --> y.rs:13:19 | 13 | check_trait::<foo::Struct>(); | ^^^^^^^^^^^ the trait `Trait` is not implemented for `foo::Struct` | note: there are multiple different versions of crate `foo` in the dependency graph --> y.rs:7:1 | 4 | extern crate foo; | ----------------- one version of crate `foo` is used here, as a direct dependency of the current crate 5 | 6 | pub struct Struct; | ----------------- this type implements the required trait 7 | pub trait Trait {} | ^^^^^^^^^^^^^^^ this is the required trait | ::: x.rs:4:1 | 4 | pub struct Struct; | ----------------- this type doesn't implement the required trait 5 | pub trait Trait {} | --------------- this is the found trait = note: two types coming from two different versions of the same crate are different types even if they look the same = help: you can use `cargo tree` to explore your dependency tree note: required by a bound in `check_trait` --> y.rs:10:19 | 10 | fn check_trait<T: Trait>() {} | ^^^^^ required by this bound in `check_trait` ``` Fix #133563.Uh oh!
There was an error while loading. Please reload this page.
There are no files selected for viewing
Uh oh!
There was an error while loading. Please reload this page.