-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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 6 pull requests #91233
Rollup of 6 pull requests #91233
Commits on Nov 24, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 870b831 - Browse repository at this point
Copy the full SHA 870b831View commit details
Commits on Nov 25, 2021
-
Update browser-ui-test version to enforce that text is displayed befo…
…re checking colors
Configuration menu - View commit details
-
Copy full SHA for f6c728f - Browse repository at this point
Copy the full SHA f6c728fView commit details -
Configuration menu - View commit details
-
Copy full SHA for e340478 - Browse repository at this point
Copy the full SHA e340478View commit details -
Visit
param_env
field in Obligation'sTypeFoldable
implThis oversight appears to have gone unnoticed for a long time without causing issues, but it should still be fixed.
Configuration menu - View commit details
-
Copy full SHA for d7e8212 - Browse repository at this point
Copy the full SHA d7e8212View commit details -
Configuration menu - View commit details
-
Copy full SHA for c981d40 - Browse repository at this point
Copy the full SHA c981d40View commit details -
Configuration menu - View commit details
-
Copy full SHA for 718a3b1 - Browse repository at this point
Copy the full SHA 718a3b1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 69d1917 - Browse repository at this point
Copy the full SHA 69d1917View commit details -
On type mismatch caused by assignment, point at assignee
* Do not emit unnecessary E0308 after E0070 * Show fewer errors on `while let` missing `let` * Hide redundant E0308 on `while let` missing `let` * Point at binding definition when possible on invalid assignment * do not point at closure twice * do not suggest `if let` for literals in lhs * account for parameter types
Configuration menu - View commit details
-
Copy full SHA for 37a11a9 - Browse repository at this point
Copy the full SHA 37a11a9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9cce7bb - Browse repository at this point
Copy the full SHA 9cce7bbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2e1792a - Browse repository at this point
Copy the full SHA 2e1792aView commit details -
Rollup merge of rust-lang#85102 - estebank:point-at-assignment, r=oli…
…-obk Diagnostic tweaks * On type mismatch caused by assignment, point at the source of the expectation * Hide redundant errors * Suggest `while let` when `let` is missing in some cases
Configuration menu - View commit details
-
Copy full SHA for fe80679 - Browse repository at this point
Copy the full SHA fe80679View commit details -
Rollup merge of rust-lang#91169 - RDambrosio016:master, r=bjorn3
Change cg_ssa's get_param to borrow the builder mutably This is a small change to make `get_param` more flexible for codegens that may need to modify things when retrieving function parameters. This will currently only be used by [rustc_codegen_nvvm](https://github.com/Rust-GPU/Rust-CUDA) (my own project), but may be useful to more codegens in the future. This is needed because cg_nvvm needs to remap certain types to libnvvm-friendly types, such as `i128` -> `<2 x i64>`. Because cg_ssa does not give mutable access to the builder, i resorted to using a mutex: ```rs fn get_param(&self, index: usize) -> Self::Value { let val = llvm::get_param(self.llfn(), index as c_uint); trace!("Get param `{:?}`", val); unsafe { let llfnty = LLVMRustGetFunctionType(self.llfn()); let map = self.remapped_integer_args.borrow(); if let Some((_, key)) = map.get(llfnty) { if let Some((_, new_ty)) = key.iter().find(|t| t.0 == index) { trace!("Casting irregular param {:?} to {:?}", val, new_ty); return transmute_llval( *self.llbuilder.lock().unwrap(), &self.cx, val, *new_ty, ); } } val } } ``` However, i predict this is pretty bad for performance, considering how much builders are called during codegen, so i would greatly appreciate having a more flexible API for this.
Configuration menu - View commit details
-
Copy full SHA for d9992d3 - Browse repository at this point
Copy the full SHA d9992d3View commit details -
Rollup merge of rust-lang#91181 - GuillaumeGomez:improve-rustdoc-gui-…
…ci, r=jsha Improve rustdoc-gui CI As commented [here](rust-lang#91179 (comment)): When the text isn't displayed, the color returned by puppeteer is always `rgba(0,0,0,0)`, which is definitely not the right value. To prevent this error from happening again, `browser-ui-test` will now fail if a CSS color check is run when the text isn't displayed. Either this PR or rust-lang#91179 is merged first, they'll conflict because I made changes to the same test file. cc ``@jyn514`` r? ``@jsha``
Configuration menu - View commit details
-
Copy full SHA for e7b80e8 - Browse repository at this point
Copy the full SHA e7b80e8View commit details -
Rollup merge of rust-lang#91205 - Aaron1011:visit_param_env, r=lcnr
Visit `param_env` field in Obligation's `TypeFoldable` impl This oversight appears to have gone unnoticed for a long time without causing issues, but it should still be fixed.
Configuration menu - View commit details
-
Copy full SHA for bb5bcc9 - Browse repository at this point
Copy the full SHA bb5bcc9View commit details -
Rollup merge of rust-lang#91212 - compiler-errors:issue91206, r=oli-obk
Fix ICE due to out-of-bounds statement index when reporting borrowck error Replace an `[index]` with a `.get` when `statement_index` points to a basic-block terminator (and is therefore out-of-bounds in the statements list). Fixes rust-lang#91206 Cc ``@camsteffen`` r? ``@oli-obk``
Configuration menu - View commit details
-
Copy full SHA for 7fa0291 - Browse repository at this point
Copy the full SHA 7fa0291View commit details -
Rollup merge of rust-lang#91225 - GuillaumeGomez:source-page-scrollba…
…r, r=jsha Fix invalid scrollbar display on source code page Fixes bug introduced in rust-lang#90983: ![Screenshot from 2021-11-25 17-01-08](https://user-images.githubusercontent.com/3050060/143473753-c2e7c43c-ce3f-474d-9d2a-922e63189c51.png) ![Screenshot from 2021-11-25 17-07-08](https://user-images.githubusercontent.com/3050060/143473757-eecaaf2b-f4f0-49e0-a159-ab485e3f7122.png) To fix it, I simply unset the `overflow-y` on the source code page so it's not displayed anymore. r? ``@jsha``
Configuration menu - View commit details
-
Copy full SHA for c57f766 - Browse repository at this point
Copy the full SHA c57f766View commit details