Skip to content

Commit

Permalink
Add TODO comments for the Display for CallPath issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ironcev committed Jan 31, 2025
1 parent fc4d4d3 commit 8ba6e44
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sway-core/src/language/call_path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,8 @@ impl CallPath {

format!(
"{}{}",
// TODO: Replace with a context aware string representation of the path
// once https://github.com/FuelLabs/sway/issues/6873 is fixed.
&self,
if args.is_empty() {
String::new()
Expand Down
2 changes: 2 additions & 0 deletions sway-core/src/type_system/ast_elements/type_parameter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -681,6 +681,8 @@ fn handle_trait(
.iter()
.map(|trait_decl| {
// In the case of an internal library, always add :: to the candidate call path.
// TODO: Replace with a call to a dedicated `CallPath` method
// once https://github.com/FuelLabs/sway/issues/6873 is fixed.
let full_path = trait_decl
.call_path
.to_fullpath(ctx.engines(), ctx.namespace());
Expand Down

0 comments on commit 8ba6e44

Please sign in to comment.