about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2019-09-27Remove stray uses of gcx nameMark Rousskov-27/+27
2019-09-27Remove lift_to_globalMark Rousskov-10/+5
2019-09-27Remove global_tcx from TyCtxtMark Rousskov-77/+59
The non-global context was removed; there's only one context now. This is a noop method that only serves to confuse readers -- remove it.
2019-09-27Auto merge of #64849 - matthiaskrgr:submodule_upd, r=Manishearthbors-7/+9
submodules: update clippy from 68ff8b19 to edd90473 Changes: ```` Remove clippy::author attribute from trailing_zeroes test Move author issue test to author subdir Fix author lint Rustup to rust-lang/rust#64813 Refactor `booleans` Detect assignment ops in integer_arithmetic ```` Fixes #64843 r? @oli-obk @Manishearth
2019-09-27submodules: update clippy from 68ff8b19 to edd90473Matthias Krüger-7/+9
Changes: ```` Remove clippy::author attribute from trailing_zeroes test Move author issue test to author subdir Fix author lint Rustup to rust-lang/rust#64813 Refactor `booleans` Detect assignment ops in integer_arithmetic ````
2019-09-27fix rebaseEsteban Küber-1/+1
2019-09-27review commentsEsteban Küber-7/+5
2019-09-27Account for tail expressions when pointing at return typeEsteban Küber-7/+31
When there's a type mismatch we make an effort to check if it was caused by a function's return type. This logic now makes sure to only point at the return type if the error happens in a tail expression.
2019-09-27Turn `walk_parent_nodes` method into an iteratorEsteban Küber-105/+101
2019-09-27getting more context for duplicate lang items (fixes #60561)Tomas Tauber-18/+50
Where possible, the error message includes the name of the crate that brought in the crate with duplicate lang items (which helps with debugging). This information is passed on from cstore using the `extern_crate` query.
2019-09-27pin.rs: fix links to primitives in documentationrusty-snake-0/+2
2019-09-27Auto merge of #63937 - Nashenas88:rustdoc_57180, r=GuillaumeGomezbors-17/+31
Fix ICE in rustdoc when merging generic and where bounds of an Fn with an output Fixes #57180
2019-09-27Don't check error_codes files for lintsGuillaume Gomez-1/+1
2019-09-27Update ui testsGuillaume Gomez-29/+35
2019-09-27Add long error explanation for E0734Guillaume Gomez-1/+17
2019-09-27Stabilize map_get_key_value featureLzu Tao-4/+2
2019-09-27Auto merge of #64813 - varkor:node-to-kind, r=Centrilbors-1587/+1574
Rename `*.node` to `*.kind`, and `hair::Pattern*` to `hair::Pat*` In both `ast::Expr` and `hir::Expr`: - Rename `Expr.node` to `Expr.kind`. - Rename `Pat.node` to `Pat.kind`. - Rename `ImplItem.node` to `ImplItem.kind`. - Rename `Lit.node` to `Lit.kind`. - Rename `TraitItem.node` to `TraitItem.kind`. - Rename `Ty.node` to `Ty.kind`. - Rename `Stmt.node` to `Stmt.kind`. - Rename `Item.node` to `Item.kind`. - Rename `ForeignItem.node` to `ForeignItem.kind`. - Rename `MetaItem.node` to `MetaItem.kind`. Also: - Rename `hair::FieldPattern` to `hair::FieldPat`. - Rename `hair::PatternKind` to `hair::PatKind`. - Rename `hair::PatternRange` to `hair::PatRange`. - Rename `PatternContext` to `PatCtxt`. - Rename `PatternTypeProjection` to `PatTyProj`. - Rename `hair::Pattern` to `hair::Pat`. These two sets of changes are grouped together to aid with merging. The only changes are renamings. r? @petrochenkov
2019-09-27lowering: don't .abort_if_errors()Mazdak Farrokhzad-3/+16
2019-09-27Fix librustcdoc testvarkor-1/+1
2019-09-27Auto merge of #64819 - Manishearth:clippyup, r=Manishearthbors-11/+7
Update clippy r? @ghost
2019-09-26Include message on tests that should panicKenny Goodin-2/+3
2019-09-26Fix ui-fulldeps testsvarkor-2/+2
2019-09-27Revert "Simplify Unicode-aware trimming"AnthonyMikh-15/+12
`taken` is actually used afterwards
2019-09-26Add note about global state in try_print_query_stackAaron Hill-0/+3
2019-09-26Fix AST JSON output testvarkor-1/+1
2019-09-26Auto merge of #64816 - Centril:rollup-gbeqot4, r=Centrilbors-2003/+367
Rollup of 5 pull requests Successful merges: - #64221 ( Rust 2015: No longer downgrade NLL errors) - #64772 (Remove tx_to_llvm_workers from TyCtxt) - #64783 (Fix issue #64732) - #64787 (Fix ExitStatus on Fuchsia) - #64812 (Add test for E0543) Failed merges: r? @ghost
2019-09-26Use existing Handler to print query stackAaron Hill-3/+4
When the panic handler is run, the existing Handler may be in a weird state if it was responsible for triggering the panic. By using a freshly created Handler, we avoid trying to re-entrantly lock a HandlerInner, which was causing a double panic on ICEs.
2019-09-26Update clippyManish Goregaokar-11/+7
2019-09-26Rename `hair::Pattern` to `hair::Pat`varkor-113/+108
2019-09-26Rename `PatternTypeProjection` to `PatTyProj`varkor-9/+9
2019-09-26Rename `PatternContext` to `PatCtxt`varkor-13/+13
2019-09-26Rename `hair::PatternRange` to `hair::PatRange`varkor-16/+16
2019-09-26Rename `hair::PatternKind` to `hair::PatKind`varkor-222/+222
2019-09-26Rename `hair::FieldPattern` to `hair::FieldPat`varkor-16/+16
2019-09-26Rename `MetaItem.node` to `MetaItem.kind`varkor-50/+50
2019-09-26Rename `ForeignItem.node` to `ForeignItem.kind`varkor-52/+52
2019-09-26Rename `Item.node` to `Item.kind`varkor-278/+279
2019-09-26Rename `Stmt.node` to `Stmt.kind`varkor-76/+76
2019-09-26Rename `Ty.node` to `Ty.kind`varkor-137/+138
2019-09-26Rename `TraitItem.node` to `TraitItem.kind`varkor-82/+82
2019-09-26Rename `Lit.node` to `Lit.kind`varkor-25/+25
2019-09-26Rename `ImplItem.node` to `ImplItem.kind`varkor-108/+107
2019-09-26Rename `Pat.node` to `Pat.kind`varkor-135/+135
2019-09-26Rename `Expr.node` to `Expr.kind`varkor-290/+281
For both `ast::Expr` and `hir::Expr`.
2019-09-26hir: stop checking codegen fn attrs for constantsDavid Wood-1/+1
See linked comment[1] for context. 1: https://github.com/rust-lang/rust/pull/64809#discussion_r328662933 Signed-off-by: David Wood <david@davidtw.co>
2019-09-26hir: Disallow `target_feature` on constantsDavid Wood-71/+204
This commit fixes an ICE when `target_feature` is applied to constants. Signed-off-by: David Wood <david@davidtw.co>
2019-09-26Rollup merge of #64812 - GuillaumeGomez:add-test-for-e0543, r=CentrilMazdak Farrokhzad-8/+18
Add test for E0543
2019-09-26Rollup merge of #64787 - tmandry:fuchsia-exitstatus, r=cramertjMazdak Farrokhzad-75/+93
Fix ExitStatus on Fuchsia Fuchsia exit codes don't follow the convention of libc::WEXITSTATUS et al, and they are 64 bits instead of 32 bits. This gives Fuchsia its own representation of ExitStatus. Additionally, the zircon syscall structs were out of date, causing us to see bogus exit codes. r? @cramertj @alexcrichton
2019-09-26Rollup merge of #64783 - onehr:onehrxn, r=varkorMazdak Farrokhzad-1/+38
Fix issue #64732 Based on issue #64732, when creating a byte literal with single quotes, the suggestion message would indicate that you meant to write a `str` literal, but we actually meant to write a byte string literal. So I changed the unescape_error_reporting.rs to decide whether to print out "if you meant to write a `str` literal, use double quotes", or "if you meant to write a byte string literal, use double quotes". Fixes #64732.
2019-09-26Rollup merge of #64772 - Mark-Simulacrum:no-tyctxt-tx, r=eddybMazdak Farrokhzad-70/+42
Remove tx_to_llvm_workers from TyCtxt This can be kept within the codegen backend crates entirely -- there's no reason for us to create it outside and attempt to hold it in the (global) context. Changes here aren't really too easily reviewable I suspect -- not sure if they can be cleaned up by splitting into more commits though, it's just hard to reason about `Box<Any>` in general. If there are thoughts though I'd be happy to hear them. The primary goal of this PR is to get rid of the field on `rustc_interface::Queries`.