about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2020-07-27Extract `Cache` and other types from `html` moduleJoseph Ryan-752/+808
2020-07-27Refactor html backend to use generic interfaceJoseph Ryan-313/+409
2020-07-27Move `Error` and `RenderInfo` out of `html` moduleJoseph Ryan-71/+85
2020-07-27Auto merge of #73503 - lcnr:forall-predicate-what-and-why-2, r=nikomatsakisbors-1150/+1268
convert higher ranked `Predicate`s to `PredicateKind::ForAll` implements step 2 of https://github.com/rust-lang/compiler-team/issues/285 r? @nikomatsakis
2020-07-27clippyBastian Kauschke-5/+5
2020-07-27cleanupBastian Kauschke-59/+35
2020-07-27fix rustdocBastian Kauschke-24/+14
2020-07-27it works again :tada:Bastian Kauschke-42/+47
2020-07-27fix rebaseBastian Kauschke-29/+29
2020-07-27directly contain `PredicateAtom` in `PredicateKind::ForAll`Bastian Kauschke-180/+163
2020-07-27introduce PredicateAtomBastian Kauschke-842/+795
2020-07-27add reuse_or_mk_predicateBastian Kauschke-12/+20
2020-07-27refactor query_outlives_constraints_into_obligationsBastian Kauschke-13/+6
2020-07-27this might be unqualified, but at least it's now quantifiedBastian Kauschke-83/+87
2020-07-27fix rustdocBastian Kauschke-12/+20
2020-07-27split ignore_qualifiersBastian Kauschke-181/+196
2020-07-27reviewBastian Kauschke-75/+45
2020-07-27fix elaborate for predicates with unbound variablesBastian Kauschke-10/+6
2020-07-27clippyBastian Kauschke-22/+22
2020-07-27rustdocBastian Kauschke-31/+36
2020-07-27`PredicateKint` -> `PredicateKind`, the beginning of the endBastian Kauschke-740/+742
2020-07-27progressBastian Kauschke-46/+54
2020-07-27elaborateBastian Kauschke-19/+23
2020-07-27subst_supertraitBastian Kauschke-31/+14
2020-07-27somewhat related cleanupBastian Kauschke-11/+4
2020-07-27wfBastian Kauschke-18/+20
2020-07-27convert trivial predicatesBastian Kauschke-28/+26
2020-07-27query_outlives_constraints_into_obligationsBastian Kauschke-20/+24
2020-07-27anonymize_predicateBastian Kauschke-22/+15
2020-07-27Handle trait/projection predicates with bound regions correctlyMatthew Jasper-70/+132
2020-07-27minimalBastian Kauschke-78/+44
2020-07-27Clean up E0734 explanationGuillaume Gomez-1/+1
2020-07-27add `PredicateKint`, because who doesn't like bodgingBastian Kauschke-3/+200
2020-07-27Rollup merge of #74822 - JohnTitor:no-sigsegv, r=oli-obkManish Goregaokar-18/+28
More ensure stack to avoid segfault with increased `recursion_limit` Fixes #74711 I do not add the test here since the limit value depends on the machine and it's hard to test the output. r? @oli-obk
2020-07-27Rollup merge of #74803 - infinity0:fix-exec, r=nagisaManish Goregaokar-10/+3
rustbuild: fix bad usage of UNIX exec() in rustc wrapper exec never returns, it replaces the current process. so anything after it is unreachable. that's not how exec_cmd() is used in the surrounding code We use `--on-fail env` on Debian. `env` always returns exit code 0. This means that the `rustc` bootstrap wrapper always returns exit code 0 even when it fails. However, the crossbeam-utils build process (due to autocfg) relies on `rustc` returning error exit codes when detecting CPU features, and ends up writing `cargo:rustc-cfg=has_atomic_u128` even when it's not detected, because the `rustc` wrapper is always giving exit code 0. (This separately is causing our builds to try to compile rustc 40+ times, due to #74801.)
2020-07-27Rollup merge of #74487 - lcnr:const-in-ty-default, r=varkorManish Goregaokar-13/+135
Forbid generic parameters in anon consts inside of type defaults Emit a resolution error for `struct Foo<T, U = [u8; std::mem::size_of::<T>()]>`. We are unable to support this with the way `ty::Generics` is currently used, so let's just forbid it entirely for now. Fixes some ICE on stable, e.g. ```rust struct Foo<T, U = [u8; std::mem::size_of::<*mut T>()]>(T, U); ``` r? @varkor @eddyb
2020-07-27Rollup merge of #73858 - tspiteri:const-methods, r=oli-obkManish Goregaokar-53/+43
Make more primitive integer methods const Now that #72437 has been merged and `const_if_match` is stable, these methods can be stabilized const. The methods are grouped in commits according to feature names: * `const_nonzero_int_methods` - `NonZero*::new` * some `const_checked_int_methods` - `{i*,u*}::checked_add` - `{i*,u*}::checked_sub` - `{i*,u*}::checked_mul` - `{i*,u*}::checked_neg` - `{i*,u*}::checked_shl` - `{i*,u*}::checked_shr` - `i*::checked_abs` * `const_saturating_int_methods` - `{i*,u*}::saturating_add` - `{i*,u*}::saturating_sub` - `{i*,u*}::saturating_mul` - `i*::saturating_neg` - `i*::saturating_abs` * `const_int_sign` - `i*::signum` * `const_ascii_ctype_on_intrinsics` - `{char,u8}::is_ascii_alphabetic` - `{char,u8}::is_ascii_uppercase` - `{char,u8}::is_ascii_lowercase` - `{char,u8}::is_ascii_alphanumeric` - `{char,u8}::is_ascii_digit` - `{char,u8}::is_ascii_hexdigit` - `{char,u8}::is_ascii_punctuation` - `{char,u8}::is_ascii_graphic` - `{char,u8}::is_ascii_whitespace` - `{char,u8}::is_ascii_control`
2020-07-27update testsBastian Kauschke-1/+10
2020-07-27forbid generic params inside of anon consts in ty defaultsBastian Kauschke-8/+121
2020-07-27name `ParamInTyOfConstArg`Bastian Kauschke-5/+5
2020-07-27Auto merge of #74775 - RalfJung:miri-alloc-ids, r=oli-obkbors-122/+122
Miri: replace canonical_alloc_id mechanism by extern_static_alloc_id We only have to call `extern_static_alloc_id` when a `Pointer` is "imported" from the `tcx` to the machine, not on each access. Also drop the old hook for TLS handling, it is not needed any more. The Miri side of this is at https://github.com/rust-lang/miri/pull/1489. Fixes https://github.com/rust-lang/rust/issues/71194 r? @oli-obk
2020-07-27More ensure stack to avoid segfault with increased `recursion_limit`Yuki Okushi-18/+28
2020-07-27Auto merge of #74817 - JohnTitor:rollup-0fchdye, r=JohnTitorbors-37/+25
Rollup of 6 pull requests Successful merges: - #74088 (Avoid writes without any data in `Write::write_all_vectored`) - #74598 (Fix sync_once_cell_does_not_leak_partially_constructed_boxes) - #74750 (Clean up some uses of logging in ui tests) - #74783 (python codes cleanup) - #74790 (Don't italicize comments in ayu theme) - #74799 (Fixed typo in `closure`) Failed merges: r? @ghost
2020-07-27rename eval_const_to_op -> const_to_opRalf Jung-12/+8
2020-07-27Rollup merge of #74799 - Dhs92:master, r=joshtriplettYuki Okushi-1/+1
Fixed typo in `closure`
2020-07-27Rollup merge of #74790 - Cldfire:ayu-no-italic-comments, r=GuillaumeGomezYuki Okushi-1/+0
Don't italicize comments in ayu theme Closes #74770. Before: ![image](https://user-images.githubusercontent.com/13814214/88486217-2bf18700-cf4a-11ea-896d-e7787b94e7a7.png) After: ![image](https://user-images.githubusercontent.com/13814214/88486225-3a3fa300-cf4a-11ea-929f-90461799dc01.png)
2020-07-27Rollup merge of #74783 - jnozsc:python_cleanup, r=Mark-SimulacrumYuki Okushi-4/+4
python codes cleanup
2020-07-27Rollup merge of #74750 - oli-obk:logging_and_test_cleanups, r=JohnTitorYuki Okushi-29/+13
Clean up some uses of logging in ui tests The removed test can't possibly trigger anything today as we don't have logging in libstd. The `exec-env` flag was mistakenly used for adding env vars to rustc invocations both in test and in the test suite and there were some accidental renames from RUST_LOG to RUSTC_LOG that I reverted.
2020-07-27Rollup merge of #74598 - mzohreva:mz/fix-test, r=KodrAusYuki Okushi-0/+2
Fix sync_once_cell_does_not_leak_partially_constructed_boxes Spinning multiple threads in this test causes a deadlock in SGX where thread scheduling is not preemptive. cc @jethrogb @AdrianCX
2020-07-27Rollup merge of #74088 - tmiasko:write-all-vectored-empty, r=KodrAusYuki Okushi-2/+5
Avoid writes without any data in `Write::write_all_vectored` Previously, when non-empty sequence of empty IoSlices have been provided to `Write::write_all_vectored`, the buffers would be written as is with `Write::write_vectored` and subsequently the return value `Ok(0)` would be misinterpreted as an error. Avoid writes without any data by advancing the buffers first. This matches the documented behaviour of `Write::write_all_vectored` and is analogous to what happens in `Write::write_all`.