TODO -> FIXME

This commit is contained in:
Amanieu d'Antras 2021-02-24 02:36:45 +00:00
parent e604d01fed
commit 69cde44390
2 changed files with 2 additions and 2 deletions

View File

@ -2831,7 +2831,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
fn item_attrs(&self, def_id: DefId) -> Vec<ast::Attribute> {
if let Some(_local_def_id) = def_id.as_local() {
// TODO: This doesn't actually work, items doesn't include everything?
// FIXME: This doesn't actually work, items doesn't include everything?
//self.items[&hir::ItemId { def_id: local_def_id }].attrs.into()
Vec::new()
} else {

View File

@ -13,6 +13,6 @@ pub fn bar<const Y: usize>(x: usize, z: usize) -> [usize; 3] {
fn main() {
assert_eq!(legacy_const_generics::foo(0 + 0, 1 + 1, 2 + 2), [0, 2, 4]);
assert_eq!(legacy_const_generics::foo::<{1 + 1}>(0 + 0, 2 + 2), [0, 2, 4]);
// TODO: Only works cross-crate
// FIXME: Only works cross-crate
//assert_eq!(bar(0, 1, 2), [0, 1, 2]);
}