Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion impl/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#![doc = include_str!("../README.md")]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![cfg_attr(docsrs, feature(doc_cfg))]
#![recursion_limit = "128"]
#![cfg_attr(any(not(docsrs), ci), deny(rustdoc::all))]
#![forbid(non_ascii_idents, unsafe_code)]
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
doc = core::include_str!("../README.md")
)]
#![cfg_attr(not(feature = "std"), no_std)]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![cfg_attr(docsrs, feature(doc_cfg))]
#![cfg_attr(any(not(docsrs), ci), deny(rustdoc::all))]
#![forbid(non_ascii_idents, unsafe_code)]
#![warn(clippy::nonstandard_macro_braces)]
Expand Down
4 changes: 2 additions & 2 deletions tests/compile_fail/as_mut/renamed_generic.stderr
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
error[E0599]: the method `as_mut` exists for struct `Baz<i32>`, but its trait bounds were not satisfied
--> tests/compile_fail/as_mut/renamed_generic.rs:11:33
|
1 | struct Foo<T>(T);
1 | struct Foo<T>(T);
| ------------- doesn't satisfy `Foo<i32>: AsMut<Foo<i32>>`
...
7 | struct Baz<T>(Foo<T>);
7 | struct Baz<T>(Foo<T>);
| ------------- method `as_mut` not found for this struct because it doesn't satisfy `Baz<i32>: AsMut<Foo<i32>>`
...
11 | let _: &mut Bar<i32> = item.as_mut();
Expand Down
4 changes: 2 additions & 2 deletions tests/compile_fail/as_ref/renamed_generic.stderr
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
error[E0599]: the method `as_ref` exists for struct `Baz<i32>`, but its trait bounds were not satisfied
--> tests/compile_fail/as_ref/renamed_generic.rs:11:29
|
1 | struct Foo<T>(T);
1 | struct Foo<T>(T);
| ------------- doesn't satisfy `Foo<i32>: AsRef<Foo<i32>>`
...
7 | struct Baz<T>(Foo<T>);
7 | struct Baz<T>(Foo<T>);
| ------------- method `as_ref` not found for this struct because it doesn't satisfy `Baz<i32>: AsRef<Foo<i32>>`
...
11 | let _: &Bar<i32> = item.as_ref();
Expand Down