Repository navigation
Fix check with is_impl_trait_in_trait() before expecting local id - #164318
Conversation
d70508b to
762d20a
Compare
|
Could you add a test where the relevant span is used/printed? The nonlocal case is particularly interesting. For example, the fact that you're taking the def_span of the impl item rather than the param is a bit wonky, and I'd like to see what that does. Also, adding a comment explaining the situation and how RPITITs can be nonlocal would be nice. |
762d20a to
7b6a940
Compare
While the error is perceivably not as polished as some, I would like to think one could almost definitely resolve their problem if they were to encounter. |
|
Ach. Unfortunately your added test does not actually test what you are changing in this PR, that error message is from a completely different place! Commenting out Oh well though. With the time sensitivity of this issue, it's probably good to merge this now, and look into specifics later. Thanks for looking into this! @bors r+ rollup |
Huh... So essentially all I've done is move the problem? |
…ue-164180, r=khyperia Fix check with `is_impl_trait_in_trait()` before expecting local id Fix an ICE when implementing a const generic method with return position `impl Trait` from another crate `RPITIT` r? khyperia fixes rust-lang#164180
…ue-164180, r=khyperia Fix check with `is_impl_trait_in_trait()` before expecting local id Fix an ICE when implementing a const generic method with return position `impl Trait` from another crate `RPITIT` r? khyperia fixes rust-lang#164180
…uwer Rollup of 8 pull requests Successful merges: - #164271 (Add release notes for 1.99.1) - #164361 (delegation: map return even if there is no target expression) - #162778 (rustdoc: add disambiguators for identically named method in sidebar) - #163224 ([rustdoc] Add tabs to settings popover) - #164220 (Test the interaction between `--remap-path-prefix` and doctests) - #164279 (Make the `documentation` scope a sub-scope of the `object` scope) - #164318 (Fix check with `is_impl_trait_in_trait()` before expecting local id) - #164360 (Fix(lib/sys): Restore Win7 compilation)
…uwer Rollup of 7 pull requests Successful merges: - #164175 (Drop WC_ERR_INVALID_CHARS from Windows stdio) - #164361 (delegation: map return even if there is no target expression) - #162778 (rustdoc: add disambiguators for identically named method in sidebar) - #163224 ([rustdoc] Add tabs to settings popover) - #164220 (Test the interaction between `--remap-path-prefix` and doctests) - #164318 (Fix check with `is_impl_trait_in_trait()` before expecting local id) - #164360 (Fix(lib/sys): Restore Win7 compilation)
Fix an ICE when implementing a const generic method with return position
impl Traitfrom another crateRPITITr? khyperia
fixes #164180