Skip to content
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

cleanup and fix coherence rules #167

Merged
merged 4 commits into from
May 14, 2024
Merged

Conversation

nikomatsakis
Copy link
Contributor

@nikomatsakis nikomatsakis commented May 13, 2024

this PR actually does two things that really ought not to be combined but I am lazy:

  • move tests from using UI framework into test modules
  • clean up the coherence rules

Fixes #157

This is more idiomatic formality than ui-test
and easier to manage. It allows you to group
tests into files and to run tests with
rust-analyzer's builtin facilities.

We will eventually I think want to move to ui
tests again but with actual rust inputs
this time.
joint work with lcnr + errs
@nikomatsakis
Copy link
Contributor Author

r? @lcnr

@nikomatsakis nikomatsakis requested a review from lcnr May 13, 2024 21:05
@compiler-errors compiler-errors removed the request for review from lcnr May 13, 2024 21:14
@compiler-errors
Copy link
Member

r? lcnr

Comment on lines +107 to +108
// If we can normalize `goal` to something else, and that normalized
// form may be downstream.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

        // If `parameter` is an alias which refers a type which may be
        // from a downstream crate, it may be normalized to that type,
        // so recurse into it.
        //
        // We only do so if the alias cannot be normalized to a type which
        // is definitely not a downstream parameter.

@lcnr lcnr merged commit 08a5f07 into rust-lang:main May 14, 2024
3 checks passed
@lcnr
Copy link
Contributor

lcnr commented May 14, 2024

woops, forgot i've added a nit

@lcnr
Copy link
Contributor

lcnr commented May 14, 2024

applied it directly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Obviously overlapping blanket impls are accepted
3 participants