File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
clippy_lints/src/functions Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -252,6 +252,11 @@ declare_clippy_lint! {
252
252
/// A `Result` is at least as large as the `Err`-variant. While we
253
253
/// expect that variant to be seldomly used, the compiler needs to reserve
254
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.
255
260
///
256
261
/// ### Known problems
257
262
/// The size determined by Clippy is platform-dependent.
You can’t perform that action at this time.
0 commit comments