Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
2f5d245
Make overflowing and wrapping negation const
Lokathor Feb 1, 2019
26a3540
Don't know why I wasn't using `self` properly there
Lokathor Feb 1, 2019
481b354
Simplify the overflowing_neg expression
Lokathor Feb 2, 2019
5256efb
const-int-overflowing.rs += overflowing_neg
Lokathor Feb 2, 2019
31bf7e1
const-int-wrapping.rs += wrapping_neg
Lokathor Feb 2, 2019
e06302f
fix the build errors
Lokathor Feb 2, 2019
9fa01da
Improve stability tags display
GuillaumeGomez Feb 8, 2019
69d948d
Fix search results interactions
GuillaumeGomez Feb 9, 2019
5d80584
Use less explicit shifting in std::net::ip
scottmcm Feb 12, 2019
e827c9a
respect alternate flag when formatting impl trait
euclio Feb 6, 2019
23993e8
Remove no longer accurate diagnostic code about NLL
tesuji Feb 14, 2019
cdd1c0e
Don't use an allocation for ItemId in StmtKind
Zoxc Feb 17, 2019
564c569
Monomorphize less code in fs::{read|write}
scottmcm Feb 17, 2019
8fbb013
Mention capping forbid lints
dwijnand Feb 17, 2019
3281e62
Remove UB in test_is_null test
sugar700 Feb 17, 2019
0cf1a91
Remove UB in test_ptr_subtraction test
sugar700 Feb 17, 2019
a23c40e
Add alias methods to PathBuf for underlying OsString
aaronstillwell Feb 17, 2019
dad211e
Modify doctest's auto-`fn main()` to allow `Result`s
llogiq Dec 3, 2018
dbf60d9
Fixes for implementation of PathBuf methods (aliases for OsString)
aaronstillwell Feb 17, 2019
35d8c44
Changed feature gate for new PathBuf methods
aaronstillwell Feb 17, 2019
ee948d9
Add regression test for a specialization-related ICE (#39448)
emillaine Feb 17, 2019
1b7ca96
librustc_codegen_llvm => 2018
taiki-e Feb 17, 2019
55c25f8
Fix doc for rustc "-g" flag
TheBiggerGuy Feb 17, 2019
88e462b
Add links to codegen docs for rustc synonym flags
TheBiggerGuy Feb 17, 2019
0b9ad6e
Explain a panic in test case net::tcp::tests::double_bind
ssomers Feb 4, 2019
01bebdf
Merge remote-tracking branch 'upstream/master'
ssomers Feb 17, 2019
3bea2ca
Use more impl header lifetime elision
scottmcm Feb 18, 2019
c9fbcc1
Fixed doc example for Path::with_capacity
aaronstillwell Feb 18, 2019
f8b6449
Fix style nits
dlrobertson Feb 18, 2019
75c541f
Fix typo in std::future::Future docs
thomaseizinger Feb 18, 2019
b96d6fb
Fix a transposition in driver.rs.
benjaminp Feb 19, 2019
94b6bf2
reduced some code repetitions.
kenta7777 Feb 19, 2019
b53305d
Fix tables display
GuillaumeGomez Feb 11, 2019
31ee20d
Add missing fmt structs examples
GuillaumeGomez Feb 17, 2019
95d2795
Stabilize iter::successors
SimonSapin Feb 19, 2019
3906cb9
Stabilize iter::from_fn
SimonSapin Feb 19, 2019
5a06eab
Rollup merge of #56470 - llogiq:process-termination-doctest, r=Guilla…
kennytm Feb 19, 2019
120e9cb
Rollup merge of #58303 - GuillaumeGomez:stability-tags-display, r=Qui…
kennytm Feb 19, 2019
d22bb1a
Rollup merge of #58336 - GuillaumeGomez:fix-search-results-interactio…
kennytm Feb 19, 2019
07b6d17
Rollup merge of #58384 - GuillaumeGomez:fix-table-display, r=QuietMis…
kennytm Feb 19, 2019
98a6e72
Rollup merge of #58392 - scottmcm:less-shifting-in-net-ip, r=oli-obk
kennytm Feb 19, 2019
8d1e432
Rollup merge of #58409 - euclio:impl-trait-wrapping, r=QuietMisdreavus
kennytm Feb 19, 2019
897778e
Rollup merge of #58456 - lzutao:nll, r=Centril
kennytm Feb 19, 2019
e95297c
Rollup merge of #58528 - Zoxc:stmtkind-item, r=oli-obk
kennytm Feb 19, 2019
7ef11d4
Rollup merge of #58530 - scottmcm:monomorphize-less, r=TimNN
kennytm Feb 19, 2019
5144583
Rollup merge of #58534 - dwijnand:mention-capping-forbid-lints, r=oli…
kennytm Feb 19, 2019
943fe1e
Rollup merge of #58536 - xfix:remove-ub-in-pointer-tests, r=RalfJung
kennytm Feb 19, 2019
a68a1c7
Rollup merge of #58538 - GuillaumeGomez:fmt-examples, r=Centril
kennytm Feb 19, 2019
c965858
Rollup merge of #58539 - aaronstillwell:master, r=Mark-Simulacrum
kennytm Feb 19, 2019
717aa46
Rollup merge of #58544 - TheBiggerGuy:rustc-doc-cli-args, r=TimNN
kennytm Feb 19, 2019
fd18e3f
Rollup merge of #58545 - emlai:regression-test-for-39448, r=Centril
kennytm Feb 19, 2019
8368638
Rollup merge of #58546 - taiki-e:librustc_codegen_llvm-2018, r=Centril
kennytm Feb 19, 2019
ef0aadd
Rollup merge of #58551 - ssomers:master, r=oli-obk
kennytm Feb 19, 2019
e3a8f7d
Rollup merge of #58553 - scottmcm:more-ihle, r=Centril
kennytm Feb 19, 2019
6e99101
Rollup merge of #58562 - dlrobertson:fix_nits, r=alexreg
kennytm Feb 19, 2019
09c85a1
Rollup merge of #58565 - thomaseizinger:typo-future-docs, r=frewsxcv
kennytm Feb 19, 2019
2f9fa19
Rollup merge of #58568 - benjaminp:driver-trans, r=wesleywiser
kennytm Feb 19, 2019
95daca4
Rollup merge of #58569 - kenta7777:reduce-code-repetition, r=oli-obk
kennytm Feb 19, 2019
8ca56e1
Rollup merge of #58576 - SimonSapin:successors, r=Centril
kennytm Feb 19, 2019
a1a17f5
Rollup merge of #58044 - Lokathor:lokathor, r=alexcrichton
kennytm Feb 20, 2019
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
const-int-wrapping.rs += wrapping_neg
  • Loading branch information
Lokathor committed Feb 2, 2019
commit 31bf7e1b51ebb932036dd632396cd98c1e115a6b
7 changes: 5 additions & 2 deletions src/test/run-pass/const-int-wrapping.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ const SHL_B: u32 = 1u32.wrapping_shl(128);
const SHR_A: u32 = 128u32.wrapping_shr(7);
const SHR_B: u32 = 128u32.wrapping_shr(128);

const NEG_A: u32 = 5u32.wrapping_neg();
const NEG_B: u32 = 1234567890u32.wrapping_neg();

fn ident<T>(ident: T) -> T {
ident
}
Expand All @@ -30,6 +33,6 @@ fn main() {
assert_eq!(SHL_A, ident(128));
assert_eq!(SHL_B, ident(1));

assert_eq!(SHR_A, ident(1));
assert_eq!(SHR_B, ident(128));
assert_eq!(SHR_A, ident(4294967291));
assert_eq!(SHR_B, ident(3060399406));
}