]> git.lizzy.rs Git - rust.git/commit
Foreign types are trivially drop
authorMichael Goulet <michael@errs.io>
Thu, 20 Jan 2022 04:07:04 +0000 (20:07 -0800)
committerMichael Goulet <michael@errs.io>
Thu, 20 Jan 2022 04:07:04 +0000 (20:07 -0800)
commitb7e443397471062e5681ecefb6638577cefb9571
tree3f04c86244e49b76c558c75a4d58873b18c0021c
parent8547f5732c003080f940a23eaf3e2e9c052934ae
Foreign types are trivially drop

- Also rename a trivial_const_drop to match style of other functions in
  the util module.
- Also add a test for `const Drop` that doesn't depend on a `~const`
  bound.
- Also comment a bit why we remove the const bound during dropck impl
  check.
compiler/rustc_const_eval/src/transform/check_consts/qualifs.rs
compiler/rustc_middle/src/ty/util.rs
compiler/rustc_trait_selection/src/traits/select/candidate_assembly.rs
compiler/rustc_trait_selection/src/traits/select/confirmation.rs
compiler/rustc_typeck/src/check/dropck.rs
src/test/ui/rfc-2632-const-trait-impl/const-drop.rs