LeSeulArtichaut
085e417087
ty.kind -> ty.kind() in rustdoc and clippy
2020-09-04 18:27:33 +02:00
bors
668ef72f44
Auto merge of #75120 - JulianKnodt:rm_reps, r=oli-obk
...
rust_ast::ast => rustc_ast
Rework of #71199 which is a rework #70621
Still working on this but just made the PR to track progress
r? @Dylan-DPC
2020-08-17 23:16:08 +00:00
Ujjwal Sharma
a888b02884
rust_ast::ast => rustc_ast
2020-08-17 20:32:32 +00:00
David Wood
dde93c9ba6
rustdoc: clean QPath::LangItem
...
This commit adds support for cleaning `QPath::LangItem` and
`hir::GenericBound::LangItemTrait` in rustdoc. `QPath::LangItem`
does not require lowering, and `hir::GenericBound::LangItemTrait`
is lowered to a `GenericBound::TraitBound`.
Signed-off-by: David Wood <david@davidtw.co >
2020-08-16 15:42:30 +01:00
Bastian Kauschke
cd53760cc7
merge as_local_hir_id with local_def_id_to_hir_id
2020-08-13 16:55:16 +02:00
Mark Rousskov
6bbf4558ac
Feature gate is always present
2020-08-11 00:08:04 +03:00
bors
1275cc15d6
Auto merge of #74936 - GuillaumeGomez:const-rustc_const_unstable, r=jyn514
...
Don't print "const" keyword on non-nightly build if rustc_const_unstable is used on the item
Fixes #74579 .
2020-08-10 17:12:42 +00:00
Gary Guo
63c0d9ca51
Display elided lifetime for non-reference type in doc
2020-08-07 23:35:07 +01:00
Guillaume Gomez
eb7384d479
Add missing "is_min_const_fn" calls to prevent "const" to be displayed if the "rustc_const_unstable" attribute is present
2020-08-04 11:12:22 +02:00
Vadim Petrochenkov
0a88346be6
rustc_ast: (Nested)MetaItem::check_name -> has_name
...
For consistency with `Attribute::has_name` which doesn't mark the attribute as used either.
Replace all uses of `check_name` with `has_name` outside of rustc
2020-08-04 00:34:11 +03:00
Bastian Kauschke
b90bc8d70b
fix rustdoc generic param order
2020-07-31 23:51:19 +02:00
Bastian Kauschke
51cbcca2eb
fix rustdoc
2020-07-27 21:12:51 +02:00
Bastian Kauschke
d8cf8ba5f7
introduce PredicateAtom
2020-07-27 21:07:37 +02:00
Bastian Kauschke
3ba61922d2
this might be unqualified, but at least it's now quantified
2020-07-27 21:06:36 +02:00
Bastian Kauschke
562d478421
fix rustdoc
2020-07-27 21:06:36 +02:00
Bastian Kauschke
b79f7fbda8
rustdoc
2020-07-27 21:06:36 +02:00
Mark Rousskov
8454ee89b2
Migrate rustc_depr uses to use deprecation attribute
...
This should not be a change in behavior.
2020-07-20 21:22:14 -04:00
Manish Goregaokar
98450757e5
Revert "Remove "important traits" feature"
...
This reverts commit 1244ced958 .
2020-07-16 09:58:17 -07:00
Nicholas Nethercote
f04e866e57
Add and use more static symbols.
...
Note that the output of `unpretty-debug.stdout` has changed. In that
test the hash values are normalized from a symbol numbers to small
numbers like "0#0" and "0#1". The increase in the number of static
symbols must have caused the original numbers to contain more digits,
resulting in different pretty-printing prior to normalization.
2020-07-15 08:42:59 +10:00
Bastian Kauschke
71b45b97d3
change skip_binder to use T by value
2020-06-30 09:13:56 +02:00
mark
268decbac8
make all uses of ty::Error or ConstKind::Error delay a span bug
2020-06-15 18:25:58 -05:00
Matthew Jasper
ee0d3c7f90
Rename TyKind::Def to OpaqueDef
2020-06-11 17:08:23 +01:00
Matthew Jasper
4201fd273e
Remove associated opaque types
...
They're unused now.
2020-06-11 16:24:01 +01:00
Dylan MacKenzie
b4e06b9e88
Call skip_binder or no_bound_vars before self_ty
2020-06-01 12:18:57 -07:00
marmeladema
4b7e44f893
rustdoc: remove calls to local_def_id_from_node_id
2020-05-30 12:30:58 +01:00
Matthew Jasper
7d73e4cc47
Remove ReScope
2020-05-22 18:03:08 +01:00
Bastian Kauschke
f3164790bd
introduce newtype'd Predicate<'tcx>
2020-05-20 15:44:34 +02:00
Bastian Kauschke
cad8fe90fd
rename Predicate to PredicateKind, introduce alias
2020-05-20 15:38:03 +02:00
Ben Lewis
8b14b84933
Assume unevaluated consts are equal to the other consts and add ConstEquate obligation. This delays
...
the need to evaluate consts eagerly and therefore gets around const eval query cycles.
2020-05-17 11:01:02 +02:00
Jack Huey
41f6b958d5
Remove ty::UnnormalizedProjection
2020-05-12 01:56:29 -04:00
Camille GILLOT
d4e143ed2f
Remove ast::{Ident, Name} reexports.
2020-05-08 13:13:15 +02:00
Dylan DPC
e51cbc8376
Rollup merge of #70043 - mark-i-m:def-kind-more, r=eddyb
...
Add all remaining `DefKind`s.
r? @eddyb or @Centril
~~I'm not sure if this is what you were thinking of. There are also a few places where I'm not sure what the correct choice is because I don't fully understand the meaning of some variants.~~
~~In general, it feels a bit odd to add some of these as `DefKind`s (e.g. `Arm`) because they don't feel like definitions. Are there things that it makes sense not to add?~~
2020-04-26 01:00:13 +02:00
Josh Stone
2325c20925
Avoid unused Option::map results
...
These are changes that would be needed if we add `#[must_use]` to
`Option::map`, per #71484 .
2020-04-24 13:58:41 -07:00
Eduard-Mihai Burtescu
95b3c427d4
Remove Option from the return type of def_kind.
2020-04-24 13:44:07 -05:00
marmeladema
fe7531579d
Address comments from review
2020-04-23 23:14:07 +01:00
marmeladema
bfce24aa67
Modify as_local_hir_id to return a bare HirId
2020-04-23 23:14:07 +01:00
marmeladema
6148db719f
Modify as_local_hir_id to accept a LocalDefId instead of a DefId
2020-04-23 23:14:07 +01:00
marmeladema
92fb59d7f3
librustc_middle: return LocalDefId instead of DefId in local_def_id
2020-04-23 23:14:07 +01:00
Josh Stone
554847c513
Dogfood or_patterns in rustdoc
2020-04-16 13:58:47 -07:00
marmeladema
c15e13ae16
Remove DUMMY_HIR_ID
2020-04-14 08:46:07 +01:00
Rustin-Liu
b07e7fe047
Rename AssocKind::Method to AssocKind::Fn
...
Rename fn_has_self_argument to fn_has_self_parameter
Rename AssocItemKind::Method to AssocItemKind::Fn
Refine has_no_input_arg
Refine has_no_input_arg
Revert has_no_input_arg
Refine suggestion_descr
Move as_def_kind into AssocKind
Signed-off-by: Rustin-Liu <rustin.liu@gmail.com >
Fix tidy check issue
Signed-off-by: Rustin-Liu <rustin.liu@gmail.com >
2020-04-14 07:12:07 +08:00
bors
e82734e56b
Auto merge of #70161 - cjgillot:query-arena, r=nikomatsakis
...
Allocate some query results on an arena
This avoids a cloning few `Lrc` and `Vec`s in the queries.
2020-04-11 15:31:54 +00:00
marmeladema
555e024abc
librustc_middle: return LocalDefId instead of DefId in local_def_id_from_node_id
2020-04-10 12:13:54 +01:00
marmeladema
f62c6e1c76
librustc_middle: return LocalDefId instead of DefId in body_owner_def_id
2020-04-10 12:13:54 +01:00
Dylan DPC
1758b7caf6
Rollup merge of #70828 - ollie27:rustdoc_external_macro_src, r=eddyb
...
rustdoc: Don't try to load source files from external crates
Local items defined in external macros shouldn't generate rendered source files and should link to the external crate's docs instead.
Part of #70757
r? @GuillaumeGomez
cc @eddyb
2020-04-08 23:33:42 +02:00
Oliver Middleton
6f96dc221c
rustdoc: Don't try to load source files from external crates
...
Local items defined in external macros shouldn't generate rendered source files and should link to the external crate's docs instead.
2020-04-08 18:35:17 +01:00
Eduard-Mihai Burtescu
626abc7977
ty: remove {Existential,}Trait{Ref,Predicate}::input_types.
2020-04-06 21:55:51 +03:00
Camille GILLOT
587b9abd4e
Retire rustc::ty::Attributes enum.
2020-04-05 15:26:09 +02:00
Camille GILLOT
3c0edc895f
Allocate query Vecs on the arena.
2020-04-05 15:02:00 +02:00
Linus Färnstrand
d7f8928efd
Stop importing int modules in librustdoc
2020-04-05 11:22:01 +02:00