- 27 1月, 2018 4 次提交
-
-
由 Niko Matsakis 提交于
-
由 Niko Matsakis 提交于
Otherwise the vector is initially out of sync
-
由 Niko Matsakis 提交于
I suspect the lines would be long for tidy.
-
由 Santiago Pastorino 提交于
Fixes #47602
-
- 26 1月, 2018 4 次提交
-
-
由 bors 提交于
Print inlined functions on Windows Split from https://github.com/rust-lang/rust/pull/45637 r? @alexcrichton
-
由 bors 提交于
Update rls Currently rls is missing from the latest nightly component. This PR brings it back.
-
由 topecongiro 提交于
-
由 John Kåre Alsaker 提交于
-
- 25 1月, 2018 18 次提交
-
-
由 bors 提交于
Rollup of 10 pull requests - Successful merges: #47534, #47609, #47679, #47691, #47700, #47702, #47717, #47721, #47726, #47729 - Failed merges:
-
由 Guillaume Gomez 提交于
Update Cargo submodule to master Just a routine update
-
由 Guillaume Gomez 提交于
Fix spans in unused import lint for nested groups This fixes an inconsistency for empty nested groups, and adds a test for all the possible cases of the lint. ``` warning: unused imports: `*`, `Foo`, `baz::{}`, `foobar::*` --> test.rs:16:11 | 16 | use foo::{Foo, bar::{baz::{}, foobar::*}, *}; | ^^^ ^^^^^^^ ^^^^^^^^^ ^ | = note: #[warn(unused_imports)] on by default warning: unused import: `*` --> test.rs:17:24 | 17 | use foo::bar::baz::{*, *}; | ^ warning: unused import: `use foo::{};` --> test.rs:18:1 | 18 | use foo::{}; | ^^^^^^^^^^^^ ``` cc #44494
-
由 Guillaume Gomez 提交于
Fix experimental text display on default theme r? @QuietMisdreavus
-
由 Guillaume Gomez 提交于
fix for documentation error issue 47716 Fix #47716
-
由 Guillaume Gomez 提交于
Fix into() cast paren check precedence As discussed in #47699 the logic for determining if an expression needs parenthesis when suggesting an `.into()` cast is incorrect. Two broken examples from nightly are: ``` error[E0308]: mismatched types --> main.rs:4:10 | 4 | test(foo as i8); | ^^^^^^^^^ expected i32, found i8 help: you can cast an `i8` to `i32`, which will sign-extend the source value | 4 | test(foo as i8.into()); | ``` ``` error[E0308]: mismatched types --> main.rs:4:10 | 4 | test(*foo); | ^^^^ expected i32, found i8 help: you can cast an `i8` to `i32`, which will sign-extend the source value | 4 | test(*foo.into()); | ``` As suggested by @petrochenkov switch the precedence check to `PREC_POSTFIX`. This catches both `as` and unary operators. Fixes #47699. r? @petrochenkov
-
由 Guillaume Gomez 提交于
Remove workarounds for cc 1.0.3. Now that the Rust codebase depends on cc 1.0.4, there is no longer any need to specify a compiler for CloudABI manually. Cargo will automatically call into the right compiler executable.
-
由 Guillaume Gomez 提交于
Point at unknown lang item attribute
-
由 Guillaume Gomez 提交于
Remove broken redundant backtrace hint When the compiler driver panics it attempts to show a hint about using `RUST_BACKTRACE`. However, the logic is currently reversed to the hint is only shown if `RUST_BACKTRACE` is **already** set: ```shell > RUST_BACKTRACE=1 rustc /dev/null --crate-type proc-macro error: internal compiler error: unexpected panic ... note: run with `RUST_BACKTRACE=1` for a backtrace thread 'rustc' panicked at 'attempt to subtract with overflow', librustc_errors/emitter.rs:287:49 note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace. > RUST_BACKTRACE=0 rustc /dev/null --crate-type proc-macro error: internal compiler error: unexpected panic ... thread 'rustc' panicked at 'attempt to subtract with overflow', librustc_errors/emitter.rs:287:49 note: Run with `RUST_BACKTRACE=1` for a backtrace. ``` As the `panic` itself already has a working `RUST_BACKTRACE` hint just remove the broken duplicate hint entirely.
-
由 Guillaume Gomez 提交于
NLL test for mutating &mut references As mentioned in #46361. cc @nikomatsakis?
-
由 Guillaume Gomez 提交于
On missing method do not suggest private traits When encountering a method call for an ADT that doesn't have any implementation of it, we search for traits that could be implemented that do have that method. Filter out private non-local traits that would not be able to be implemented. This doesn't account for public traits that are in a private scope, but works as a first approximation and is a more correct behavior than the current one. Fix #45781.
-
由 bors 提交于
Few fixes for multiple themes support feature r? @QuietMisdreavus Fixes #47695.
-
由 Alex Crichton 提交于
Just a routine update
-
由 bors 提交于
Simplify irrefutable slice patterns Closes #47096.
-
由 bors 提交于
Stabilized `#[repr(align(x))]` attribute (RFC 1358) Stabilzed `#[repr(align(x))]` with attr_literal syntax as proposed by @EddyB https://github.com/rust-lang/rust/issues/33626#issuecomment-348467804
-
由 Pietro Albini 提交于
-
由 Guillaume Gomez 提交于
-
由 evelynmitchell 提交于
-
- 24 1月, 2018 10 次提交
-
-
由 Guillaume Gomez 提交于
-
由 bors 提交于
Makes the constructors of Duration const fns. This affects `Duration::new`, `Duration::from_secs`, `Duration::from_millis`, `Duration::from_micros`, and `Duration::from_nanos`.
-
由 Ryan Cumming 提交于
As discussed in #47699 the logic for determining if an expression needs parenthesis when suggesting an `.into()` cast is incorrect. Two broken examples from nightly are: ``` error[E0308]: mismatched types --> main.rs:4:10 | 4 | test(foo as i8); | ^^^^^^^^^ expected i32, found i8 help: you can cast an `i8` to `i32`, which will sign-extend the source value | 4 | test(foo as i8.into()); | ``` ``` error[E0308]: mismatched types --> main.rs:4:10 | 4 | test(*foo); | ^^^^ expected i32, found i8 help: you can cast an `i8` to `i32`, which will sign-extend the source value | 4 | test(*foo.into()); | ``` As suggested by @petrochenkov switch the precedence check to PREC_POSTFIX. This catches both `as` and unary operators. Fixes #47699.
-
由 Ed Schouten 提交于
Now that the Rust codebase depends on cc 1.0.4, there is no longer any need to specify a compiler for CloudABI manually. Cargo will automatically call into the right compiler executable.
-
由 bors 提交于
Make core::ops::Place an unsafe trait Consumers of `Place` would reasonably expect that the `pointer` function returns a valid pointer to memory that can actually be written to.
-
由 Esteban Küber 提交于
-
由 bors 提交于
Expose float from_bits and to_bits in libcore. These methods have no dependencies on libm and thus should be offered in libcore.
-
由 bors 提交于
Immovable generators This adds support for immovable generators which allow you to borrow local values inside generator across suspension points. These are declared using a `static` keyword: ```rust let mut generator = static || { let local = &Vec::new(); yield; local.push(0i8); }; generator.resume(); // ERROR moving the generator after it has resumed would invalidate the interior reference // drop(generator); ``` Region inference is no longer affected by the types stored in generators so the regions inside should be similar to other code (and unaffected by the presence of `yield` expressions). The borrow checker is extended to pick up the slack so interior references still result in errors for movable generators. This fixes #44197, #45259 and #45093. This PR depends on [PR #44917 (immovable types)](https://github.com/rust-lang/rust/pull/44917), I suggest potential reviewers ignore the first commit as it adds immovable types.
-
由 ritiek 提交于
-
由 bors 提交于
Rollup of 14 pull requests - Successful merges: #47423, #47425, #47440, #47541, #47549, #47554, #47558, #47610, #47635, #47655, #47661, #47662, #47667, #47672 - Failed merges:
-
- 23 1月, 2018 4 次提交