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

Make normalize_projections take an InferCtxt #968

Merged
merged 5 commits into from
Jan 7, 2025

Make normalize_projection take an InferCtxt

6b63c42
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

Make normalize_projections take an InferCtxt #968

Make normalize_projection take an InferCtxt
6b63c42
Select commit
Loading
Failed to load commit list.
GitHub Actions / clippy succeeded Jan 6, 2025 in 0s

clippy

2 warnings

Details

Results

Message level Amount
Internal compiler error 0
Error 0
Warning 2
Note 0
Help 0

Versions

  • rustc 1.84.0-nightly (b3f75cc87 2024-11-02)
  • cargo 1.84.0-nightly (031049782 2024-11-01)
  • clippy 0.1.84 (b3f75cc872 2024-11-02)

Annotations

Check warning on line 106 in crates/flux-refineck/src/compare_impl_item.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unneeded `return` statement with `?` operator

warning: unneeded `return` statement with `?` operator
   --> crates/flux-refineck/src/compare_impl_item.rs:106:9
    |
106 |         return Err(infcx
    |         ^^^^^^^ help: remove it
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return_with_question_mark
    = note: `#[warn(clippy::needless_return_with_question_mark)]` on by default

Check warning on line 28 in crates/flux-infer/src/projections.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this lifetime isn't used in the function definition

warning: this lifetime isn't used in the function definition
  --> crates/flux-infer/src/projections.rs:28:30
   |
28 |     fn normalize_projections<'tcx>(&self, infcx: &mut InferCtxt) -> QueryResult<Self>;
   |                              ^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes
   = note: `#[warn(clippy::extra_unused_lifetimes)]` on by default