We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7bc3da9 + 2ed254e commit 824f2e7Copy full SHA for 824f2e7
clippy_lints/src/functions/mod.rs
@@ -252,6 +252,11 @@ declare_clippy_lint! {
252
/// A `Result` is at least as large as the `Err`-variant. While we
253
/// expect that variant to be seldomly used, the compiler needs to reserve
254
/// and move that much memory every single time.
255
+ /// Furthermore, errors are often simply passed up the call-stack, making
256
+ /// use of the `?`-operator and its type-conversion mechanics. If the
257
+ /// `Err`-variant further up the call-stack stores the `Err`-variant in
258
+ /// question (as library code often does), it itself needs to be at least
259
+ /// as large, propagating the problem.
260
///
261
/// ### Known problems
262
/// The size determined by Clippy is platform-dependent.
0 commit comments