TODO -> FIXME
This commit is contained in:
parent
e604d01fed
commit
69cde44390
@ -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 {
|
||||
|
@ -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]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user