-
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 12 pull requests #117404
Rollup of 12 pull requests #117404
Commits on Oct 28, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 351d532 - Browse repository at this point
Copy the full SHA 351d532View commit details -
Configuration menu - View commit details
-
Copy full SHA for 04fa124 - Browse repository at this point
Copy the full SHA 04fa124View commit details
Commits on Oct 29, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 552abdc - Browse repository at this point
Copy the full SHA 552abdcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 82b447a - Browse repository at this point
Copy the full SHA 82b447aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5e6c313 - Browse repository at this point
Copy the full SHA 5e6c313View commit details -
Remove
memoffset
dependency fromrustc_query_impl
.The comment explains it's for `unstable_offset_of`, but `offset_of` is now stable.
Configuration menu - View commit details
-
Copy full SHA for 28e60de - Browse repository at this point
Copy the full SHA 28e60deView commit details -
- Sort dependencies and features sections. - Add `tidy` markers to the sorted sections so they stay sorted. - Remove empty `[lib`] sections. - Remove "See more keys..." comments. Excluded files: - rustc_codegen_{cranelift,gcc}, because they're external. - rustc_lexer, because it has external use. - stable_mir, because it has external use.
Configuration menu - View commit details
-
Copy full SHA for 8ff624a - Browse repository at this point
Copy the full SHA 8ff624aView commit details -
On object safety error, mention new enum as alternative
When we encounter a `dyn Trait` that isn't object safe, look for its implementors. If there's one, mention using it directly If there are less than 9, mention the possibility of creating a new enum and using that instead. Account for object unsafe `impl Trait on dyn Trait {}`. Make a distinction between public and sealed traits. Fix rust-lang#80194.
Configuration menu - View commit details
-
Copy full SHA for 8c04999 - Browse repository at this point
Copy the full SHA 8c04999View commit details
Commits on Oct 30, 2023
-
Delay parsing of
--cfg
and--check-cfg
options.By storing the unparsed values in `Config` and then parsing them within `run_compiler`, the parsing functions can use the main symbol interner, and not create their own short-lived interners. This change also eliminates the need for one `EarlyErrorHandler` in rustdoc, because parsing errors can be reported by another, slightly later `EarlyErrorHandler`.
Configuration menu - View commit details
-
Copy full SHA for 678e01a - Browse repository at this point
Copy the full SHA 678e01aView commit details -
Configuration menu - View commit details
-
Copy full SHA for bfcff79 - Browse repository at this point
Copy the full SHA bfcff79View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8e4ac98 - Browse repository at this point
Copy the full SHA 8e4ac98View commit details -
Make
Cfg
andCheckCfg
non-generic.They now only ever contains symbols.
Configuration menu - View commit details
-
Copy full SHA for 5c6a12c - Browse repository at this point
Copy the full SHA 5c6a12cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 371f972 - Browse repository at this point
Copy the full SHA 371f972View commit details -
It was added in 51938c6, a commit with a 7,720 line diff and a one line commit message. Even then the comment was incorrect; there was a removed a `build_output_filenames` call with a `&[]` argument in rustdoc, but the commit removed that call. In such a large commit, it's easy for small errors to occur.
Configuration menu - View commit details
-
Copy full SHA for 85e56e8 - Browse repository at this point
Copy the full SHA 85e56e8View commit details -
Configuration menu - View commit details
-
Copy full SHA for a60d643 - Browse repository at this point
Copy the full SHA a60d643View commit details -
Using `find` and `any` from `std` makes the code shorter and clearer.
Configuration menu - View commit details
-
Copy full SHA for 95b0088 - Browse repository at this point
Copy the full SHA 95b0088View commit details -
Fix: Write access check of `prefix` and `sysconfdir` when DESTDIR is present. Improvement: Instead of repeatedly reading `DESTDIR` within each `fn prepare_dir` usage, read it once and pass it to the `fn prepare_dir`. Signed-off-by: onur-ozkan <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4b14048 - Browse repository at this point
Copy the full SHA 4b14048View commit details -
Streamline
collect_crate_types
.- The early return can be right at the top. - The control flow is simplified with `if let`. - The `collect` isn't necessary. - The "Unconditionally" comment is erroneously duplicated from `check_attr_crate_type`, and can be removed.
Configuration menu - View commit details
-
Copy full SHA for be8fd8b - Browse repository at this point
Copy the full SHA be8fd8bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 90862f6 - Browse repository at this point
Copy the full SHA 90862f6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0c381ec - Browse repository at this point
Copy the full SHA 0c381ecView commit details -
Configuration menu - View commit details
-
Copy full SHA for 745c600 - Browse repository at this point
Copy the full SHA 745c600View commit details -
Configuration menu - View commit details
-
Copy full SHA for bc926f7 - Browse repository at this point
Copy the full SHA bc926f7View commit details -
Fix missing leading space in suggestion
For a local pattern with no space between `let` and `(` e.g.: let(_a) = 3; we were previously suggesting this illegal code: let_a =3; After this change the suggestion will instead be: let _a =3; (Note the space after `let`)
Configuration menu - View commit details
-
Copy full SHA for a2486db - Browse repository at this point
Copy the full SHA a2486dbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 82f34fd - Browse repository at this point
Copy the full SHA 82f34fdView commit details -
Fix bad-c-variadic error being emitted multiple times
If a function incorrectly contains multiple `...` args, and is also not foreign or `unsafe extern "C"`, only emit the latter error once.
Configuration menu - View commit details
-
Copy full SHA for 8508e65 - Browse repository at this point
Copy the full SHA 8508e65View commit details -
Explicitly reject const C-variadic functions
Trying to use C-variadics in a const function would previously fail with an error like "destructor of `VaListImpl<'_>` cannot be evaluated at compile-time". Add an explicit check for const C-variadics to provide a clearer error: "functions cannot be both `const` and C-variadic".
Configuration menu - View commit details
-
Copy full SHA for f91b5ce - Browse repository at this point
Copy the full SHA f91b5ceView commit details -
Configuration menu - View commit details
-
Copy full SHA for 58a80c8 - Browse repository at this point
Copy the full SHA 58a80c8View commit details -
Configuration menu - View commit details
-
Copy full SHA for ac9c5bd - Browse repository at this point
Copy the full SHA ac9c5bdView commit details -
Rollup merge of rust-lang#112463 - fmease:rustdoc-elide-x-crate-def-g…
…en-args, r=GuillaumeGomez rustdoc: elide cross-crate default generic arguments Elide cross-crate generic arguments if they coincide with their default. TL;DR: Most notably, no more `Box<…, Global>` in `std`'s docs, just `Box<…>` from now on. Fixes rust-lang#80379. Also helps with rust-lang#44306. Follow-up to rust-lang#103885, rust-lang#107637. r? `@ghost`
Configuration menu - View commit details
-
Copy full SHA for adce189 - Browse repository at this point
Copy the full SHA adce189View commit details -
Rollup merge of rust-lang#117068 - nnethercote:clean-up-Cargo-toml, r…
…=wesleywiser Clean up `compiler/rustc*/Cargo.toml` Mostly by sorting dependencies, plus some other minor things. r? `@wesleywiser`
Configuration menu - View commit details
-
Copy full SHA for e37cabe - Browse repository at this point
Copy the full SHA e37cabeView commit details -
Rollup merge of rust-lang#117132 - estebank:issue-80194, r=petrochenkov
On object safety error, mention new enum as alternative When we encounter a `dyn Trait` that isn't object safe, look for its implementors. If there's one, mention using it directly If there are less than 9, mention the possibility of creating a new enum and using that instead. Fix rust-lang#80194.
Configuration menu - View commit details
-
Copy full SHA for c7e6301 - Browse repository at this point
Copy the full SHA c7e6301View commit details -
Rollup merge of rust-lang#117317 - RalfJung:track-caller, r=oli-obk
share some track_caller logic between interpret and codegen Also move the code that implements the track_caller intrinsics out of the core interpreter engine -- it's just a helper creating a const-allocation, doesn't need to be part of the interpreter core.
Configuration menu - View commit details
-
Copy full SHA for ead3561 - Browse repository at this point
Copy the full SHA ead3561View commit details -
Rollup merge of rust-lang#117356 - he32:netbsd-mipsel, r=oli-obk
Add support for mipsel-unknown-netbsd, 32-bit LE mips.
Configuration menu - View commit details
-
Copy full SHA for 7d129fd - Browse repository at this point
Copy the full SHA 7d129fdView commit details -
Rollup merge of rust-lang#117357 - tmiasko:terminate, r=wesleywiser
Rename a few remaining references to abort terminator Follow up to e3f2edc
Configuration menu - View commit details
-
Copy full SHA for adc6f2e - Browse repository at this point
Copy the full SHA adc6f2eView commit details -
Rollup merge of rust-lang#117370 - nicholasbishop:bishop-better-c-var…
…iadic-errors, r=oli-obk C-variadic error improvements A couple improvements for c-variadic errors: 1. Fix the bad-c-variadic error being emitted multiple times. If a function incorrectly contains multiple `...` args, and is also not foreign or `unsafe extern "C"`, only emit the latter error once rather than once per `...`. 2. Explicitly reject `const` C-variadic functions. Trying to use C-variadics in a const function would previously fail with an error like "destructor of `VaListImpl<'_>` cannot be evaluated at compile-time". Add an explicit check for const C-variadics to provide a clearer error: "functions cannot be both `const` and C-variadic". This also addresses one of the concerns in rust-lang#44930: "Ensure that even when this gets stabilized for regular functions, it is still rejected on const fn."
Configuration menu - View commit details
-
Copy full SHA for 52a5271 - Browse repository at this point
Copy the full SHA 52a5271View commit details -
Rollup merge of rust-lang#117376 - nnethercote:rustc_interface-more, …
…r=oli-obk More `rustc_interface` cleanups In particular, following up rust-lang#117268 with more improvement to `--cfg`/`--check-cfg` handling. r? `@oli-obk`
Configuration menu - View commit details
-
Copy full SHA for 4c84a8a - Browse repository at this point
Copy the full SHA 4c84a8aView commit details -
Rollup merge of rust-lang#117383 - onur-ozkan:fix-x-install, r=albert…
…larsan68 improve and fix `x install` Fix: Write access check of `prefix` and `sysconfdir` when DESTDIR is present. Improvement: Instead of repeatedly reading `DESTDIR` within each `fn prepare_dir` usage, read it once and pass it to the `fn prepare_dir`. Fixes rust-lang#117203
Configuration menu - View commit details
-
Copy full SHA for 5d6645d - Browse repository at this point
Copy the full SHA 5d6645dView commit details -
Rollup merge of rust-lang#117389 - oli-obk:gen_fn, r=compiler-errors
Some diagnostics improvements of `gen` blocks These are leftovers from rust-lang#116447
Configuration menu - View commit details
-
Copy full SHA for 284e95f - Browse repository at this point
Copy the full SHA 284e95fView commit details -
Rollup merge of rust-lang#117390 - chenyukang:yukang-fix-117284-unuse…
…d-macro, r=estebank Fix unused variables lint issue for args in macro Fixes rust-lang#117284 r? ```@estebank```
Configuration menu - View commit details
-
Copy full SHA for a4df941 - Browse repository at this point
Copy the full SHA a4df941View commit details -
Rollup merge of rust-lang#117395 - gurry:117380-wrong-parent-sugg, r=…
…Nilstrieb Fix missing leading space in suggestion For a local pattern with no space between `let` and `(` e.g.: ```rust let(_a) = 3; ``` we were previously suggesting this illegal code: ```rust let_a = 3; ``` After this change the suggestion will instead be: ```rust let _a = 3; ``` Fixes rust-lang#117380
Configuration menu - View commit details
-
Copy full SHA for bf6f582 - Browse repository at this point
Copy the full SHA bf6f582View commit details