-
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 9 pull requests #80867
Rollup of 9 pull requests #80867
Commits on Nov 28, 2020
-
Implement From<char> for u64 and u128.
Julian Wollersberger committedNov 28, 2020 Configuration menu - View commit details
-
Copy full SHA for 7438f43 - Browse repository at this point
Copy the full SHA 7438f43View commit details
Commits on Dec 12, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 0bf75fb - Browse repository at this point
Copy the full SHA 0bf75fbView commit details
Commits on Dec 17, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 4a48d68 - Browse repository at this point
Copy the full SHA 4a48d68View commit details
Commits on Jan 7, 2021
-
The size assertion in the comment was inverted compared to the code. After fixing that the implication that `(new_size >= old_size) => new_size != 0` still doesn't hold so explain why `old_size != 0` at this point.
Configuration menu - View commit details
-
Copy full SHA for 769fb8a - Browse repository at this point
Copy the full SHA 769fb8aView commit details
Commits on Jan 8, 2021
-
Use correct span for structured suggestion
On structured suggestion for `let` -> `const` and `const` -> `let`, use a proper `Span` and update tests to check the correct application. Follow up to rust-lang#80012.
Configuration menu - View commit details
-
Copy full SHA for 9a5dcaa - Browse repository at this point
Copy the full SHA 9a5dcaaView commit details -
Remove useless
fill_in
functionIt was only used once, in a function that was otherwise trivial.
Configuration menu - View commit details
-
Copy full SHA for d72f580 - Browse repository at this point
Copy the full SHA d72f580View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3338bdb - Browse repository at this point
Copy the full SHA 3338bdbView commit details
Commits on Jan 9, 2021
-
Update the stabilisation version.
Julian Wollersberger committedJan 9, 2021 Configuration menu - View commit details
-
Copy full SHA for e8cb72c - Browse repository at this point
Copy the full SHA e8cb72cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 34d128a - Browse repository at this point
Copy the full SHA 34d128aView commit details -
Support
download-ci-llvm
on NixOSIn particular, the CI built `libLLVM-*.so` needs to have `libz.so` RPATHed so that binaries like `llvm-config` work at all.
Configuration menu - View commit details
-
Copy full SHA for 15ade4d - Browse repository at this point
Copy the full SHA 15ade4dView commit details -
Allow #[rustc_builtin_macro = "name"].
This makes it possible to have both std::panic and core::panic as a builtin macro, by using different builtin macro names for each. Also removes SyntaxExtension::is_derive_copy, as the macro name (e.g. sym::Copy) is now tracked and provides that information directly.
Configuration menu - View commit details
-
Copy full SHA for d651fa7 - Browse repository at this point
Copy the full SHA d651fa7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0aad91b - Browse repository at this point
Copy the full SHA 0aad91bView commit details -
Don't set builtin_name for builtin macro implementations.
This used to be necessary for `is_builtin` in the past, but is no longer required. Co-authored-by: Vadim Petrochenkov <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b293bba - Browse repository at this point
Copy the full SHA b293bbaView commit details -
Add comment to
Vec::truncate
explaining>
vs>=
Hopefully this will prevent people from continuing to ask about this over and over again :) See [this Zulip discussion][1] for more. [1]: https://rust-lang.zulipchat.com/#narrow/stream/219381-t-libs/topic/Vec.3A.3Atruncate.20implementation
Configuration menu - View commit details
-
Copy full SHA for befd153 - Browse repository at this point
Copy the full SHA befd153View commit details
Commits on Jan 10, 2021
-
Rollup merge of rust-lang#79502 - Julian-Wollersberger:from_char_for_…
…u64, r=withoutboats Implement From<char> for u64 and u128. With this PR you can write ``` let u = u64::from('👤'); let u = u128::from('👤'); ``` Previously, you could already write `as` conversions ([Playground link](https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=cee18febe28e69024357d099f07ca081)): ``` // Lossless conversions dbg!('👤' as u32); // Prints 128100 dbg!('👤' as u64); // Prints 128100 dbg!('👤' as u128); // Prints 128100 // truncates, thus no `From` impls. dbg!('👤' as u8); // Prints 100 dbg!('👤' as u16); // Prints 62564 // These `From` impls already exist. dbg!(u32::from('👤')); // Prints 128100 dbg!(u64::from(u32::from('👤'))); // Prints 128100 ``` The idea is from ``@gendx`` who opened [this Internals thread](https://internals.rust-lang.org/t/implement-from-char-for-u64/13454), and ``@withoutboats`` responded that someone should open a PR for it. Some people mentioned `From<char>` impls for `f32` and `f64`, but that doesn't seem correct to me, so I didn't include them here. I don't know what the feature should be named. Must it be registered somewhere, like unstable features? r? ``@withoutboats``
Configuration menu - View commit details
-
Copy full SHA for 5c0f5b6 - Browse repository at this point
Copy the full SHA 5c0f5b6View commit details -
Rollup merge of rust-lang#79968 - bjorn3:better_drop_glue_debuginfo, …
…r=matthewjasper Improve core::ptr::drop_in_place debuginfo * Use span of the dropped type as function span when possible. * Rename symbol from `core::ptr::drop_in_place::$hash` to `{{drop}}::<$TYPE>::$hash`. Fixes rust-lang#77465 (I haven't yet updated the tests)
Configuration menu - View commit details
-
Copy full SHA for f90c7f0 - Browse repository at this point
Copy the full SHA f90c7f0View commit details -
Rollup merge of rust-lang#80774 - LingMan:patch-1, r=nagisa
Fix safety comment The size assertion in the comment was inverted compared to the code. After fixing that the implication that `(new_size >= old_size) => new_size != 0` still doesn't hold so explain why `old_size != 0` at this point.
Configuration menu - View commit details
-
Copy full SHA for d64356f - Browse repository at this point
Copy the full SHA d64356fView commit details -
Rollup merge of rust-lang#80801 - estebank:correct-binding-sugg-span,…
… r=petrochenkov Use correct span for structured suggestion On structured suggestion for `let` -> `const` and `const` -> `let`, use a proper `Span` and update tests to check the correct application. Follow up to rust-lang#80012.
Configuration menu - View commit details
-
Copy full SHA for 700f3f2 - Browse repository at this point
Copy the full SHA 700f3f2View commit details -
Rollup merge of rust-lang#80803 - jyn514:cleanup-fill-in, r=Guillaume…
…Gomez Remove useless `fill_in` function It was only used once, in a function that was otherwise trivial.
Configuration menu - View commit details
-
Copy full SHA for c2bbd0c - Browse repository at this point
Copy the full SHA c2bbd0cView commit details -
Rollup merge of rust-lang#80820 - nagisa:nagisa/dcl-nixos, r=Mark-Sim…
…ulacrum Support `download-ci-llvm` on NixOS In particular, the CI built `libLLVM-*.so` needs to have `libz.so` RPATHed so that binaries like `llvm-config` work at all.
Configuration menu - View commit details
-
Copy full SHA for 4f43b77 - Browse repository at this point
Copy the full SHA 4f43b77View commit details -
Rollup merge of rust-lang#80825 - GuillaumeGomez:rustdoc-cleanup-bis-…
…repetita, r=jyn514 Remove under-used ImplPolarity enum It doesn't make much sense to have an enum with only two possible values and to store it inside an `Option` in my opinion when you can do all the same with a simple boolean. I don't expect any chances, performance or RSS usage wise. r? ``@jyn514``
Configuration menu - View commit details
-
Copy full SHA for 5acac4c - Browse repository at this point
Copy the full SHA 5acac4cView commit details -
Rollup merge of rust-lang#80850 - m-ou-se:rustc-builtin-macro-name, r…
…=petrochenkov Allow #[rustc_builtin_macro = "name"] This adds the option of specifying the name of a builtin macro in the `#[rustc_builtin_macro]` attribute: `#[rustc_builtin_macro = "name"]`. This makes it possible to have both `std::panic!` and `core::panic!` as a builtin macro, by using different builtin macro names for each. This is needed to implement the edition-specific behaviour of the panic macros of RFC 3007. Also removes `SyntaxExtension::is_derive_copy`, as the macro name (e.g. `sym::Copy`) is now tracked and provides that information directly. r? ``@petrochenkov``
Configuration menu - View commit details
-
Copy full SHA for 3e735c6 - Browse repository at this point
Copy the full SHA 3e735c6View commit details -
Rollup merge of rust-lang#80857 - camelid:vec-truncate-comment, r=sco…
…ttmcm Add comment to `Vec::truncate` explaining `>` vs `>=` Hopefully this will prevent people from continuing to ask about this over and over again :) See [this Zulip discussion][1] for more. [1]: https://rust-lang.zulipchat.com/#narrow/stream/219381-t-libs/topic/Vec.3A.3Atruncate.20implementation r? ``@scottmcm``
Configuration menu - View commit details
-
Copy full SHA for 19b8c65 - Browse repository at this point
Copy the full SHA 19b8c65View commit details