diff options
| author | bors <bors@rust-lang.org> | 2022-12-20 03:52:43 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-12-20 03:52:43 +0000 |
| commit | 7f42e58effa3871dda6a41e250dea60cf88868ca (patch) | |
| tree | 99bf1fe8df70d9ec787a68f3cea44b16bb5bd328 /src/tools | |
| parent | c43bc135628bc0d472e1a1259d56b72b7de0a274 (diff) | |
| parent | 8c86773fd37b26924d53cea518a136860e620265 (diff) | |
| download | rust-7f42e58effa3871dda6a41e250dea60cf88868ca.tar.gz rust-7f42e58effa3871dda6a41e250dea60cf88868ca.zip | |
Auto merge of #105575 - compiler-errors:impl-wf-lint, r=oli-obk
Add `IMPLIED_BOUNDS_ENTAILMENT` lint Implements a lint (#105572) version of the hard-error introduced in #105483. Context is in that PR. r? `@lcnr` cc `@oli-obk` who had asked for this to be a lint first Not sure if this needs to be an FCP, since it's a lint for now.
Diffstat (limited to 'src/tools')
| -rw-r--r-- | src/tools/clippy/tests/ui/borrow_interior_mutable_const/others.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/clippy/tests/ui/borrow_interior_mutable_const/others.rs b/src/tools/clippy/tests/ui/borrow_interior_mutable_const/others.rs index eefeb1decb6..7c57864245a 100644 --- a/src/tools/clippy/tests/ui/borrow_interior_mutable_const/others.rs +++ b/src/tools/clippy/tests/ui/borrow_interior_mutable_const/others.rs @@ -42,7 +42,7 @@ impl<T> StaticRef<T> { impl<T> std::ops::Deref for StaticRef<T> { type Target = T; - fn deref(&self) -> &'static T { + fn deref(&self) -> &T { unsafe { &*self.ptr } } } |
