about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2019-08-23Auto merge of #63521 - newpavlov:redox_builder, r=pietroalbinibors-24/+20
Re-enable Redox builder (take 2) Closes: #63160
2019-08-23Auto merge of #63808 - Rosto75:master, r=KodrAusbors-56/+54
A bunch of minor documentation tweaks and fixes.
2019-08-23`--bless` some tests due to message format change.Mazdak Farrokhzad-34/+34
2019-08-23Fix `tidy` fallout due to `feature_gate.rs` refactoring.Mazdak Farrokhzad-1/+8
2019-08-23syntax: move `feature_gate.rs`.Mazdak Farrokhzad-0/+0
2019-08-23syntax: extract `check.rs`.Mazdak Farrokhzad-953/+960
2019-08-23builtin_attrs.rs: retain FIXMEs.Mazdak Farrokhzad-2/+6
2019-08-23builtin_attrs.rs: organize!Mazdak Farrokhzad-241/+259
2019-08-23builtin_attrs.rs: cleanup with `(un)gated!`.Mazdak Farrokhzad-288/+229
2019-08-23builtin_attrs.rs: refactor `rustc_attrs` entries.Mazdak Farrokhzad-233/+109
2019-08-23builtin_attrs.rs: simplify `cfg_fn`.Mazdak Farrokhzad-8/+7
2019-08-23syntax: extract `builin_attrs.rs`.Mazdak Farrokhzad-715/+732
2019-08-23syntax: extract `active.rs` feature gates.Mazdak Farrokhzad-517/+525
2019-08-23syntax: extract `removed.rs` feature gates.Mazdak Farrokhzad-77/+85
2019-08-23syntax: extract `accepted.rs` feature gates.Mazdak Farrokhzad-231/+239
2019-08-23Remove default macro transparenciesVadim Petrochenkov-35/+1
All transparancies are passed explicitly now. Also remove `#[rustc_macro_transparency]` annotations from built-in macros, they are no longer used. `#[rustc_macro_transparency]` only makes sense for declarative macros now.
2019-08-23Simplify eager normalization of constantsOliver Scherer-81/+13
2019-08-23hygiene: Require passing transparency explicitly to `apply_mark`Vadim Petrochenkov-74/+66
2019-08-23incremental: Do not rely on default transparency when decoding syntax contextsVadim Petrochenkov-19/+27
Using `ExpnId`s default transparency here instead of the mark's real transparency was actually incorrect.
2019-08-23resolve: Do not rely on default transparency when detecting proc macro derivesVadim Petrochenkov-17/+9
2019-08-23Audit uses of `apply_mark` in built-in macrosVadim Petrochenkov-41/+56
Replace them with equivalents of `Span::{def_site,call_site}` from proc macro API. The new API is much less error prone and doesn't rely on macros having default transparency.
2019-08-22Update single-use-lifetimesNaja Melan-1/+1
When using this, rustc emits a warning that the lint has been renamed (to having an 's' at the end)
2019-08-22Auto merge of #63522 - topecongiro:rustfmt-1.4.5, r=Centrilbors-21/+6
Update rustfmt to 1.4.5 This update includes a bug fix that fixes generating invalid code when formatting an impl block with const generics inside a where clause. **Changes** https://github.com/rust-lang/rustfmt/compare/0462008de87d2757e8ef1dc26f2c54dd789a59a8...1de58ce46d64b1164a214dc0b7fb7c400576c3a6
2019-08-22Do not suggest `.try_into()` on `i32::from(x)`Esteban Küber-0/+36
2019-08-22Update occurences of as_sliceSebastian Martinez-1/+1
Update occurences of as_slice to as_str
2019-08-22Fix for 7e13679.Tomasz Różański-2/+2
2019-08-22Rollup merge of #63805 - mati865:clippy, r=CentrilMazdak Farrokhzad-5/+4
Apply few Clippy suggestions Somewhat follow-up of https://github.com/rust-lang/rust/pull/62806 Changes per commit are rather small so I can squash them if that's preferred.
2019-08-22Rollup merge of #63796 - estebank:opaque_future, r=CentrilMazdak Farrokhzad-6/+62
Tweak E0308 on opaque types ``` error[E0308]: if and else have incompatible types --> file.rs:21:9 | 18 | / if true { 19 | | thing_one() | | ----------- expected because of this 20 | | } else { 21 | | thing_two() | | ^^^^^^^^^^^ expected opaque type, found a different opaque type 22 | | }.await | |_____- if and else have incompatible types | = note: expected type `impl std::future::Future` (opaque type) found type `impl std::future::Future` (opaque type) = note: distinct uses of `impl Trait` result in different opaque types = help: if both futures resolve to the same type, consider `await`ing on both of them ``` r? @Centril CC #63167
2019-08-22Rollup merge of #63788 - mark-i-m:rustc-guide-toolstate-add, r=ehussMazdak Farrokhzad-1/+1
Add amanjeev to rustc-guide toolstate cc @amanjeev @spastorino r? @ehuss
2019-08-22Rollup merge of #63782 - GuillaumeGomez:theme-switch-fix, r=kinnisonMazdak Farrokhzad-14/+14
Fix confusion in theme picker functions To reproduce the bug currently: click on the theme picker button twice (to show it then hide it). Then click anywhere else: the dropdown menu appears again. The problem was coming from a confusion of what the `hideThemeButtonState` and `showThemeButtonState` were supposed to do. I switched their codes and updated the `switchThemeButtonState` function. It now works as expected. r? @kinnison
2019-08-22Rollup merge of #63767 - lzutao:integer-ord-suboptimal, r=nagisaMazdak Farrokhzad-3/+33
Use more optimal Ord implementation for integers Closes #63758 r? @nagisa ### Compare results ([godbolt link](https://godbolt.org/z/dsbczy)) Old assembly: ```asm example::cmp1: mov eax, dword ptr [rdi] mov ecx, dword ptr [rsi] cmp eax, ecx setae dl add dl, dl add dl, -1 xor esi, esi cmp eax, ecx movzx eax, dl cmove eax, esi ret ``` New assembly: ```asm example::cmp2: mov eax, dword ptr [rdi] xor ecx, ecx cmp eax, dword ptr [rsi] seta cl mov eax, 255 cmovae eax, ecx ret ``` Old llvm-mca statistics: ``` Iterations: 100 Instructions: 1100 Total Cycles: 243 Total uOps: 1300 Dispatch Width: 6 uOps Per Cycle: 5.35 IPC: 4.53 Block RThroughput: 2.2 ``` New llvm-mca statistics: ``` Iterations: 100 Instructions: 700 Total Cycles: 217 Total uOps: 1100 Dispatch Width: 6 uOps Per Cycle: 5.07 IPC: 3.23 Block RThroughput: 1.8 ```
2019-08-22Rollup merge of #63737 - HowJMay:fix_naming, r=jonas-schievinkMazdak Farrokhzad-16/+16
Fix naming misspelling Fixes #63734
2019-08-22Rollup merge of #63624 - estebank:unreachable-macro, r=petrochenkovMazdak Farrokhzad-16/+27
When declaring a declarative macro in an item it's only accessible inside it Fix #63164. r? @petrochenkov
2019-08-22Change variables names to be more consistent.Tomasz Różański-16/+16
Changed all instances of `c_str` into `cstr` in the documentation examples. This is also consistent with the module source code.
2019-08-22Make use of existing constants.Tomasz Różański-20/+18
f32::consts::PI / 2.0 -> f32::consts::FRAC_PI_2 f32::consts::PI / 4.0 -> f32::consts::FRAC_PI_4 f64::consts::PI / 2.0 -> f64::consts::FRAC_PI_2 f64::consts::PI / 4.0 -> f64::consts::FRAC_PI_4
2019-08-22Change code formatting for readability.Tomasz Różański-20/+20
2019-08-22Fix punctuation.Tomasz Różański-1/+1
2019-08-22Remove redundant `mut`.Tomasz Różański-1/+1
2019-08-22Fix formatting.Tomasz Różański-1/+1
2019-08-22Fix a typo.Tomasz Różański-1/+1
2019-08-22Changed testsWesley Wiser-38/+17
2019-08-22Handle statics in `Subst::subst()` by implementing `TypeFoldable`Wesley Wiser-28/+56
2019-08-22Resolve PR commentsWesley Wiser-131/+81
2019-08-22Remove unnecessary OptionWesley Wiser-5/+4
2019-08-22Fix tidyWesley Wiser-15/+39
2019-08-22Move def_id out add substsrefWesley Wiser-96/+134
2019-08-22Remove eval_promoted const-prop hackWesley Wiser-26/+10
2019-08-22Move promoted out of mir::BodyWesley Wiser-126/+253
2019-08-22Move 'tcx lifetime on MirPassWesley Wiser-48/+48
2019-08-22Apply clippy::let_and_return suggestionMateusz Mikuła-2/+1