about summary refs log tree commit diff
path: root/src/librustc_resolve
AgeCommit message (Collapse)AuthorLines
2019-11-03Delete lint buffer from SessionMark Rousskov-4/+7
2019-11-03Utilize Resolver lint buffer during HIR loweringMark Rousskov-0/+4
2019-11-03Migrate resolver over to internal lint bufferMark Rousskov-23/+31
2019-10-31Add long error explanation for E0578Guillaume Gomez-1/+28
2019-10-30Add long error explanation for E0577Guillaume Gomez-1/+27
2019-10-29Rollup merge of #65539 - traxys:fix_62334, r=petrochenkovTyler Mandry-2/+3
resolve: Turn the "non-empty glob must import something" error into a lint This fixes #62334 by changing the error to a lint warning the glob. I changed the test but I'm very unsure of what I did as I do not know how to correctly check for the warning
2019-10-29Change E0741 into E0742Guillaume Gomez-3/+4
2019-10-29Add long error explanation for E0740Guillaume Gomez-1/+38
2019-10-29Create new error code E0740 for visibility restrictions to ancestor module ↵Guillaume Gomez-3/+4
issues
2019-10-29Rollup merge of #65294 - varkor:lint-inline-prototype, r=matthewjasperMazdak Farrokhzad-1/+1
Lint ignored `#[inline]` on function prototypes Fixes https://github.com/rust-lang/rust/issues/51280. - Adds a `unused_attribute` lint for `#[inline]` on function prototypes. - As a consequence, foreign items, impl items and trait items now have their attributes checked, which could cause some code to no longer compile (it was previously erroneously ignored).
2019-10-28Auto merge of #65421 - estebank:variants, r=petrochenkovbors-43/+74
Point at local similarly named element and tweak references to variants Partially address #65386.
2019-10-28fix tidyQuentin Boyer-1/+1
2019-10-28Rollup merge of #65792 - Centril:split-syntax-2, r=petrochenkovMazdak Farrokhzad-18/+19
rustc, rustc_passes: reduce deps on rustc_expand Part of #65324. r? @petrochenkov
2019-10-28changing non-empty glob must import something to a lintQuentin Boyer-2/+3
2019-10-27Point at local similarly named element and tweak references to variantsEsteban Küber-43/+74
Point at the span for the definition of ADTs internal to the current crate. Look at the leading char of the ident to determine whether we're expecting a likely fn or any of a fn, a tuple struct or a tuple variant. Turn fn `add_typo_suggestion` into a `Resolver` method.
2019-10-27rustc, rustc_passes: don't depend on syntax_expand.Mazdak Farrokhzad-18/+19
This is done by moving some data definitions to syntax::expand.
2019-10-26review comment: use `Default`Esteban Küber-9/+2
2019-10-26review comments and tweaksEsteban Küber-67/+91
2019-10-26Use heuristics to suggest assignmentEsteban Küber-3/+37
When detecting a possible `=` -> `:` typo in a `let` binding, suggest assigning instead of setting the type.
2019-10-25Update bitflagsvarkor-1/+1
2019-10-25Rollup merge of #65390 - GuillaumeGomez:long-err-explanation-E0576, ↵Mazdak Farrokhzad-1/+25
r=matthewjasper,kinnison Add long error explanation for E0576 Part of #61137.
2019-10-24Rollup merge of #65627 - varkor:const-generics-forbid-non-structural_match, ↵Mazdak Farrokhzad-48/+7
r=petrochenkov Forbid non-`structural_match` types in const generics Fixes https://github.com/rust-lang/rust/issues/60286.
2019-10-24Turn crate store into a resolver outputVadim Petrochenkov-20/+25
2019-10-24rustc: Combine resolver outputs into a single structVadim Petrochenkov-33/+29
2019-10-24resolve: Privatize all resolver fieldsVadim Petrochenkov-10/+54
2019-10-23Rollup merge of #65691 - GuillaumeGomez:2018-edition-E0659, r=Dylan-DPCMazdak Farrokhzad-9/+9
Update E0659 error code long explanation to 2018 edition Fixes #65571 r? @Centril
2019-10-23Rollup merge of #65657 - nnethercote:rm-InternedString-properly, r=eddybMazdak Farrokhzad-2/+2
Remove `InternedString` This PR removes `InternedString` by converting all occurrences to `Symbol`. There are a handful of places that need to use the symbol chars instead of the symbol index, e.g. for stable sorting; local conversions `LocalInternedString` is used in those places. r? @eddyb
2019-10-23Add long error explanation for E0576Guillaume Gomez-1/+25
2019-10-22Use E0741 for structural match errorvarkor-1/+1
2019-10-22Remove "type parameter depends on const parameter" error from resolutionvarkor-48/+7
2019-10-22Update E0659 error code long explanation to 2018 editionGuillaume Gomez-9/+9
2019-10-21Rollup merge of #65620 - ryoqun:remove-unneeded-comment, r=varkorYuki Okushi-1/+1
Correctly note code as Ok not error for E0573 Hi, this is my first pull request to the Rust project. The fix is very small one just to fix an oversight in a comment. Namely, [this documentation PR](https://github.com/rust-lang/rust/pull/65234) added a longer explanation for E0573. It illustrated the error using erroneous/corrected contrasting examples. But it accidentally forgot to remove `// error` from the corrected example. Sadly, I found the error after the PR got merged. [As suggested by the original author](https://github.com/rust-lang/rust/pull/65234/files#r336518549) of the PR, I created an PR to fix this. Part of #61137.
2019-10-21Convert fields within `DefPathData` from `InternedString` to `Symbol`.Nicholas Nethercote-2/+2
It's a full conversion, except in `DefKey::compute_stable_hash()` where a `Symbol` now is converted to an `InternedString` before being hashed. This was necessary to avoid test failures.
2019-10-21Correctly note code as Ok not error for E0573Ryo Onodera-1/+1
2019-10-21Rollup merge of #65460 - sinkuu:contains_insert, r=varkorYuki Okushi-2/+1
Clean up `contains()` `insert()` chains on HashSet They can be merged to a single `insert()` call, which may avoid double-hashing/lookup of the value.
2019-10-19Rollup merge of #65542 - estebank:kill-static-methods, r=CentrilMazdak Farrokhzad-21/+37
Refer to "associated functions" instead of "static methods" Fix #59782.
2019-10-19Rollup merge of #65252 - petrochenkov:deriveholders2, r=matthewjasperMazdak Farrokhzad-19/+14
expand: Simplify expansion of derives And make it more uniform with other macros. This is done by merging placeholders for future derives' outputs into the derive container's output fragment early (addressing FIXMEs from https://github.com/rust-lang/rust/pull/63667). Also, macros with names starting with `_` are no longer reported as unused, in accordance with the usual behavior of `unused` lints. r? @matthewjasper or @mark-i-m
2019-10-19expand: Simplify expansion of derivesVadim Petrochenkov-16/+2
And make it more uniform with other macros. By merging placeholders for future derives' outputs into the derive container's output fragment early.
2019-10-19resolve: Mark macros starting with an underscore as usedVadim Petrochenkov-3/+12
2019-10-18Rollup merge of #65334 - GuillaumeGomez:long-err-explanation-E0575, r=kinnisonTyler Mandry-1/+53
Add long error explanation for E0575 Part of #61137.
2019-10-18review commentsEsteban Küber-5/+7
2019-10-18review comments: help wordingEsteban Küber-10/+11
2019-10-17Point at enclosing function without `self` receiverEsteban Küber-1/+10
2019-10-17Refer to "associated functions" instead of "static methods"Esteban Küber-20/+24
2019-10-17Rollup merge of #65465 - Centril:split-syntax-1, r=petrochenkovMazdak Farrokhzad-19/+18
Move syntax::ext to a syntax_expand and refactor some attribute logic Part of https://github.com/rust-lang/rust/pull/65324. r? @petrochenkov
2019-10-17Add long error explanation for E0575Guillaume Gomez-1/+53
2019-10-16Add long error explanation for E0573Guillaume Gomez-1/+74
2019-10-16move syntax::ext to new crate syntax_expandMazdak Farrokhzad-19/+18
2019-10-16Make use of the return value of `HashSet::insert`Shotaro Yamada-2/+1
2019-10-15Rollup merge of #65308 - GuillaumeGomez:long-err-explanation-E0574, ↵Tyler Mandry-1/+50
r=matthewjasper Add long error explanation for E0574 Part of #61137.