- 14 8月, 2019 1 次提交
-
-
由 Baoshan Pang 提交于
2. change armv7_wrs_vxworks to armv7_wrs_vxworks_eabihf. 3. use wr-** instead of vx-** 4. set PIE to false 5. code cleanup
-
- 12 8月, 2019 35 次提交
-
-
由 bors 提交于
Improve invalid_value lint message The lint now explains which type is involved and why it cannot be initialized this way. It also points at the innermost struct/enum field that has an offending type, if any. See https://github.com/erlepereira/x11-rs/issues/99#issuecomment-520311911 for how this helps in some real-world code hitting this lint.
-
由 Ralf Jung 提交于
-
由 bors 提交于
Rollup of 9 pull requests Successful merges: - #62108 (Use sharded maps for queries) - #63297 (Improve pointer offset method docs) - #63406 (Suggest using a qualified path in patterns with inconsistent bindings) - #63431 (Revert "Simplify MIR generation for logical ops") - #63449 (resolve: Remove remaining special cases from built-in macros) - #63461 (docs: add stdlib env::var(_os) panic) - #63473 (Regression test for #56870) - #63474 (Add tests for issue #53598 and #57700) - #63480 (Fixes #63477) Failed merges: r? @ghost
-
由 Mazdak Farrokhzad 提交于
Fixes #63477 Adds a closing parenthesis.
-
由 Mazdak Farrokhzad 提交于
Add tests for issue #53598 and #57700 Closes #53598 and #57700
-
由 Mazdak Farrokhzad 提交于
Regression test for #56870 Closes #56870.
-
由 Mazdak Farrokhzad 提交于
docs: add stdlib env::var(_os) panic Closes #63456
-
由 Mazdak Farrokhzad 提交于
resolve: Remove remaining special cases from built-in macros Edition and definition sites of the macros are now also taken from the `#[rustc_builtin_macro]` definitions in `libcore`. --- The edition switch may be a breaking change for `Rustc{Encodable,Decodable}` derives if they are used in combination with the unstable crate `serialize` from sysroot like this ```rust extern crate serialize; use serialize as rustc_serialize; #[derive(RustcEncodable)] struct S; ``` (see the updated `ui-fulldeps` tests).
-
由 Mazdak Farrokhzad 提交于
Revert "Simplify MIR generation for logical ops" This reverts commit e38e954a. llvm were not able to optimize the code that well with the simplified mir. Closes: #62993
-
由 Mazdak Farrokhzad 提交于
Rollup merge of #63406 - jakubadamw:resolve-inconsistent-names-suggest-qualified-path, r=petrochenkov Suggest using a qualified path in patterns with inconsistent bindings A program like the following one: ```rust enum E { A, B, C } fn f(x: E) -> bool { match x { A | B => false, C => true } } ``` is rejected by the compiler due to `E` variant paths not being in scope. In this case `A`, `B` are resolved as pattern bindings and consequently the pattern is considered invalid as the inner or-patterns do not bind to the same set of identifiers. This is expected but the compiler errors that follow could be surprising or confusing to some users. This commit adds a help note explaining that if the user desired to match against variants or consts, they should use a qualified path. The help note is restricted to cases where the identifier starts with an upper-case sequence so as to reduce the false negatives. Since this happens during resolution, there's no clean way to check what it is the patterns match against. The syntactic criterium, however, is in line with the convention that's assumed by the `non-camel-case-types` lint. Fixes #50831.
-
由 Mazdak Farrokhzad 提交于
Improve pointer offset method docs Cc @rkruppe @gnzlbg
-
由 Mazdak Farrokhzad 提交于
Use sharded maps for queries Based on https://github.com/rust-lang/rust/pull/61779. r? @Gankro
-
由 OptimisticPeach 提交于
Adds a closing parenthesis.
-
由 bors 提交于
libsyntax: Refactor `parser.rs` into reasonably sized logical units Here we split `parser.rs` (~7.9 KLOC) into more reasonably sized files (all < 1.8 KLOC): - `./src/libsyntax/parse/` - `parser.rs` - `parser/` - `pat.rs` - `expr.rs` - `stmt.rs` - `ty.rs` - `path.rs` - `generics.rs` - `item.rs` - `module.rs` Closes https://github.com/rust-lang/rust/issues/60015. r? @petrochenkov
-
由 bors 提交于
Update RLS This update includes the ability to warn on deprecated config keys. It's important to be able to warn the user whenever they're using an old configuration rather than giving them a cryptic "unknown configuration error" cc https://github.com/rust-lang/rls-vscode/issues/639 Since we removed a config value in the current nightly, it'd be very good if this change can make also make it before cutting the next release.
-
由 Adam 提交于
-
由 Adam 提交于
-
由 Adrian Budau 提交于
-
由 bors 提交于
Rollup of 8 pull requests Successful merges: - #61969 (Add #[repr(transparent)] for several types) - #63346 (Lint on some incorrect uses of mem::zeroed / mem::uninitialized) - #63433 (Miri shouldn't look at types) - #63440 (rename RUST_CTFE_BACKTRACE to RUSTC_CTFE_BACKTRACE) - #63441 (Derive Debug for CrateInfo) - #63442 (Add an example to show how to insert item to a sorted vec) - #63453 (rustdoc: general cleanup) - #63464 (Copy ty::Instance instead of passing by reference) Failed merges: r? @ghost
-
由 Mark Rousskov 提交于
Copy ty::Instance instead of passing by reference ty::Instance is small and Copy, we should not be adding additional indirection. Fixes #63409. r? @EddyB
-
由 Mark Rousskov 提交于
rustdoc: general cleanup Almost all commits stand alone; but all commits can be reviewed individually.
-
由 Mark Rousskov 提交于
Add an example to show how to insert item to a sorted vec Closes #61684 cc #61742 r? @Mark-Simulacrum, @jonas-schievink
-
由 Mark Rousskov 提交于
Derive Debug for CrateInfo
-
由 Mark Rousskov 提交于
rename RUST_CTFE_BACKTRACE to RUSTC_CTFE_BACKTRACE This matches `RUSTC_LOG`. Both affect only rustc, not any Rust program.
-
由 Mark Rousskov 提交于
Miri shouldn't look at types r? @oli-obk Fixes https://github.com/rust-lang/rust/issues/62137
-
由 Mark Rousskov 提交于
Lint on some incorrect uses of mem::zeroed / mem::uninitialized Cc https://github.com/rust-lang/rust/issues/62825 and https://internals.rust-lang.org/t/make-mem-uninitialized-and-mem-zeroed-panic-for-some-types-where-0-is-a-niche/10605 This does not yet handle `NonNull`/`NonZero*`, but it is a start. I also improved some doc issues I hit on the way, and added a useful helper to `TyS`. EDIT: I added the relnotes label mostly as a proposal -- I think this is worth mentioning, but leave the decision up to the release team.
-
由 Mark Rousskov 提交于
Add #[repr(transparent)] for several types In some functions, types mentioned in this PR are transmuted into their inner value. Example for `PathBuf`: https://github.com/rust-lang/rust/blob/master/src/libstd/path.rs#L1132. This PR adds `#[repr(transparent)]` to those types, so their correct behavior doesn't depend on compiler details. (As far as I understand, currently that line, converting `PathBuf` to `Vec<u8>`, is UB).
-
由 Igor Matuszewski 提交于
This update includes the ability to warn on deprecated config keys. It's important to be able to warn the user whenever they're using an old configuration rather than giving them a cryptic "unknown configuration error" cc https://github.com/rust-lang/rls-vscode/issues/639 Since we removed a config value in the current nightly, it'd be very good if this change can make also make it before cutting the next release.
-
由 Mazdak Farrokhzad 提交于
-
由 Mazdak Farrokhzad 提交于
-
由 Mazdak Farrokhzad 提交于
-
由 Mazdak Farrokhzad 提交于
-
由 Mazdak Farrokhzad 提交于
-
由 Mazdak Farrokhzad 提交于
-
由 Mazdak Farrokhzad 提交于
-
- 11 8月, 2019 4 次提交
-
-
由 Mark Rousskov 提交于
ty::Instance is small and Copy, we should not be adding additional indirection.
-
由 bjorn3 提交于
-
由 Mark Rousskov 提交于
Utilize `?` instead of and_then/map operators
-
由 Mark Rousskov 提交于
-