Santiago Pastorino
537488efd6
Make inferred_outlives_crate return Clause
2022-11-29 12:01:58 -03:00
Nicholas Nethercote
a60e337c88
Rename NestedMetaItem::[Ll]iteral
as NestedMetaItem::[Ll]it
.
...
We already use a mix of `Literal` and `Lit`. The latter is better
because it is shorter without causing any ambiguity.
2022-11-28 15:18:53 +11:00
Nicholas Nethercote
e4a9150872
Rename ast::Lit
as ast::MetaItemLit
.
2022-11-28 15:18:49 +11:00
hkalbasi
390a637e29
move things from rustc_target::abi to rustc_abi
2022-11-24 16:26:13 +03:30
hkalbasi
27fb904d68
move some layout logic to rustc_target::abi::layout
2022-11-24 16:26:12 +03:30
bors
872631d0f0
Auto merge of #104507 - WaffleLapkin:asderefsyou, r=wesleywiser
...
Use `as_deref` in compiler (but only where it makes sense)
This simplifies some code :3
(there are some changes that are not exacly `as_deref`, but more like "clever `Option`/`Result` method use")
2022-11-24 00:17:35 +00:00
Vadim Petrochenkov
7a5376d23c
Unreserve braced enum variants in value namespace
2022-11-21 22:40:06 +03:00
Boxy
9ed348376f
require an ErrorGuaranteed
to taint infcx with errors
2022-11-18 13:25:17 +00:00
Maybe Waffle
94470f4efd
Use as_deref
in compiler (but only where it makes sense)
2022-11-16 21:58:58 +00:00
Camille GILLOT
9d20aca983
Store a LocalDefId in hir::Variant & hir::Field.
2022-11-13 14:06:51 +00:00
Camille GILLOT
607d0c2a14
Store a LocalDefId in hir::AnonConst.
2022-11-13 14:06:11 +00:00
Camille GILLOT
18482f7b23
Store a LocalDefId in hir::GenericParam.
2022-11-13 14:05:30 +00:00
Camille GILLOT
290f0781b4
Store LocalDefId in hir::Closure.
2022-11-13 14:04:02 +00:00
Camille GILLOT
dba1503ed3
Ensure codegen_fn_attrs during collection.
2022-11-13 14:02:15 +00:00
Camille GILLOT
60892e8b1d
Visit opaque types during type collection too.
2022-11-11 10:29:27 +00:00
yukang
1f21b96dce
add 'ty_error_with_guaranteed' and 'const_error_with_guaranteed'
2022-11-08 11:17:46 +08:00
Oli Scherer
ecea616052
Simplify astconv item def id handling
2022-11-02 12:03:59 +00:00
Dylan DPC
09f4f7c8f0
Rollup merge of #103759 - cjgillot:adt-collect, r=davidtwco
...
Use `adt_def` during type collection.
This removes a wrapper which is close to what `adt_def` does.
2022-11-01 14:12:27 +05:30
Camille GILLOT
65f77b7eb5
Use adt_def for ADT collection.
2022-10-31 11:21:46 +00:00
Cameron Steffen
6621279a75
Cleanup weak lang items
2022-10-29 16:04:10 -05:00
Nicholas Nethercote
c8c25ce5a1
Rename some OwnerId
fields.
...
spastorino noticed some silly expressions like `item_id.def_id.def_id`.
This commit renames several `def_id: OwnerId` fields as `owner_id`, so
those expressions become `item_id.owner_id.def_id`.
`item_id.owner_id.local_def_id` would be even clearer, but the use of
`def_id` for values of type `LocalDefId` is *very* widespread, so I left
that alone.
2022-10-29 20:28:38 +11:00
Oli Scherer
1c26a278f3
Split diagnostic details out into a separate function and fluent files
2022-10-25 18:28:04 +00:00
Oli Scherer
8286ea5a49
Move a wf-check into the site where the value is instantiated
2022-10-25 14:47:24 +00:00
lcnr
adc700b089
update doc links
2022-10-20 23:47:49 +02:00
Ralf Jung
66282cb47d
add panic_fmt_nounwind for panicing without unwinding, and use it for panic_no_unwind
2022-10-11 22:47:31 +02:00
Ralf Jung
2b50cd1877
rename rustc_allocator_nounwind to rustc_nounwind
2022-10-11 22:47:31 +02:00
Camille GILLOT
a474ec50b7
Move lifetime resolution module to rustc_hir_analysis.
2022-10-10 17:40:52 +00:00
Michael Goulet
70f3c79c50
ImplItemKind::TyAlias => ImplItemKind::Type
2022-10-09 07:09:57 +00:00
Maybe Waffle
a8f7e244b7
Refactor rustc lint API
2022-10-01 10:03:06 +00:00
Oli Scherer
6367e69929
Split collect.rs
2022-09-29 09:31:46 +00:00
bors
ce7f0f1aa0
Auto merge of #100719 - CohenArthur:rust-safe-intrinsic-attribute, r=wesleywiser
...
Add `#[rustc_safe_intrinsic]`
This PR adds the `#[rustc_safe_intrinsic]` attribute as mentionned on Zulip. The goal of this attribute is to avoid keeping a list of symbols as the source for stable intrinsics, and instead rely on an attribute. This is similar to `#[rustc_const_stable]` and `#[rustc_const_unstable]`, which among other things, are used to mark the constness of intrinsic functions.
2022-09-28 19:07:50 +00:00
Camille GILLOT
337a73da6e
Do not overwrite binders for another HirId.
2022-09-27 18:58:37 +02:00
Arthur Cohen
0ab2c91a2d
attributes: Add #[rustc_safe_intrinsic] builtin
2022-09-27 15:55:42 +02:00
lcnr
1fc86a63f4
rustc_typeck to rustc_hir_analysis
2022-09-27 10:37:23 +02:00