- 07 3月, 2018 18 次提交
-
-
由 Alex Crichton 提交于
-
-
-
-
由 Alex Crichton 提交于
Remove unused 'src/etc/ziggurat_tables.py' Python script. This Python script was used to generate a `ziggurat_tables.rs` file in librand, but librand was moved out of the repo. * https://github.com/rust-lang/rust/commits/master/src/librand/distributions/ziggurat_tables.rs * https://github.com/rust-lang-nursery/rand/blob/master/utils/ziggurat_tables.py
-
由 Alex Crichton 提交于
Stabilize option_ref_mut_cloned Closes #43738.
-
由 Alex Crichton 提交于
Fix save-analysis generation crash with invalid tuple access Reproduction: ```rust fn invalid_tuple_struct_accessing() { bar.0; } ``` ``` error[E0425]: cannot find value `bar` in this scope --> test.rs:2:5 | 2 | bar.0; | ^^^ not found in this scope error[E0601]: main function not found error: internal compiler error: librustc_save_analysis/dump_visitor.rs:1678: Expected struct or tuple type, found TyError --> test.rs:2:5 | 2 | bar.0; | ^^^^^ thread 'rustc' panicked at 'Box<Any>', librustc_errors/lib.rs:482:9 note: Run with `RUST_BACKTRACE=1` for a backtrace. ``` This should fix a crash in RLS when editing such code. cc @nrc
-
由 Alex Crichton 提交于
Remove ty::Predicate::Equate and ty::EquatePredicate (dead code) r? @nikomatsakis I also killed the EquatePredicate subsystem. Does it look fine? Close #48670
-
由 Alex Crichton 提交于
Fixed #48425 : Various functions taking a `TyCtxt` and a `Span` should be taking a `TyCtxtAt` Hi @oli-obk I have done some code refactoring to fix #48425, Please let me know if anything else is required on this.
-
由 Alex Crichton 提交于
Better docs and associated SUCCESS/FAILURE for process::ExitCode Follow-up to https://github.com/rust-lang/rust/pull/48497#discussion_r170676525, since that PR was the minimal thing to unblock https://github.com/rust-lang/rust/issues/48453#issuecomment-368155082. r? @nikomatsakis
-
由 Alex Crichton 提交于
Drop rustc-serialize, add winapi 0.3 and Serde!
-
由 Alex Crichton 提交于
Add resource-suffix option for rustdoc Alternative version of #48442. cc @onur r? @QuietMisdreavus
-
由 Corey Farwell 提交于
This Python script was used to generate a `ziggurat_tables.rs` file in librand, but librand was moved out of the repo. * https://github.com/rust-lang/rust/commits/master/src/librand/distributions/ziggurat_tables.rs * https://github.com/rust-lang-nursery/rand/blob/master/utils/ziggurat_tables.py
-
由 Shotaro Yamada 提交于
-
由 Shotaro Yamada 提交于
-
由 Matt Brubeck 提交于
Closes #43738.
-
由 bors 提交于
Update env_logger to 0.5.4 It looks like this cuts down on the number of dependencies in env_logger and notably cuts out a difference between a shared dependency of rls/cargo. My goal here is to ensure that when we compile the RLS/Cargo on CI we only compile Cargo once, and this is one step towards that!
-
由 Alex Crichton 提交于
It looks like this cuts down on the number of dependencies in env_logger and notably cuts out a difference between a shared dependency of rls/cargo. My goal here is to ensure that when we compile the RLS/Cargo on CI we only compile Cargo once, and this is one step towards that!
-
- 06 3月, 2018 22 次提交
-
-
由 bors 提交于
Rollup of 14 pull requests - Successful merges: #48403, #48432, #48546, #48573, #48590, #48657, #48727, #48732, #48753, #48754, #48761, #48474, #48507, #47463 - Failed merges:
-
由 kennytm 提交于
Stabilize FusedIterator FusedIterator is a marker trait that promises that the implementing iterator continues to return `None` from `.next()` once it has returned `None` once (and/or `.next_back()`, if implemented). The effects of FusedIterator are already widely available through `.fuse()`, but with stable `FusedIterator`, stable Rust users can implement this trait for their iterators when appropriate. Closes #35602
-
由 kennytm 提交于
Add new warning for CStr::from_ptr Fixes #48401.
-
由 kennytm 提交于
New Cell docs This fixes https://github.com/rust-lang/rust/issues/44061
-
由 kennytm 提交于
Remove seemingly unused sugarise-doc-comments Python script. This Python script converts documentation comments from the `#[doc = "..."]` attribute to the `///` syntax. It was added six years ago, presumably to help with the transition when `///` was implemented and hasn't really been touched since. I don't think there's much value in keeping it around at this point.
-
由 kennytm 提交于
while let all the things
-
由 kennytm 提交于
Remove a couple of `isize` references from hashmap docs Also fix a spelling mistake.
-
由 kennytm 提交于
Remove useless powerpc64 entry from ARCH_TABLE Hope, I understood the scope of the fix correctly. closes #47737
-
由 kennytm 提交于
Refactor contrived match.
-
由 kennytm 提交于
Optimize str::repeat Improves the performance of `str::repeat` by bulk copying. Here is the benchmarks of `"abcde".repeat(n)`: |`n`|old [ns/iter]|new [ns/iter]|diff [%]| ---|---|---|--- |1|27.205|27.421|+0.794| |2|27.500|27.516|+0.0581| |3|27.923|27.648|-0.985| |4|31.206|30.145|-3.40| |5|35.144|31.861|-9.34| |7|43.131|34.621|-19.7| |10|54.945|36.203|-34.1| |100|428.31|52.895|-87.7|
-
由 bors 提交于
Don't recompute SymbolExportLevel for upstream crates. The data collected in #48373 suggests that we can avoid generating up to 30% of the LLVM definitions by only instantiating function monomorphizations once with a given crate graph. Some more data, collected with a [proof-of-concept implementation](https://github.com/michaelwoerister/rust/commits/share-generics) of re-using monomorphizations, which is less efficient than the MIR-only RLIB approach, suggests that it's still around 25% LLVM definitions that we can save. So far, this PR only cleans up handling of symbol export status. Too early to review still.
-
由 Michael Woerister 提交于
-
由 Michael Woerister 提交于
-
由 Michael Woerister 提交于
-
由 Michael Woerister 提交于
-
由 Michael Woerister 提交于
-
由 Michael Woerister 提交于
-
由 kennytm 提交于
doc: no need for the reference Also, we are well within line length limit
-
由 kennytm 提交于
Add functions for reversing the bit pattern in an integer I'm reviving PR #32798 now that the LLVM issues have been resolved. > This adds the bitreverse intrinsic and adds a reverse_bits function to all integer types.
-
由 kennytm 提交于
Raw string error note Fixes #48395. I think this note should be helpful enough to solve the issue.
-
由 kennytm 提交于
Suggest type for overflowing bin/hex-literals Fixes #48073 For hexadecimal and binary literals, which overflow, it gives an additional note to the warning message, like in this [comment](https://github.com/rust-lang/rust/issues/48073#issuecomment-365370113). Additionally it will suggest a type (`X < Y`): - `iX`: if literal fits in `uX` => `uX`, else => `iY` - `-iX` => `iY` - `uX` => `uY` Exceptions: `isize`, `usize`. I don't think you can make a good suggestion here. The programmer has to figure it out on it's own in this case. r? @oli-obk
-
由 kennytm 提交于
Fix spelling s/casted/cast/ r? @GuillaumeGomez
-