about summary refs log tree commit diff
path: root/src/tools
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-12-20 03:52:43 +0000
committerbors <bors@rust-lang.org>2022-12-20 03:52:43 +0000
commit7f42e58effa3871dda6a41e250dea60cf88868ca (patch)
tree99bf1fe8df70d9ec787a68f3cea44b16bb5bd328 /src/tools
parentc43bc135628bc0d472e1a1259d56b72b7de0a274 (diff)
parent8c86773fd37b26924d53cea518a136860e620265 (diff)
downloadrust-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.rs2
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 }
     }
 }