- 31 12月, 2020 1 次提交
-
-
由 max-heller 提交于
-
- 30 12月, 2020 25 次提交
-
-
由 bors 提交于
Make copy[_nonoverlapping] const Constifies * `intrinsics::copy` and `intrinsics::copy_nonoverlapping` * `ptr::read` and `ptr::read_unaligned` * `*const T::read` and `*const T::read_unaligned` * `*mut T::read` and `*mut T::read_unaligned` * `MaybeUninit::assume_init_read`
-
由 bors 提交于
Rollup of 13 pull requests Successful merges: - #79812 (Lint on redundant trailing semicolon after item) - #80348 (remove redundant clones (clippy::redundant_clone)) - #80358 (Edit rustc_span documentation) - #80457 (Add missing commas to `rustc_ast_pretty::pp` docs) - #80461 (Add llvm-libunwind change to bootstrap CHANGELOG) - #80464 (Use Option::map_or instead of open coding it) - #80465 (Fix typo in ffi-pure.md) - #80467 (More uses of the matches! macro) - #80469 (Fix small typo in time comment) - #80472 (Use sans-serif font for the "all items" page links) - #80477 (Make forget intrinsic safe) - #80482 (don't clone copy types) - #80487 (don't redundantly repeat field names) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
-
由 Yuki Okushi 提交于
don't redundantly repeat field names r? `@Dylan-DPC`
-
由 Yuki Okushi 提交于
don't clone copy types r? `@Dylan-DPC`
-
由 Yuki Okushi 提交于
Make forget intrinsic safe
-
由 Yuki Okushi 提交于
Use sans-serif font for the "all items" page links The "all items" pages' links aren't using a sans-serif font unlike the rest of equivalent items in the other module pages. ``@Nemo157`` reported me this issue so here is the fix! r? ``@Nemo157``
-
由 Yuki Okushi 提交于
Fix small typo in time comment I was reading through [this PR](https://github.com/rust-lang/rust/pull/77727/files) and noticed a [small typo](https://github.com/rust-lang/rust/pull/77727/files#diff-3183738c82f747fd92bb573712073aa384b16e14d154bf2df18f41077edc31cbR240) smuggled though. This just fixes that.
-
由 Yuki Okushi 提交于
More uses of the matches! macro `@rustbot` modify labels +C-cleanup +T-compiler
-
由 Yuki Okushi 提交于
Fix typo in ffi-pure.md accesing -> accessing
-
由 Yuki Okushi 提交于
Use Option::map_or instead of open coding it ``@rustbot`` modify labels +C-cleanup +T-compiler
-
由 Yuki Okushi 提交于
Add llvm-libunwind change to bootstrap CHANGELOG From #77703. This doesn't need a `changelog-seen` version bump because the old values aren't accepted anymore, meaning anyone who was using this had to change it already. r? ``@Mark-Simulacrum``
-
由 Yuki Okushi 提交于
Add missing commas to `rustc_ast_pretty::pp` docs
-
由 Yuki Okushi 提交于
Edit rustc_span documentation Various changes to the `rustc_span` docs, including the following: - Additions to top-level docs - Edits to the source_map module docs - Edits to documentation for `Span` and `SpanData` - Added intra-docs links - Documentation for Levenshtein distances - Fixed missing punctuation
-
由 Yuki Okushi 提交于
remove redundant clones (clippy::redundant_clone)
-
由 Yuki Okushi 提交于
Lint on redundant trailing semicolon after item We now lint on code like this: ```rust fn main() { fn foo() {}; struct Bar {}; } ``` Previously, this caused warnings in Cargo, so it was disabled.
-
由 bors 提交于
Replace pretty-print/compare/retokenize hack with targeted workarounds Based on https://github.com/rust-lang/rust/pull/78296 cc https://github.com/rust-lang/rust/issues/43081 The 'pretty-print/compare/retokenize' hack is used to try to avoid passing an outdated `TokenStream` to a proc-macro when the underlying AST is modified in some way (e.g. cfg-stripping before derives). Unfortunately, retokenizing throws away spans (including hygiene information), which causes issues of its own. Every improvement to the accuracy of the pretty-print/retokenize comparison has resulted in non-trivial ecosystem breakage due to hygiene changes. In extreme cases, users deliberately wrote unhygienic `macro_rules!` macros (likely because they did not realize that the compiler's behavior was a bug). Additionaly, the comparison between the original and pretty-printed/retoknized token streams comes at a non-trivial runtime cost, as shown by https://github.com/rust-lang/rust/pull/79338 This PR removes the pretty-print/compare/retokenize logic from `nt_to_tokenstream`. We only discard the original `TokenStream` under two circumstances: * Inner attributes are used (detected by examining the AST) * `cfg`/`cfg_attr` processing modifies the AST. This is detected by making the visitor update a flag when it performs a modification, instead of trying to detect the modification after-the-fact. Note that a 'matching' `cfg` (e.g. `#[cfg(not(FALSE)]`) does not actually get removed from the AST, allowing us to preserve the original `TokenStream`. In all other cases, we preserve the original `TokenStream`. This could use a bit of refactoring/renaming - opening for a Crater run. r? `@ghost`
-
由 bors 提交于
Remove `compile-fail` test suite By moving all of its tests to `ui` test suite. Now we have directives like `// dont-check-compiler-stderr` that allow to disable `.stderr` comparison for platform-dependent tests without introducing a whole new test suite.
-
由 Aaron Hill 提交于
-
由 Aaron Hill 提交于
-
由 Aaron Hill 提交于
-
由 Aaron Hill 提交于
We now lint on code like this: ```rust fn main() { fn foo() {}; struct Bar {}; } ``` Previously, this caused warnings in Cargo, so it was disabled.
-
由 Matthias Krüger 提交于
-
由 Vadim Petrochenkov 提交于
-
由 Matthias Krüger 提交于
-
由 LingMan 提交于
-
- 29 12月, 2020 14 次提交
-
-
由 Guillaume Gomez 提交于
-
由 Aaron Hill 提交于
-
由 bors 提交于
[rustdoc] Box ItemKind to reduce the size of `Item` This brings the size of `Item` from ``` [src/librustdoc/lib.rs:103] std::mem::size_of::<Item>() = 536 ``` to ``` [src/librustdoc/lib.rs:103] std::mem::size_of::<Item>() = 136 ``` This is an alternative to https://github.com/rust-lang/rust/pull/79967; I don't think it makes sense to make both changes. Helps with #79103.
-
由 BlackHoleFox 提交于
-
由 bors 提交于
Small perf changes for InstCombine
-
由 Joshua Nelson 提交于
-
由 Ikko Ashimine 提交于
accesing -> accessing
-
由 LingMan 提交于
-
由 bors 提交于
Rollup of 11 pull requests Successful merges: - #80383 (clarify wrapping ptr arithmetic docs) - #80390 (BTreeMap: rename the area access methods) - #80393 (Add links to the source for the rustc and rustdoc books.) - #80398 (Use raw version of align_of in rc data_offset) - #80402 (Document `InferTy` & co.) - #80403 (fix: small typo error in chalk/mod.rs) - #80410 (rustdoc book: fix example) - #80419 (Add regression test for #80375) - #80430 (Add "length" as doc alias to len methods) - #80431 (Add "chr" as doc alias to char::from_u32) - #80448 (Fix stabilization version of deque_range feature.) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
-
由 Tomasz Miąsko 提交于
-
由 Tyler Mandry 提交于
From #77703.
-
由 Camelid 提交于
-
由 Simon Vandel Sillesen 提交于
-
由 Mara Bos 提交于
Fix stabilization version of deque_range feature. See https://github.com/rust-lang/rust/pull/79022#issuecomment-751315315
-