about summary refs log tree commit diff
path: root/src/libcore/ops/bit.rs
AgeCommit message (Collapse)AuthorLines
2020-07-27mv std libs to library/mark-873/+0
2019-11-26Format libcore with rustfmtDavid Tolnay-38/+58
This commit applies rustfmt with default settings to files in src/libcore *that are not involved in any currently open PR* to minimize merge conflicts. The list of files involved in open PRs was determined by querying GitHub's GraphQL API with this script: https://gist.github.com/dtolnay/aa9c34993dc051a4f344d1b10e4487e8 With the list of files from the script in `outstanding_files`, the relevant commands were: $ find src/libcore -name '*.rs' | xargs rustfmt --edition=2018 $ rg libcore outstanding_files | xargs git checkout -- Repeating this process several months apart should get us coverage of most of the rest of libcore.
2019-03-22Rollup merge of #59190 - greg-kargin:master, r=sanxiynMazdak Farrokhzad-23/+23
consistent naming for Rhs type parameter in libcore/ops Rename RHS type parameter occurrences RHS->Rhs to make it consistent throughout files and follow naming conventions.
2019-03-18Replaced self-reflective explicit types with clearer `Self` or `Self::…` ↵Vincent Esche-8/+8
in stdlib docs
2019-03-15consistent naming for Rhs type parameter in libcore/opsGrigorii Kargin-23/+23
2018-12-25Remove licensesMark Rousskov-10/+0
2018-04-28Auto merge of #50149 - aaronaaeng:master, r=estebankbors-0/+6
Added warning for unused arithmetic expressions The compiler now displays a warning when a binary arithmetic operation is evaluated but not used. This resolves #50124 by following the instructions outlined in the issue. The changes are as follows: - Added new pattern matching for unused arithmetic expressions in `src/librustc_lint/unused.rs` - Added `#[must_use]` attributes to the binary operation methods in `src/libcore/internal_macros.rs` - Added `#[must_use]` attributes to the non-assigning binary operators in `src/libcore/ops/arith.rs`
2018-04-26Add more doc aliasesGuillaume Gomez-0/+10
2018-04-22Make must_use lint cover all binary/unary operatorsAaron Aaeng-0/+6
2018-04-19Auto merge of #49630 - npmccallum:shl, r=alexcrichtonbors-3/+3
Update Rhs on ShlAssign to default to Self This matches the behavior on ShrAssign and all other *Assign operations.
2018-04-13[doc] note the special type inference handling for shiftsAndre Bogus-2/+12
2018-04-06Consistently default operator Rhs/RHS to SelfNathaniel McCallum-3/+3
Operator traits seem to be inconsistent regarding the right hand side generic. Most default Rhs/RHS to Self, but a few omit this. This patch modifies them all to default to Self. This should not have any backwards compatibility issues because we are only enabling code that previously wouldn't compile.
2018-02-01Add filtering options to `rustc_on_unimplemented`Esteban Küber-10/+20
- filter error on the evaluated value of `Self` - filter error on the evaluated value of the type arguments - add argument to include custom note in diagnostic - allow the parser to parse `Self` when processing attributes - add custom message to binops
2017-09-03Manuall rebase of @Migi pull/41336Eh2406-0/+10
2017-08-12std::ops docs: incorporated changes suggested in reviewlukaramu-0/+6
* fixed link typos and copy-paster errors * rewrote Fn* explanations * `RHS = Self` -> `RHS` is `Self` (added that to all applicable places as well) * fixed up some links * s/MutDeref/DerefMut * removed remaining superfluous `fn main()`s * fixed some minor phrasings and factual errors and inaccuracies std::ops docs: Fix phrasing and factual errors/inaccuracies
2017-08-07Revise documentation in core::ops::bitlukaramu-150/+122
Part of #29365. * Added "real" examples for `BitOrAssign`, `BitXorAssign`, `ShlAssign`, and `ShrAssign` * Rewrote method summary senteces to be in 3rd person singular * Rephrased example introductions to be less redundant ("in this example" etc.) and to not use "trivial" * Removed superfluous explicit `fn main()`s in examples * Added some missing periods
2017-06-09Move bit ops to module.Clar Charr-0/+839