about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2019-02-07also fix bad use of shared ref in split_at_mutRalf Jung-1/+1
2019-02-07unused_imports: make the lint machine-applicablePietro Albini-22/+191
2019-02-07Resolve incorrect diagnostic for using a non-const value in a constantvarkor-57/+47
2019-02-07Add fixmeEsteban Küber-1/+3
2019-02-07Add a test forbidding the use of const parameters in inner itemsvarkor-0/+37
2019-02-07Make name resolution handle consts in GenericParamsFromOuterFunction properlyvarkor-93/+120
2019-02-07Parse negative literals in const generic argumentsvarkor-2/+5
2019-02-07Add warning for a parameter list with an attribute but no parametersvarkor-10/+28
2019-02-07Add test for generic parameter list solely containing an attributevarkor-0/+5
2019-02-07Fix update to 2018 editionvarkor-1/+1
2019-02-07Adjust generic const param resolutionvarkor-152/+65
2019-02-07Adjust parser generic parameter errorsvarkor-54/+93
2019-02-07Fix E0670 doc errorvarkor-1/+4
2019-02-07Fix ast_validation printing of const genericsvarkor-9/+15
2019-02-07Fix const generic parameter save analysisvarkor-6/+12
2019-02-07Add test for const parameter before other generic parametersvarkor-0/+39
2019-02-07Add test for const parameter depending on type parametervarkor-0/+28
2019-02-07Add test forbidding const parameters in const fnvarkor-0/+36
2019-02-07Update testsvarkor-257/+182
Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
2019-02-07Add const generics feature gate testvarkor-0/+31
Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
2019-02-07Support const generics in save analysisvarkor-3/+11
Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
2019-02-07Add error for const parameters depending on type parametersvarkor-2/+13
Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
2019-02-07Validate generic parameter and argument order in ast_validationvarkor-16/+112
Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
2019-02-07Add lowering errors for const genericsvarkor-32/+53
Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
2019-02-07Add const params to Defvarkor-3/+21
Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
2019-02-07Add resolution errors for const genericsvarkor-32/+146
Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
2019-02-07Add pretty-printing for const genericsvarkor-1/+16
Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
2019-02-07Support const generics in derivevarkor-2/+34
Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
2019-02-07Parse const genericsvarkor-178/+112
Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
2019-02-07Add const_generics feature flagvarkor-2/+13
Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
2019-02-07Add Const kind to ASTvarkor-3/+13
Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
2019-02-07Un-monomorphize and inline formatting with paddingNick Fitzgerald-29/+57
The generic `F` in `with_padding` was causing a bunch of stuff to get inlined that otherwise needn't be, blowing up code size.
2019-02-07Reweork incompatible match arms errorEsteban Küber-62/+92
- Point at the body expression of the match arm with the type error. - Point at the prior match arms explicitely stating the evaluated type. - Point at the entire match expr in a secondary span, instead of primary. - For type errors in the first match arm, the cause is outside of the match, treat as implicit block error to give a more appropriate error.
2019-02-07Rollup merge of #58185 - GuillaumeGomez:images-url, r=SimonSapinGuillaume Gomez-114/+37
Remove images' url to make it work even without internet connection Needed for local std docs mainly. cc @SimonSapin r? @QuietMisdreavus
2019-02-07Rollup merge of #58150 - ↵Guillaume Gomez-8/+9
GuillaumeGomez:dont-apply-impl-collapse-rules-to-trait-impls, r=Manishearth Don't apply impl block collapse rules to trait impls Fixes #58147. r? @QuietMisdreavus
2019-02-07Rollup merge of #58146 - GuillaumeGomez:dont-collapse-everything, ↵Guillaume Gomez-2/+20
r=QuietMisdreavus Prevent automatic collapse of methods impl blocks Fixes #57582. r? @QuietMisdreavus
2019-02-07Rollup merge of #58143 - GuillaumeGomez:sort-elements-in-sidebar, ↵Guillaume Gomez-72/+84
r=QuietMisdreavus Sort elements in the sidebar Fixes #57448. Not sorting fields or variants though. r? @QuietMisdreavus
2019-02-07Rollup merge of #58086 - GuillaumeGomez:rustdoc-file-list-improvement, ↵Guillaume Gomez-2/+3
r=Manishearth [rustdoc] Improve file list display Improve a bit the arrows to show a folder's file and the arrow to show/hide the left panel. r? @QuietMisdreavus
2019-02-07Rollup merge of #58033 - euclio:rustdoc-tags, r=QuietMisdreavusGuillaume Gomez-19/+31
rustdoc: wrap stability tags in colored spans A cosmetic change to make the stability tags stand out a bit against the docs. Opening for discussion. Before: ![screen shot 2019-01-31 at 3 29 36 pm](https://user-images.githubusercontent.com/1372438/52083406-54730d80-256d-11e9-8e61-b8caff569434.png) ![screen shot 2019-01-31 at 3 31 32 pm](https://user-images.githubusercontent.com/1372438/52083408-54730d80-256d-11e9-97b7-43e808448f65.png) After: ![screen shot 2019-01-31 at 3 29 18 pm](https://user-images.githubusercontent.com/1372438/52083405-54730d80-256d-11e9-9983-19d9519b2ed8.png) ![screen shot 2019-01-31 at 3 29 46 pm](https://user-images.githubusercontent.com/1372438/52083407-54730d80-256d-11e9-8c32-11a1ad7d3f34.png) r? @QuietMisdreavus
2019-02-07Rollup merge of #58028 - GuillaumeGomez:fix-settings-image-link, ↵Guillaume Gomez-15/+35
r=QuietMisdreavus Fix image link in the settings menu Fixes #57892. r? @QuietMisdreavus
2019-02-07Rollup merge of #57954 - euclio:rustdoc-stability, r=QuietMisdreavusGuillaume Gomez-4/+12
rustdoc: remove blank unstable spans Rustdoc generates blank unstable spans for unstable struct fields: ![screen shot 2019-01-28 at 1 05 04 pm](https://user-images.githubusercontent.com/1372438/51856295-5e8ed500-22fd-11e9-8074-025eddb4ef65.png) This PR removes them: ![screen shot 2019-01-28 at 1 07 22 pm](https://user-images.githubusercontent.com/1372438/51856424-aada1500-22fd-11e9-86f0-34e2aa78b8b1.png) r? @QuietMisdreavus
2019-02-07Rollup merge of #57884 - GuillaumeGomez:update-minifier-array, r=QuietMisdreavusGuillaume Gomez-3/+4
Update minifier version Should fix #57754 (at least it's a bit faster on my computer). The whole point of this update is to create a huge array instead of creating a lot of variables. r? @QuietMisdreavus
2019-02-07Rollup merge of #57848 - jrvanwhy:transmute-export-doc, r=QuietMisdreavusGuillaume Gomez-0/+1
Generate a documentation page for core::mem::transmute. In `#[no_std]` environments, `std::mem::transmute` is unavailable. Searching for "core transmute" online only pulls up `core::intrinsics::transmute`, which is behind the (unstable) `core_intrinsics` feature flag. Users wishing to use transmute in `#[no_std]` environments typically should use `core::mem::transmute` instead, as it is stable. This documentation makes `core::mem::transmute` discoverable.
2019-02-07Rollup merge of #57504 - GuillaumeGomez:re-enable-history, r=QuietMisdreavusGuillaume Gomez-2/+1
Re-enable history api on file:// protocol Fixes #57135. I tested locally on chrome (since it was the browser having issues with history management on `file://` protocol) and it worked fine so I guess we can re-enable it. r? @QuietMisdreavus
2019-02-07Calculate self-times not total timesWesley Wiser-7/+18
2019-02-07Add #[inline] annotationsWesley Wiser-0/+7
2019-02-07Implement more detailed self profilingWesley Wiser-182/+345
Timing data and cache hits/misses are now recorded at the query level. This allows us to show detailed per query information such as total time for each query. To see detailed query information in the summary pass the `-Z verbose` flag. For example: ``` rustc -Z self-profile -Z verbose hello_world.rs ```
2019-02-07De-duplicate write_prefix lambda in pad_integralNick Fitzgerald-11/+20
For smaller code size.
2019-02-07De-duplicate number formatting implementations for smaller code sizeNick Fitzgerald-31/+38
Instead of inlining the same logic into every number formatting implementation, pull it out into a function that each of the number formatting impls call into.
2019-02-07Don't apply impl block collapse rules to trait implsGuillaume Gomez-8/+9