-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rollup of 7 pull requests #114419
Rollup of 7 pull requests #114419
Commits on Jul 22, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 864368a - Browse repository at this point
Copy the full SHA 864368aView commit details
Commits on Jul 31, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 8e32dad - Browse repository at this point
Copy the full SHA 8e32dadView commit details
Commits on Aug 1, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 049c728 - Browse repository at this point
Copy the full SHA 049c728View commit details -
Configuration menu - View commit details
-
Copy full SHA for 743ae5a - Browse repository at this point
Copy the full SHA 743ae5aView commit details -
Configuration menu - View commit details
-
Copy full SHA for d2b7c80 - Browse repository at this point
Copy the full SHA d2b7c80View commit details -
Configuration menu - View commit details
-
Copy full SHA for 84c5372 - Browse repository at this point
Copy the full SHA 84c5372View commit details -
Configuration menu - View commit details
-
Copy full SHA for ef3413d - Browse repository at this point
Copy the full SHA ef3413dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0b9529c - Browse repository at this point
Copy the full SHA 0b9529cView commit details
Commits on Aug 2, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 89b2fe7 - Browse repository at this point
Copy the full SHA 89b2fe7View commit details -
Configuration menu - View commit details
-
Copy full SHA for f5243d2 - Browse repository at this point
Copy the full SHA f5243d2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7767cbb - Browse repository at this point
Copy the full SHA 7767cbbView commit details
Commits on Aug 3, 2023
-
[rustc_span][perf] Hoist lookup sorted by words out of the loop.
@lqd commented on rust-lang#114351 asking if `sort_by_words(lookup)` is computed repeatedly. I was assuming that rustc should have no difficulties to hoist it automatically outside of the loop to avoid repeated pure computation, but according to https://godbolt.org/z/frs8Kj1rq it seems like I was wrong: original version seems to have 2 calls per loop iteration ``` .LBB16_3: mov rbx, qword ptr [r13] mov r14, qword ptr [r13 + 8] lea rdi, [rsp + 40] mov rsi, rbx mov rdx, r14 call example::sort_by_words lea rdi, [rsp + 64] mov rsi, qword ptr [rsp + 8] mov rdx, qword ptr [rsp + 16] call example::sort_by_words mov rdi, qword ptr [rsp + 40] mov rdx, qword ptr [rsp + 56] mov rsi, qword ptr [rsp + 64] cmp rdx, qword ptr [rsp + 80] mov qword ptr [rsp + 32], rdi mov qword ptr [rsp + 24], rsi jne .LBB16_5 call qword ptr [rip + bcmp@GOTPCREL] test eax, eax sete al mov dword ptr [rsp + 4], eax mov rsi, qword ptr [rsp + 72] test rsi, rsi jne .LBB16_8 jmp .LBB16_9 ``` but the manually hoisted version just 1: ``` .LBB16_3: mov r13, qword ptr [r15] mov r14, qword ptr [r15 + 8] lea rdi, [rsp + 64] mov rsi, r13 mov rdx, r14 call example::sort_by_words mov rdi, qword ptr [rsp + 64] mov rdx, qword ptr [rsp + 16] cmp qword ptr [rsp + 80], rdx mov qword ptr [rsp + 32], rdi jne .LBB16_5 mov rsi, qword ptr [rsp + 8] call qword ptr [rip + bcmp@GOTPCREL] test eax, eax sete bpl mov rsi, qword ptr [rsp + 72] test rsi, rsi jne .LBB16_8 jmp .LBB16_9 ``` This code is probably not very hot, but there is no reason to leave such a low hanging fruit.
Configuration menu - View commit details
-
Copy full SHA for 6ae2677 - Browse repository at this point
Copy the full SHA 6ae2677View commit details -
Configuration menu - View commit details
-
Copy full SHA for 41e85c3 - Browse repository at this point
Copy the full SHA 41e85c3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2195fa6 - Browse repository at this point
Copy the full SHA 2195fa6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4b3dadb - Browse repository at this point
Copy the full SHA 4b3dadbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8c8af6c - Browse repository at this point
Copy the full SHA 8c8af6cView commit details -
Configuration menu - View commit details
-
Copy full SHA for ee51953 - Browse repository at this point
Copy the full SHA ee51953View commit details -
Configuration menu - View commit details
-
Copy full SHA for dce7e87 - Browse repository at this point
Copy the full SHA dce7e87View commit details -
Rollup merge of rust-lang#113657 - Urgau:expand-incorrect_fn_null_che…
…ck-lint, r=cjgillot Expand, rename and improve `incorrect_fn_null_checks` lint This PR, - firstly, expand the lint by now linting on references - secondly, it renames the lint `incorrect_fn_null_checks` -> `useless_ptr_null_checks` - and thirdly it improves the lint by catching `ptr::from_mut`, `ptr::from_ref`, as well as `<*mut _>::cast` and `<*const _>::cast_mut` Fixes rust-lang#113601 cc `@est31`
Configuration menu - View commit details
-
Copy full SHA for de5cff7 - Browse repository at this point
Copy the full SHA de5cff7View commit details -
Rollup merge of rust-lang#113945 - chenyukang:yukang-fix-113447-slice…
…-2, r=cjgillot Fix wrong span for trait selection failure error reporting Fixes rust-lang#113447
Configuration menu - View commit details
-
Copy full SHA for 4c56f93 - Browse repository at this point
Copy the full SHA 4c56f93View commit details -
Rollup merge of rust-lang#114237 - bvanjoi:fix-114219, r=cjgillot
parser: more friendly hints for handling `async move` in the 2015 edition Fixes rust-lang#114219 An error is emitted when encountering an async move block in the 2015 edition. Another appropriate location to raise an error is after executing [let path = this.parse_path(PathStyle::Expr)?](https://github.com/rust-lang/rust/blob/master/compiler/rustc_parse/src/parser/stmt.rs#L152), but it seems somewhat premature to invoke `create_err` at that stage.
Configuration menu - View commit details
-
Copy full SHA for 4d45c78 - Browse repository at this point
Copy the full SHA 4d45c78View commit details -
Rollup merge of rust-lang#114300 - MU001999:fix/turbofish-pat, r=este…
…bank Suggests turbofish in patterns Fixes rust-lang#114112 r? `@estebank`
Configuration menu - View commit details
-
Copy full SHA for 09a086e - Browse repository at this point
Copy the full SHA 09a086eView commit details -
Rollup merge of rust-lang#114372 - RalfJung:const-pointer-as-int, r=o…
…li-obk const validation: point at where we found a pointer but expected an integer Instead of validation just printing "unable to turn pointer into bytes", make this a regular validation error that says where in the value the bad pointer was found. Also distinguish "expected integer, got pointer" from "expected pointer, got partial pointer or mix of pointers". To avoid duplicating things too much I refactored the diagnostics for validity a bit, so that "got uninit, expected X" and "got pointer, expected X" can share the "X" part. Also all the errors emitted for validation are now grouped under `const_eval_validation` so that they are in a single group in the ftl file. r? `@oli-obk`
Configuration menu - View commit details
-
Copy full SHA for f489fd1 - Browse repository at this point
Copy the full SHA f489fd1View commit details -
Rollup merge of rust-lang#114395 - ttsugriy:hoist-lookup, r=lqd
[rustc_span][perf] Hoist lookup sorted by words out of the loop. `@lqd` commented on rust-lang#114351 asking if `sort_by_words(lookup)` is computed repeatedly. I was assuming that rustc should have no difficulties to hoist it automatically outside of the loop to avoid repeated pure computation, but according to https://godbolt.org/z/frs8Kj1rq it seems like I was wrong: original version seems to have 2 calls per loop iteration ``` .LBB16_3: mov rbx, qword ptr [r13] mov r14, qword ptr [r13 + 8] lea rdi, [rsp + 40] mov rsi, rbx mov rdx, r14 call example::sort_by_words lea rdi, [rsp + 64] mov rsi, qword ptr [rsp + 8] mov rdx, qword ptr [rsp + 16] call example::sort_by_words mov rdi, qword ptr [rsp + 40] mov rdx, qword ptr [rsp + 56] mov rsi, qword ptr [rsp + 64] cmp rdx, qword ptr [rsp + 80] mov qword ptr [rsp + 32], rdi mov qword ptr [rsp + 24], rsi jne .LBB16_5 call qword ptr [rip + bcmp@GOTPCREL] test eax, eax sete al mov dword ptr [rsp + 4], eax mov rsi, qword ptr [rsp + 72] test rsi, rsi jne .LBB16_8 jmp .LBB16_9 ``` but the manually hoisted version just 1: ``` .LBB16_3: mov r13, qword ptr [r15] mov r14, qword ptr [r15 + 8] lea rdi, [rsp + 64] mov rsi, r13 mov rdx, r14 call example::sort_by_words mov rdi, qword ptr [rsp + 64] mov rdx, qword ptr [rsp + 16] cmp qword ptr [rsp + 80], rdx mov qword ptr [rsp + 32], rdi jne .LBB16_5 mov rsi, qword ptr [rsp + 8] call qword ptr [rip + bcmp@GOTPCREL] test eax, eax sete bpl mov rsi, qword ptr [rsp + 72] test rsi, rsi jne .LBB16_8 jmp .LBB16_9 ``` This code is probably not very hot, but there is no reason to leave such a low hanging fruit.
Configuration menu - View commit details
-
Copy full SHA for 59fbcf3 - Browse repository at this point
Copy the full SHA 59fbcf3View commit details -
Rollup merge of rust-lang#114403 - bvanjoi:fix-114392, r=estebank
fix the span in the suggestion of remove question mark Fixes rust-lang#114392 Use a more precise span.
Configuration menu - View commit details
-
Copy full SHA for 65272ea - Browse repository at this point
Copy the full SHA 65272eaView commit details