- 26 5月, 2020 5 次提交
-
-
由 Joe Richey 提交于
Signed-off-by: NJoe Richey <joerichey@google.com>
-
由 Joe Richey 提交于
Signed-off-by: NJoe Richey <joerichey@google.com>
-
由 Joe Richey 提交于
Signed-off-by: NJoe Richey <joerichey@google.com>
-
由 Joe Richey 提交于
Signed-off-by: NJoe Richey <joerichey@google.com>
-
由 Joe Richey 提交于
Miri's pointer_offset_inbounds implementation has been moved into librustc_mir as ptr_offset_inbounds (to avoid breaking miri on a nightly update). The comments have been slightly reworked to better match `offset`'s external documentation about what causes UB. The intrinsic implementations are taken directly from miri. Signed-off-by: NJoe Richey <joerichey@google.com>
-
- 25 5月, 2020 16 次提交
-
-
由 bors 提交于
Rollup of 5 pull requests Successful merges: - #71940 (Add `len` and `slice_from_raw_parts` to `NonNull<[T]>`) - #72525 (Miri casts: do not blindly rely on dest type) - #72537 (Fix InlineAsmOperand expresions being visited twice during liveness checking) - #72544 (librustc_middle: Rename upvars query to upvars_mentioned) - #72551 (First draft documenting Debug stability.) Failed merges: r? @ghost
-
由 Ralf Jung 提交于
First draft documenting Debug stability. Debug implementations of std types aren't stable, and neither are derived Debug implementations for any types, including user-defined types. This commit adds a section to the Debug documentation noting this stability status. This issue is tracked by #62794.
-
由 Ralf Jung 提交于
librustc_middle: Rename upvars query to upvars_mentioned As part of supporting RFC 2229, we will be capturing all the Places that were mentioned in the closure. This commit modifies the name of the upvars query to upvars_mentioned. r? @nikomatsakis @blitzerr @matthewjasper
-
由 Ralf Jung 提交于
Fix InlineAsmOperand expresions being visited twice during liveness checking
-
由 Ralf Jung 提交于
Add `len` and `slice_from_raw_parts` to `NonNull<[T]>` This follows the precedent of the recently-added `<*const [T]>::len` (adding to its tracking issue https://github.com/rust-lang/rust/issues/71146) and `ptr::slice_from_raw_parts`.
-
由 bors 提交于
Clear MIR local type annotations after borrowck
-
由 bors 提交于
Implement `Sync` for `process::Command on unix and vxworks Closes #72387. r? @cuviper
-
由 Andrew Lilley Brinker 提交于
Debug implementations of std types aren't stable, and neither are derived Debug implementations for any types, including user-defined types. This commit adds a section to the Debug documentatio noting this stability status.
-
由 bors 提交于
Store tokens inside `ast::Expr` This is a smaller version of #70091. We now store captured tokens inside `ast::Expr`, which allows us to avoid some reparsing in `nt_to_tokenstream`. To try to mitigate the performance impact, we only collect tokens when we've seen an outer attribute. This makes progress towards solving #43081. There are still many things left to do: * Collect tokens for other AST items. * Come up with a way to handle inner attributes (we need to be collecting tokens by the time we encounter them) * Avoid re-parsing when a `#[cfg]` attr is used. However, this is enough to fix spans for a simple example, which I've included as a test case.
-
由 Aaron Hill 提交于
-
由 bors 提交于
Rollup of 5 pull requests Successful merges: - #72402 (Remove all uses of `NodeId` in `ResolverOutputs`) - #72527 (bootstrap: propagate test-args to miri and clippy test suites) - #72530 (Clean up E0602 explanation) - #72532 (Use `dyn` trait syntax in more comments and docs) - #72535 (Use sort_unstable_by in its own docs) Failed merges: r? @ghost
-
由 Aman Arora 提交于
As part of supporting RFC 2229, we will be capturing all the Places that were mentioned in the closure. This commit modifies the name of the upvars query to upvars_mentioned. Co-authored-by: NAman Arora <me@aman-arora.com> Co-authored-by: NChris Pardy <chrispardy36@gmail.com>
-
由 Ralf Jung 提交于
-
由 Ralf Jung 提交于
- 24 5月, 2020 19 次提交
-
-
由 Ralf Jung 提交于
Use sort_unstable_by in its own docs Currently it uses `sort_by` instead of itself.
-
由 Ralf Jung 提交于
Clean up E0602 explanation r? @Dylan-DPC
-
由 Ralf Jung 提交于
bootstrap: propagate test-args to miri and clippy test suites For Miri I verified this works. For clippy, unfortunately it doesn't seem to work as a stage 0 tool: ``` ./x.py --stage 0 test src/tools/clippy --test-args init ``` gives ``` Compiling clippy-mini-macro-test v0.2.0 (/home/r/src/rust/rustc.3/src/tools/clippy/mini-macro) error[E0658]: procedural macros cannot be expanded to expressions --> src/tools/clippy/mini-macro/src/lib.rs:11:5 | 11 | / quote!( 12 | | #[allow(unused)] 13 | | fn needless_take_by_value(s: String) { 14 | | println!("{}", s.len()); ... | 24 | | } 25 | | ) | |_____^ | = note: see issue #54727 <https://github.com/rust-lang/rust/issues/54727> for more information = help: add `#![feature(proc_macro_hygiene)]` to the crate attributes to enable Compiling proc-macro2 v1.0.3 Compiling syn v1.0.11 error: aborting due to previous error For more information about this error, try `rustc --explain E0658`. error: could not compile `clippy-mini-macro-test`. ``` But propagating `--test-args` to the test suite seems to make sense regardless. Cc @rust-lang/clippy
-
由 Ralf Jung 提交于
Remove all uses of `NodeId` in `ResolverOutputs` cc #50928 r? @ecstatic-morse
-
由 bors 提交于
bump Miri Fixes https://github.com/rust-lang/rust/issues/72358 r? @ghost Cc @rust-lang/miri
-
由 Amanieu d'Antras 提交于
-
由 Ralf Jung 提交于
-
由 Ralf Jung 提交于
-
由 Kagami Sascha Rosylight 提交于
-
由 ratijas 提交于
Probably missed it out during earlier `dyn` refactoring.
-
由 Guillaume Gomez 提交于
-
由 Ralf Jung 提交于
Fix typo in doc comment. call_one_force -> call_on**c**e_force
-
由 Ralf Jung 提交于
Rewrite `Parser::collect_tokens` The previous implementation did not work when called on an opening delimiter, or when called re-entrantly from the same `TokenCursor` stack depth. I'm not sure how to test this apart from https://github.com/rust-lang/rust/pull/72287
-
由 Ralf Jung 提交于
Remove `macro_defs` map We now store the `DefId` directly in `ExpnKind::Macro`. This will allow us to serialize `ExpnData` in PR #72121 without needing to manage a side table.
-
由 Eitan Mosenkis 提交于
call_one_force -> call_once_force
-
由 Ralf Jung 提交于
-