about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorAndre Bogus <bogusandre@gmail.com>2022-10-03 17:29:38 +0200
committerAndre Bogus <bogusandre@gmail.com>2022-10-06 16:00:45 +0200
commitd3c041a08696b722da3276846e0064dd03742940 (patch)
tree6ba9ebe0d9062081334ebce92f43457fd8c49a43 /src
parentac0e10aa68325235069a842f47499852b2dee79e (diff)
downloadrust-d3c041a08696b722da3276846e0064dd03742940.tar.gz
rust-d3c041a08696b722da3276846e0064dd03742940.zip
extend `box-default` lint, add suggestion
Diffstat (limited to 'src')
-rw-r--r--src/docs/box_default.txt6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/docs/box_default.txt b/src/docs/box_default.txt
index ffac894d0c5..1c670c77333 100644
--- a/src/docs/box_default.txt
+++ b/src/docs/box_default.txt
@@ -7,12 +7,6 @@ First, it's more complex, involving two calls instead of one.
 Second, `Box::default()` can be faster
 [in certain cases](https://nnethercote.github.io/perf-book/standard-library-types.html#box).
 
-### Known problems
-The lint may miss some cases (e.g. Box::new(String::from(""))).
-On the other hand, it will trigger on cases where the `default`
-code comes from a macro that does something different based on
-e.g. target operating system.
-
 ### Example
 ```
 let x: Box<String> = Box::new(Default::default());