Make mozilla::Unused unused
Categories
(Core :: JavaScript Engine, task, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox90 | --- | fixed |
People
(Reporter: sfink, Assigned: sfink)
References
(Blocks 1 open bug)
Details
Attachments
(7 files)
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review |
Before [[nodiscard]]
, you needed to do mozilla::Unused << expr
in order to properly mark an expression as unused. Now, we can just cast to (void)
.
This bug is for removing the deprecated mozilla::Unused
and preventing it from being added.
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 1•4 years ago
|
||
Updated•4 years ago
|
Assignee | ||
Comment 2•4 years ago
|
||
Assignee | ||
Comment 3•4 years ago
|
||
Assignee | ||
Comment 4•4 years ago
|
||
Assignee | ||
Comment 5•4 years ago
|
||
Assignee | ||
Comment 6•4 years ago
|
||
Assignee | ||
Comment 7•4 years ago
|
||
Whee, I spread out the reviews as a way to make sure people know.
See the thread https://groups.google.com/g/mozilla.dev.platform/c/0ySnEmxh12Y for what's going on here.
Thanks, cpeterson!
Comment 8•4 years ago
|
||
Nice! There are still 1000+ uses of Unused <<
in other directories, but your lint will keep that number from growing. Perhaps someday Unused
itself can be removed (bug 1628542).
Comment 10•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/f8a2d8249563
https://hg.mozilla.org/mozilla-central/rev/035615e942f1
https://hg.mozilla.org/mozilla-central/rev/0431e2e3f8f2
https://hg.mozilla.org/mozilla-central/rev/0f7c74b50763
https://hg.mozilla.org/mozilla-central/rev/8137e1710fb5
https://hg.mozilla.org/mozilla-central/rev/eb812224c514
Assignee | ||
Comment 11•4 years ago
|
||
Comment 12•4 years ago
|
||
Comment 13•4 years ago
|
||
bugherder |
Description
•