about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2018-07-30rustc_codegen_llvm: fix tidy errors.Irina Popa-24/+77
2018-07-30rustc_codegen_llvm: use safe references for ThinLTOData.Irina Popa-13/+12
2018-07-30rustc_codegen_llvm: use safe references for ThinLTOBuffer.Irina Popa-6/+6
2018-07-30rustc_codegen_llvm: use safe references for ModuleBuffer.Irina Popa-6/+6
2018-07-30rustc_codegen_llvm: use safe references for RustArchiveMember.Irina Popa-16/+16
2018-07-30rustc_codegen_llvm: use safe references for ArchiveChild.Irina Popa-38/+56
2018-07-30rustc_codegen_llvm: use safe references for ArchiveIterator.Irina Popa-9/+6
2018-07-30rustc_codegen_llvm: use safe references for Linker.Irina Popa-10/+9
2018-07-30rustc_codegen_llvm: use safe references for SectionIterator.Irina Popa-14/+13
2018-07-30rustc_codegen_llvm: use safe references for PassManager.Irina Popa-64/+65
2018-07-30rustc_codegen_llvm: use safe references for OperandBundleDef.Irina Popa-25/+26
2018-07-30rustc_codegen_llvm: use safe mutable references for output parameters.Irina Popa-12/+12
2018-07-30rustc_codegen_llvm: use safe references for RustString.Irina Popa-30/+33
2018-07-30rustc_codegen_llvm: use safe references for Twine, DiagnosticInfo, SMDiagnostic.Irina Popa-29/+24
2018-07-30rustc_codegen_llvm: use safe references for Archive.Irina Popa-17/+11
2018-07-30rustc_codegen_llvm: use safe references for TargetMachine.Irina Popa-13/+12
2018-07-30rustc_codegen_llvm: use safe references for Pass.Irina Popa-12/+9
2018-07-30rustc_codegen_llvm: use safe references for PassManagerBuilder.Irina Popa-15/+14
2018-07-30rustc_codegen_llvm: use safe references for MemoryBuffer and ObjectFile.Irina Popa-21/+16
2018-07-30rustc_codegen_llvm: remove more unused functions.Irina Popa-401/+21
2018-07-30rustc_codegen_llvm: remove unused UseRef type.Irina Popa-7/+0
2018-07-30rustc_codegen_llvm: use safe references for BasicBlock.Irina Popa-55/+54
2018-07-30rustc_codegen_llvm: use safe references for Value.Irina Popa-1232/+1216
2018-07-30rustc_codegen_llvm: remove _opaque suffix.Irina Popa-49/+49
2018-07-30rustc_codegen_llvm: remove #![allow(dead_code)] from llvm.Irina Popa-37/+2
2018-07-30rustc_codegen_llvm: remove unused ExecutionEngineRef type.Irina Popa-2/+0
2018-07-30rustc_codegen_llvm: use safe references for Metadata and DI*.Irina Popa-377/+411
2018-07-30rustc_codegen_llvm: use safe references for DIBuilder.Irina Popa-34/+33
2018-07-30rustc_codegen_llvm: use safe references for Builder.Irina Popa-144/+142
2018-07-30rustc_codegen_llvm: use safe references for Type.Irina Popa-533/+568
2018-07-30rustc_codegen_llvm: use safe references for Context and Module.Irina Popa-556/+549
2018-07-30rustc_codegen_llvm: move from empty enums to extern types.Irina Popa-197/+178
2018-07-30rustc_llvm: move to rustc_codegen_llvm::llvm.Irina Popa-358/+348
2018-07-30Auto merge of #52697 - ljedrz:misc_data_structures, r=Mark-Simulacrumbors-11/+5
Simplify a few functions in rustc_data_structures - drop `try!()` where it's superfluous - change `try!()` to `?` - squash a `push` with `push_str` - refactor a push loop into an iterator
2018-07-30Auto merge of #52830 - matthewjasper:bootstrap-prep, r=matthewjasperbors-15/+16
[NLL] Fix some things for bootstrap Some changes that are required when bootstrapping rustc with NLL enabled. * Remove a bunch of unused `mut`s that aren't needed, but the existing lint doesn't catch. * Rewrite a function call to satisfy NLL borrowck. Note that the borrow is two-phase, but gets activated immediately by an unsizing coercion. cc #51823
2018-07-30Auto merge of #52722 - alexcrichton:more-identifier-lints, r=oli-obkbors-7/+49
Tweak the raw_identifiers lints in 2018 * Enable the `raw_identifiers` feature automatically in the 2018 preview * Only emit lint warnings if the `raw_identifiers` feature is activated cc rust-lang/cargo#5783
2018-07-30Auto merge of #52805 - ljedrz:format_str_literal, r=petrochenkovbors-172/+168
Don't format!() string literals Prefer `to_string()` to `format!()` take 2, this time targetting string literals. In some cases (`&format!("...")` -> `"..."`) also removes allocations. Occurences of `format!("")` are changed to `String::new()`.
2018-07-30Auto merge of #52823 - RalfJung:test, r=eddybbors-2/+21
invalid_const_promotion: check if we get the right signal r? @eddyb
2018-07-30Auto merge of #52828 - Mark-Simulacrum:clear-rustdoc-check, r=alexcrichtonbors-0/+5
Clear out rustdoc check builds if dependencies change r? @alexcrichton
2018-07-29Auto merge of #52738 - ljedrz:push_to_extend, r=eddybbors-150/+101
Replace push loops with extend() where possible Or set the vector capacity where I couldn't do it. According to my [simple benchmark](https://gist.github.com/ljedrz/568e97621b749849684c1da71c27dceb) `extend`ing a vector can be over **10 times** faster than `push`ing to it in a loop: 10 elements (6.1 times faster): ``` test bench_extension ... bench: 75 ns/iter (+/- 23) test bench_push_loop ... bench: 458 ns/iter (+/- 142) ``` 100 elements (11.12 times faster): ``` test bench_extension ... bench: 87 ns/iter (+/- 26) test bench_push_loop ... bench: 968 ns/iter (+/- 3,528) ``` 1000 elements (11.04 times faster): ``` test bench_extension ... bench: 311 ns/iter (+/- 9) test bench_push_loop ... bench: 3,436 ns/iter (+/- 233) ``` Seems like a good idea to use `extend` as much as possible.
2018-07-29dont hardcode vtable size in codegen testRalf Jung-2/+2
2018-07-29update codegen testsRalf Jung-2/+2
2018-07-29Move a test that depends on the arch bitwidth to compile-failOliver Schneider-43/+0
2018-07-29Update miri submoduleOliver Schneider-4/+10
2018-07-29Sanity-check all constantsOliver Schneider-190/+1049
2018-07-29Change order of copy and borrow to avoid conflictMatthew Jasper-1/+2
Note that the first argument is `self as &mut dyn Delegate`, so this isn't allowed with two-phase borrows.
2018-07-29Remove unused `mut`sMatthew Jasper-14/+14
2018-07-29Replace push loops with collect() and extend() where possibleljedrz-150/+101
2018-07-29Clear out rustdoc check builds if dependencies changeMark Rousskov-0/+5
2018-07-29Auto merge of #52620 - mikhail-m1:51351, r=nikomatsakisbors-48/+218
fix simple case of issue #51351 and #52133 r? @nikomatsakis