about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2019-08-28Auto merge of #62941 - GuillaumeGomez:save-crate-filter, r=Mark-Simulacrumbors-3/+19
Save crate filtering on rustdoc Fixes #62929. I added a hashmap and a hash encoding for the current crate list in case you have multiple crates handling on a same website (who talked about docs.rs?!). Like that, for each context, you have the filter crate selected. r? @QuietMisdreavus
2019-08-29Fixes #63976. Incorrect error message.Sam Radhakrishan-1/+3
Fix incorrect error message when accessing private field of union
2019-08-28Auto merge of #63875 - philipc:issue-57822, r=michaelwoeristerbors-15/+80
debuginfo: give unique names to closure and generator types Closure types have been moved to the namespace where they are defined, and both closure and generator type names now include the disambiguator. This fixes an exception when lldb prints nested closures. Fixes #57822 I haven't included the `DW_AT_artificial` changes discussed in #57822 because they make the output worse IMO, but I can easily add these if still required. For example, for the new test case the output is now: ``` (lldb) p g (issue_57822::main::closure-1) $1 = closure-1(closure(1)) ``` but adding `DW_AT_artificial` changes this to: ``` (lldb) p g (issue_57822::main::closure-1) $0 = closure-1 { } ``` Note that nested generators didn't cause the exception. I haven't determined why, but I think it makes sense to add the disambiguator for them too. It feels like we still don't really understand why closures were causing an error though. r? @michaelwoerister
2019-08-28add missing `#[repr(C)]` on a unionDodo-0/+1
2019-08-28std: Remove the `wasm_syscall` featureAlex Crichton-374/+19
This commit removes the `wasm_syscall` feature from the wasm32-unknown-unknown build of the standard library. This feature was originally intended to allow an opt-in way to interact with the operating system in a posix-like way but it was never stabilized. Nowadays with the advent of the `wasm32-wasi` target that should entirely replace the intentions of the `wasm_syscall` feature.
2019-08-28Auto merge of #63853 - matthewjasper:test-ast-serialization, r=estebankbors-4/+96
Add default serialization for `Ident`s Also add tests for `-Zast-json` and `-Zast-json-noexpand` closes #63728
2019-08-28Update rustfmt to 1.4.6topecongiro-6/+21
2019-08-28Update Clippyflip1995-7/+16
2019-08-28Notify me (flip1995) when Clippy toolstate changesflip1995-1/+1
2019-08-28Extract `Decoder::entry_unless_proc_macro()`Wesley Wiser-22/+20
2019-08-28Simplify `maybe_get_optimized_mir` and `maybe_get_promoted_mir`Wesley Wiser-29/+23
Since both functions are always unwrapped, don't wrap the return value in an `Option`.
2019-08-28Add some comments to `mir::Static` and `mir::StaticKind`Wesley Wiser-0/+7
2019-08-28Save crate filtering on rustdocGuillaume Gomez-3/+19
2019-08-28rustc_apfloat: make the crate #![no_std] explicitly.Eduard-Mihai Burtescu-27/+31
2019-08-28Auto merge of #63820 - oli-obk:eager_const_eval, r=nikomatsakisbors-81/+13
Simplify eager normalization of constants r? @nikomatsakis
2019-08-28Auto merge of #63127 - kper:pr, r=nikomatsakisbors-388/+391
Cleanup: Consistently use `Param` instead of `Arg` #62426 Fixes #62426
2019-08-28Address naming and comments from reviewsAndreas Molzer-9/+9
2019-08-27Prevent syntax error in ld linker version scriptLogan Wendholt-4/+7
2019-08-28or-pattern: fix typo in error messageTshepang Lekhonkhobe-3/+3
2019-08-27Auto merge of #63960 - ehuss:update-cargo, r=alexcrichtonbors-0/+0
Update cargo Update cargo 10 commits in 3f700ec43ce72305eb5315cfc710681f3469d4b4..22f7dd0495cd72ce2082d318d5a9b4dccb9c5b8c 2019-08-19 22:43:12 +0000 to 2019-08-27 16:10:51 +0000 - Update and improve zsh completion (rust-lang/cargo#7296) - Document that `package` can be used in `[patch]` (rust-lang/cargo#7263) - Fix `error:`/`warning:` coloring inconsistency with rustc (rust-lang/cargo#7294) - Tests: Import rustc_plugin from its new location (rust-lang/cargo#7287) - Update README azure badge. (rust-lang/cargo#7293) - Update home dependencies to v0.5 (rust-lang/cargo#7277) - Fix typo (rust-lang/cargo#7279) - Update libgit2 dependencies (rust-lang/cargo#7275) - Fix old lockfile encoding wrt newlines (rust-lang/cargo#7262) - Fix dSYM uplifting when symlink is broken (rust-lang/cargo#7268)
2019-08-28Remove `sized` spansYuki Okushi-16/+4
2019-08-28Apply review commentsYuki Okushi-6/+21
2019-08-28Add Option<Span> to `require_lang_item`Yuki Okushi-28/+39
2019-08-27Add default serialization for `Ident`sMatthew Jasper-4/+96
Add tests for -Zast-json and -Zast-json-noexpand, which need this impl.
2019-08-27Improve 'mut ' diagnostic.Mazdak Farrokhzad-37/+82
2019-08-27Update cargoEric Huss-0/+0
2019-08-27rustc: Handle modules in "fat" LTO more robustlyAlex Crichton-49/+59
When performing a "fat" LTO the compiler has a whole mess of codegen units that it links together. To do this it needs to select one module as a "base" module and then link everything else into this module. Previously LTO passes assume that there's at least one module in-memory to link into, but nowadays that's not always true! With incremental compilation modules may actually largely be cached and it may be possible that there's no in-memory modules to work with. This commit updates the logic of the LTO backend to handle modules a bit more uniformly during a fat LTO. This commit immediately splits them into two lists, one serialized and one in-memory. The in-memory list is then searched for the largest module and failing that we simply deserialize the first serialized module and link into that. This refactoring avoids juggling three lists, two of which are serialized modules and one of which is half serialized and half in-memory. Closes #63349
2019-08-27const_prop: only call error_to_const_error if we are actually showing somethingRalf Jung-2/+5
2019-08-27Ensure 'let mut ;' where ':pat' is banned.Mazdak Farrokhzad-1/+27
2019-08-27remove the reference to __cxa_thread_atexit_implBaoshan Pang-25/+2
2019-08-28bootstrap: allow specifying mirror for bootstrap compiler download.Charles Lew-2/+14
2019-08-27Auto merge of #63922 - RalfJung:miri, r=nikomatsakisbors-7/+9
update miri Cc @oli-obk Fixes https://github.com/rust-lang/rust/issues/63843
2019-08-28Fix build src/libtestYuki Okushi-3/+3
2019-08-27Changing error messages and renaming tests #63127Kevin Per-6/+6
`async-await/no-args-non-move-async-closure` `generator/no-arguments-on-generators`
2019-08-27rustbuild: allow disabling deny(warnings) for bootstrapMarc-Antoine Perennou-17/+5
When deny-warnings is not specified or set to true, the behaviour is the same as before. When deny-warnings is set to false, warnings are now allowed Fixes #63911 Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
2019-08-27update miriRalf Jung-7/+9
2019-08-27Auto merge of #63639 - Mark-Simulacrum:rustdoc-clean-3, r=GuillaumeGomezbors-507/+442
rustdoc: general cleanup
2019-08-27Cleanup: Consistently use `Param` instead of `Arg` #62426Kevin Per-376/+379
2019-08-27recover on 'mut ' and improve recovery for keywords.Mazdak Farrokhzad-147/+449
2019-08-27Simplify with Symbol/Token::is_book_lit.Mazdak Farrokhzad-7/+15
2019-08-27token: refactor with is_non_raw_ident_where.Mazdak Farrokhzad-19/+13
2019-08-27Rollup merge of #63917 - lzutao:langitem_gen_63912, r=centril,cramertMazdak Farrokhzad-2/+25
Error when generator trait is not found Closes #63912
2019-08-27Rollup merge of #63761 - petrochenkov:procattrs, r=eddybMazdak Farrokhzad-172/+318
Propagate spans and attributes from proc macro definitions Thanks to https://github.com/rust-lang/rust/pull/63269 we now have spans and attributes from proc macro definitions available in metadata. However, that PR didn't actually put them into use! This PR finishes that work. Attributes `rustc_macro_transparency`, `allow_internal_unstable`, `allow_internal_unsafe`, `local_inner_macros`, `rustc_builtin_macro`, `stable`, `unstable`, `rustc_deprecated`, `deprecated` now have effect when applied to proc macro definition functions. From those attributes only `deprecated` is both stable and supposed to be used in new code. (`#![staged_api]` still cannot be used in proc macro crates for unrelated reasons though.) `Span::def_site` from the proc macro API now returns the correct location of the proc macro definition. Also, I made a mistake in https://github.com/rust-lang/rust/pull/63269#discussion_r312702919, loaded proc macros didn't actually use the resolver cache. This PR fixes the caching issue, now proc macros go through the `Resolver::macro_map` cache as well. (Also, the first commit turns `proc_macro::quote` into a regular built-in macro to reduce the number of places where `SyntaxExtension`s need to be manually created.)
2019-08-27Rollup merge of #63698 - Phosphorus15:master, r=nagisaMazdak Farrokhzad-19/+24
Fixed floating point issue with asinh function This should fixes #63271 , in which `asinh(-0.0)` returns `0.0` instead of `-0.0`. according to @nagisa > > > IEEE-754 (2008), section 9.2.1: > > > For the functions expm1, exp2m1, exp10m1, logp1, log2p1, log10p1, sin, tan, sinPi, atanPi, asin, atan, sinh, tanh, asinh, and atanh, f(+0) is +0 and f(−0) is −0 with no exception. > > and > > > sinh(±∞) and asinh(±∞) are ±∞ with no exception. After ensuring that the function `asinh` is the only function affected (functions like `sin`, `sinh` are all based on `cmath` library or `llvm` intrinsics), and that `atanh` always gives the correct result. The only function to modify is `asinh`.
2019-08-27Rollup merge of #62600 - emmericp:libtest-add-show-output, r=gnzlbgMazdak Farrokhzad-47/+101
libtest: add --show-output flag to print stdout of successful tests This pull request adds a new flag `--show-output` for tests to show the output of successful tests. For most formatters this was already supported just not exposed via the CLI (apparently only used by `librustdoc`). I've also added support for this option in the JSON formatter. This kind of fixes https://github.com/rust-lang/rust/issues/54669 which wants `--format json` to work with `--nocapture`, which is... well, impossible. What this issue really calls for is `--show-output` as implemented here.
2019-08-27debuginfo: always include disambiguator in type namesPhilip Craig-20/+18
2019-08-26Shorten line during rendering instead of in markdownMark Rousskov-44/+36
2019-08-26Inline recurse into only callsiteMark Rousskov-57/+40
2019-08-26Transition a few fmt::Display impls to functionsMark Rousskov-52/+56
This introduces a WithFormatter abstraction that permits one-time fmt::Display on an arbitrary closure, created via `display_fn`. This allows us to prevent allocation while still using functions instead of structs, which are a bit unwieldy to thread arguments through as they can't easily call each other (and are generally a bit opaque). The eventual goal here is likely to move us off of the formatting infrastructure entirely in favor of something more structured, but this is a good step to move us in that direction as it makes, for example, passing a context describing current state to the formatting impl much easier.
2019-08-26Inline RawMutableSpaceMark Rousskov-16/+7