rust/compiler/rustc_lint/src
Matthias Krüger 6535e66fa5
Rollup merge of #109641 - compiler-errors:dont-elaborate-non-obl, r=oli-obk
Don't elaborate non-obligations into obligations

It's suspicious to elaborate a `PolyTraitRef` or `Predicate` into an `Obligation`, since the former does not have a param-env associated with it, but the latter does. This is a footgun that, while not being misused *currently* in the compiler, easily could be misused by someone less familiar with the elaborator's inner workings.

This PR just changes the API -- ideally, the elaborator wouldn't even have to deal with obligations if we're not elaborating obligations, but that would require a bit more abstraction than I could be bothered with today.
2023-03-27 08:46:55 +02:00
..
nonstandard_style mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
array_into_iter.rs errors: generate typed identifiers in each crate 2023-02-22 09:15:53 +00:00
builtin.rs Refactor: VariantIdx::from_u32(0) -> FIRST_VARIANT 2023-03-25 18:58:25 -07:00
context.rs Lint ambiguous glob re-exports 2023-03-20 03:22:31 +08:00
deref_into_dyn_supertrait.rs Don't eagerly convert principal to string 2023-02-17 14:44:58 +00:00
early.rs rustc_interface: Add a new query pre_configure 2023-03-23 14:22:48 +04:00
enum_intrinsics_non_enums.rs Remove type-traversal trait aliases 2023-02-22 17:04:58 +00:00
errors.rs errors: generate typed identifiers in each crate 2023-02-22 09:15:53 +00:00
expect.rs Auto merge of #106776 - oli-obk:om_nom_nom_nom_nom, r=cjgillot 2023-01-13 13:57:21 +00:00
for_loops_over_fallibles.rs use the correct param env 2023-03-21 09:57:22 +01:00
hidden_unicode_codepoints.rs migrate: hidden_unicode_codepoints.rs 2023-01-09 17:07:25 -05:00
internal.rs Use local key in providers 2023-03-21 15:38:51 +00:00
late.rs Remove HirId -> LocalDefId map from HIR. 2023-01-28 09:55:26 +00:00
let_underscore.rs refactor: cleanup 2023-01-09 18:57:02 -05:00
levels.rs Querify registered_tools. 2023-03-06 10:56:23 +00:00
lib.rs Move useless_anynous_reexport lint into unused_imports 2023-03-22 16:05:20 +01:00
lints.rs Move useless_anynous_reexport lint into unused_imports 2023-03-22 16:05:20 +01:00
map_unit_fn.rs Fix #109152, fix the scenario that we may can not get span of func 2023-03-15 14:07:39 +08:00
methods.rs refactor: cleanup 2023-01-09 18:57:02 -05:00
multiple_supertrait_upcastable.rs Reintroduce multiple_supertrait_upcastable lint 2023-01-28 15:08:07 +00:00
non_ascii_idents.rs refactor: cleanup 2023-01-09 18:57:02 -05:00
non_fmt_panic.rs errors: generate typed identifiers in each crate 2023-02-22 09:15:53 +00:00
nonstandard_style.rs rustc: Remove unused Session argument from some attribute functions 2023-03-22 13:55:55 +04:00
noop_method_call.rs refactor: cleanup 2023-01-09 18:57:02 -05:00
opaque_hidden_inferred_bound.rs Nested impl traits trigger opaque_hidden_inferred_bound too much 2023-03-23 06:19:52 +00:00
pass_by_value.rs remove bound_type_of query; make type_of return EarlyBinder; change type_of in metadata 2023-02-16 17:05:56 -07:00
passes.rs Take a LocalDefId in hir::Visitor::visit_fn. 2023-01-28 09:51:50 +00:00
redundant_semicolon.rs refactor: cleanup 2023-01-09 18:57:02 -05:00
tests.rs Update to last upstream version 2021-07-08 17:14:28 +02:00
traits.rs refactor: cleanup 2023-01-09 18:57:02 -05:00
types.rs rustc_middle: Remove trait DefIdTree 2023-03-02 23:46:44 +04:00
unused.rs Don't elaborate non-obligations into obligations 2023-03-26 20:33:54 +00:00